Hi guys,
I want to bind a web date chooser to a column in a web grid in the client side using javascript, i.e when i click on the cell, a web date chooser should pop up.
If u guys have any idea,plz help?
Hi,
This is the way where you can bind the web date chooser to the grid. It will pop up the date chooser when user double clicks on that column.
(1) Add Web date chooser control in the aspx page. You can set its other properties also.
<igsch:WebDateChooser ID="WebDateChooser1" runat="server" >
</igsch:WebDateChooser>
(2) Bind with the specific columns in the server side code.
DataTable table1 = GetData();
grid1.DataSource = table1;
grid1.DataBind();
grid1.Columns[2].Type = ColumnType.Custom;
grid1.Columns[2].EditorControlID = WebDateChooser1.ID;
grid1.Columns[2].AllowUpdate = AllowUpdate.Yes;
Make sure that your column should be of type DateTime.
Do you want this to be done in client side? Could you explain your technical requirement in detail?
Let me know if this helps you.
Greetings
The problem is that my aspx page is inside a Master page,when i remove the Master page ,it's working perfectly with the code that you have provided.,do you know the reason why?
How can i include Master page as well as the Web date Chooser?
Does the hidden field UserID is inside Template Column?
Please check http://community.infragistics.com/forums/p/27385/100973.aspx#100973
No, The userid is a normal column,not inside a templated column...
try using ultraGridRow.Cells.FromKey("UserID").Value
does hidden field means ASP:HiddenField or the column is hidden ?
The column is hidden ,not Asp:hidden,
I tried the .value also,but no luck!!!!
anooj,
I'm not entirely certain what the issue is at this point, or the nature of your setup.
Can you reproduce this in a sample application that we can run and debug? If so, I recommend that you submit a support request and attach your sample application, so that a Developer Support Engineer can research your issue more in-depth than we can do through the forums.
By the way, it's usually more efficient to start a new forum thread (or submit a new support request) when you have a new issue. That way, it'll be clear to all readers that you have an unanswered question that you've just asked, or to later see when your question is answered.