Hi,
I had embedded webdate chooser and webcombo in Ultrawebgrid and mu souce code is as follows for these
< igsch:WebDateChooser id="wdcrenewaldate" runat="server" Width="118px" Height="6px" Font-Size="8pt"
>
</CalendarLayout>
<DropDownStyle Font-Size="8pt" Font-Names="Verdana"></DropDownStyle>
<DropButton ImageUrl2="./images/igsch_dropdown_down_o2003silver.gif" ImageUrl1="./images/igsch_dropdown_down_o2003silver.gif"></DropButton>
</igsch:WebDateChooser>
:webcombo id="WebCombo1" runat="server" DisplayValue = "Insurance Type" Height="20px" Width="123px" Font-Names="Verdana" Font-Size="8pt" BorderStyle="Solid" BorderWidth="1px" SelBackColor="LightSteelBlue" BackColor="White" ForeColor="Black" SelForeColor="51, 51, 51" Version="2.00" BorderColor
="Gainsboro">
<Columns
<
igtbl:UltraGridColumn
</
Columns
I place webgrid, webcombo, webdatechooser into the page and on grid initioalise layout event
UltraWebGrid2.DisplayLayout.Bands[0].Columns[20].EditorControlID =
"wdcrenewaldate";
UltraWebGrid2.DisplayLayout.Bands[0].Columns[15].EditorControlID =
"WebCombo1";
in this way I could bind the controls to grid.
When i am running the page and grid is loaded, i am unable to view these controls in their columns.
If i double click on that particular cell, then that control is activated. I want see the drop down button on grid load in that pasrticular
column. Is it possible.
Is my approch of inserting control in grid is correct, if not please correct me.
ThankYou
Can U please help me on this???
I assume you want to show the dropdown button on the column embedding the editors, right? The way you've embedded the editors is fine and are visible only when the cell goes into edit mode, for example double clicking inside a cell. In order to show the dropdown buttons always, you can create template columns. Please visit the link below to learn more about this:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebGrid_Using_Column_Templates.html
Hope this helps.
Thanks
Hi Sarita,
Thanks for your update. I understood the scenario u explain me. While editing the cell only the controls can be seen.
The link you provided explains about a normal dropdown control, I want to work on webcombo and webdatechooser,
both infragistic tools.
It would be very be helpful for me if you provide me such link worked with Infragistic controls.
It works the same way. You can drag and drop a WebCombo/WebDateChooser in the Cell Template section. So, the cells of the column can show the controls all the time. This should work fine. Let me know if you get any issues while implementing this.
Sarita
The example cited in this glosses over how to initialize the dateChooser in the grid.
Or in the help example, "Set the button's Text property to the code expression to display the CustomerID as the button caption."
How about a concrete example instead of glossing over it?
The online samples for 2008.2 is not showing the correct source code, or I would use that. It is showing the source code for the redirect page.