This is a migrated thread and some comments may be shown as answers.

getting gridbound column values

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 11 Feb 2011, 11:57 AM
Hi
i am using grid bound columns and followed this procedure to retrive the values
string strID = string.Empty;
       string UnderLicenseeID = string.Empty;
       string StrType = string.Empty;
       string msg = string.Empty;
       //RadTextBox Users = ((RadTextBox)e.Item.FindControl("txtUsers")).Text;
       ViewState["bound"] = "1";
       if(e.Item is GridDataItem)
       {
           GridDataItem Item = e.Item as GridDataItem;
           if(ViewState["bound"].ToString() == "1")
           {
               foreach (GridDataItem item in RadGrid1.Items)
               {
                   if(item["Users"].Text != null)
                   {
                       strID = item["ClientID"].Text;
                       UnderLicenseeID = item["UnderLicense"].Text;
                       StrType = item["Type"].Text;
                       msg = item["Name"].Text;
                       RadGrid2.Visible = false;
                   }
               }
           }
       }
but what happens is that when i edit and enter a value the item["Users"].text value is &nbsp why i am not getting the value what i have enterd to update?
pl help

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Feb 2011, 12:47 PM
Hello Abinav,

Here is a documentation which shows Updating values in-place and with edit forms
http://www.telerik.com/help/aspnet-ajax/grdupdatinginplaceandeditforms.html

Thanks,
Shinu.
Tags
General Discussions
Asked by
abinav
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or