I'm using Telerik Grid and binded an XML through dataset. I've a autyo generate edit coulmn.
When I press edit, I get a text box with exisitng value and update, cancel button. After typing new value whren i press am not getting the new value in the grid. Can any one help on this. I'm using updatecommand event,but no use so far. Here is my code
Hashtable newValues = new Hashtable();
((GridEditableItem)e.Item).ExtractValues(newValues);
There may be some here who knows about Telerik controls, but I think you stand a better chance by posting it at Telerik dedicated forums:
http://www.telerik.com/community/forums.aspx
Vincent Maverick Durano
Microsoft MVP, CodeProject MVP, C# Corner MVP
Blog | Twitter | Linkedin
Member
4 Points
48 Posts
Telerik Grid Update Command
May 09, 2011 12:09 AM|suderson|LINK
Hi All,
I'm using Telerik Grid and binded an XML through dataset. I've a autyo generate edit coulmn.
When I press edit, I get a text box with exisitng value and update, cancel button. After typing new value whren i press am not getting the new value in the grid. Can any one help on this. I'm using updatecommand event,but no use so far. Here is my code
Hashtable newValues = new Hashtable();
((GridEditableItem)e.Item).ExtractValues(newValues);
GridEditableItem editItem = (GridEditableItem)e.Item;
GridEditableItem editedItem = e.Item as GridEditableItem;
GridEditManager editMan = editedItem.EditManager;
var obj = editItem.GetDataKeyValue("ConnectionString");
//TextBox txt = e.Item.FindControl("txtValue") as TextBox;
//if (txt != null)
//{
// string s = txt.Text;
//}
ds.Tables["add"].Rows[editItem.DataSetIndex][1] = "XXXXX";
//radDisplay.DataSource = ds.Tables["add"];
radDisplay.Rebind();
StringWriter sw = new StringWriter();
ds.WriteXml(sw);
Session["decryptesXMLString"] = sw.ToString();
All-Star
102952 Points
19469 Posts
MVP
Re: Telerik Grid Update Command
May 09, 2011 01:18 AM|vinz|LINK
Hi,
There may be some here who knows about Telerik controls, but I think you stand a better chance by posting it at Telerik dedicated forums: http://www.telerik.com/community/forums.aspx
Microsoft MVP, CodeProject MVP, C# Corner MVP
Blog | Twitter | Linkedin