Hello All,
i added one radgrid dynamically in asp.net application. in the radgrid i am using the form template to insert and update the record, i have three columns in the grid like Col1,Col2,Col3. all are the textbox columns. Col3 have one radimagebutton. if i click the radimagebutton it will open the radwindow and i pick some image after click ok button in the radwindow it will bind the value in Col3 textbox, this functionality is fine, but my question is
1. i entered some value in col1 and col2 textbox
2. after bind some image value in the Col3 textbox. col1 and col2 textbox values are gone because of postback
3. above scenario i handle in insert button through grid_itemCommand event, if i insert the form template all values are persist
4. but when i update that time i cannot able to persist the col1 and col2 values, col3 values are there
5. when i click the insert button in grid_itemcommand event the item will come as grideditformitem, so i can able to get the entered value using
GridEditFormItem item = (GridEditFormItem)e.Item;
string col1value=item.FindControl("Col1textboxid").Text;
and rebind to the corresponding textbox
6. when i click the update button in grid_itemcommand event the item will come as griddataitem, here i cannot find the control and cannot get the value, please tell me to persist the value
Kindly tell me how to resolve this issue
i added one radgrid dynamically in asp.net application. in the radgrid i am using the form template to insert and update the record, i have three columns in the grid like Col1,Col2,Col3. all are the textbox columns. Col3 have one radimagebutton. if i click the radimagebutton it will open the radwindow and i pick some image after click ok button in the radwindow it will bind the value in Col3 textbox, this functionality is fine, but my question is
1. i entered some value in col1 and col2 textbox
2. after bind some image value in the Col3 textbox. col1 and col2 textbox values are gone because of postback
3. above scenario i handle in insert button through grid_itemCommand event, if i insert the form template all values are persist
4. but when i update that time i cannot able to persist the col1 and col2 values, col3 values are there
5. when i click the insert button in grid_itemcommand event the item will come as grideditformitem, so i can able to get the entered value using
GridEditFormItem item = (GridEditFormItem)e.Item;
string col1value=item.FindControl("Col1textboxid").Text;
and rebind to the corresponding textbox
6. when i click the update button in grid_itemcommand event the item will come as griddataitem, here i cannot find the control and cannot get the value, please tell me to persist the value
Kindly tell me how to resolve this issue