Telerik Grid Update Command RRS feed

  • Question

  • User-1566368965 posted

    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 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"];
                StringWriter sw = new StringWriter();
                Session["decryptesXMLString"] = sw.ToString();

    Monday, May 9, 2011 12:09 AM