﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - I use CalendarDropdown in my grid!</title><link>http://www.intersoftsolutions.com/Community/WebGrid/I-use-CalendarDropdown-in-my-grid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>I use CalendarDropdown in my grid!</title><link>http://www.intersoftsolutions.com/Community/WebGrid/I-use-CalendarDropdown-in-my-grid/</link><pubDate>Thu, 24 Jun 2010 16:34:21 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Heny,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Deeply sorry for the mistaken, what I meant is if we are using WebInput as a Calender mode. The different between them is, only when we use WebInput, we can simply get its object by using ISGetObject("WebInput1"). Here is the snippet in order to do so:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; " /&gt;&lt;pre style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;        function Button1_onclick()
        {
            var grid = ISGetObject("WebGrid1");
            var getSelectedObject = grid.GetSelectedObject();

            if (getSelectedObject != null)
            {
                getSelectedObject.ToRowObject().GetCells()[3].ActivateEdit();
                setTimeout(function()
                {
                    ISGetObject("WebInput1").ShowEditor();
                }, 100);
            }
            else
            {
                alert("Please select a row first");
            }
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Here is the snippet of WebInput code:&lt;/span&gt;&lt;/p&gt;&lt;pre style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt; "&gt;        &amp;lt;ISWebInput:WebInput ID="WebInput1" runat="server" Height="20px" Width="140px"&amp;gt;
            &amp;lt;CultureInfo CultureName="en-US"&amp;gt;
            &amp;lt;/CultureInfo&amp;gt;
            &amp;lt;DateTimeEditor IsEnabled="True"&amp;gt;
                &amp;lt;Behavior DropdownButtonToolTip="Tooltip on Dropdown button" /&amp;gt;
            &amp;lt;/DateTimeEditor&amp;gt;
        &amp;lt;/ISWebInput:WebInput&amp;gt;&lt;/pre&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; However, if we use Calender DropDown, we will need to get the ID of dropdownlist and get them using document.GetElementyId. In this case, where DropDownList is attached to WebGrid, the ID will be set to &amp;lt;&amp;lt;WebGridID&amp;gt;&amp;gt;_CalDD, which is WebGrid1_CalDD.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;For the last questions, by you meant "gridcell is edited", does it refer to the other cell besides the CalenderDropDown cell ? Or perhaps, do you mean that if any other cells in WebGrid is being edited, the CalenderDropDown is automatically shown ? Please provide me with more detail so that I can create a simple sample under your scenario.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>I use CalendarDropdown in my grid!</title><link>http://www.intersoftsolutions.com/Community/WebGrid/I-use-CalendarDropdown-in-my-grid/</link><pubDate>Wed, 23 Jun 2010 23:26:11 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1.How to do if I use WebCombo  ?&lt;/p&gt;
&lt;p&gt;2.And what is "WebGrid1_CalDD" ?&lt;/p&gt;
&lt;p&gt;3.How can I implement this effect:CalendarDropdown show when a gridcell is edited,and CalendarDropdown hide when this cell is not edited?&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Heny&lt;/span&gt;&lt;/p&gt;</description></item><item><title>I use CalendarDropdown in my grid!</title><link>http://www.intersoftsolutions.com/Community/WebGrid/I-use-CalendarDropdown-in-my-grid/</link><pubDate>Tue, 22 Jun 2010 15:46:25 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Heny,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; In this case, since we are not using the WebCombo as a edit type, we will need to get the element of its dropdrownlist which attached to the WebGrid, after that, we can simply call the onclick event to trigger on showing the dropdownlist calender.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;Here is the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;        function Button1_onclick()
        {
            var grid = ISGetObject("WebGrid1");
            var getSelectedObject = grid.GetSelectedObject();
            if (getSelectedObject != null)
            {
                var toRowObject = getSelectedObject.ToRowObject();
                var getCell = toRowObject.GetCells().GetNamedItem("OrderDate");
                getCell.ActivateEdit();
                setTimeout(function()
                {
                    document.getElementById("WebGrid1_CalDD").onclick();
                }, 200);
            }
            else{
                alert("Please select a row first");
            }
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>I use CalendarDropdown in my grid!</title><link>http://www.intersoftsolutions.com/Community/WebGrid/I-use-CalendarDropdown-in-my-grid/</link><pubDate>Tue, 22 Jun 2010 06:25:38 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use CalendarDropdown in my grid! and can I show the  CalendarDropdown form when I click a button?&lt;/p&gt;</description></item></channel></rss>