Hi,
I need to have a grid as shown below. The structure of the grid cannot be decided at design time coz columns A, B is not restricted to only those columns. There can be other columns like C,D, etc. So i am binding the records at runtime.
I place the grid at designtime and set AutoGenerateColumns="True"
Name A B
Test1 valueA1 * valueB1 *
Test2 valueA2 * valueB2 *
Test3 valueA3 * valueB3 *
Bulk Update Textbox1 UpdateButton1 Textbox2 UpdateButton2
I need the values in columns A,B,C,D,etc to display in textboxes when the page is displayed. ie: Textboxes displayed for A,B columns needs to be in a single line. I tried as
protected void rgTest_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{ for (int i = 0; i < rgTest.PageSize; i++) {
rgTest.EditIndexes.Add(i); }
}}
This is working fine but the textboxes doesn't display in one line. For each rows, the textboxes are displayed in different lines.
1) Is this requirement possible? If so how?
2) At the end of the grid, for columns A,B,C etc needs textboxes for bulk update as shown above. So that, when i enter the value in the bulkupdate Textbox1 and click on UpdateButton1, all the textboxes in columnA should be updated with the value in the Textbox1. Similar for UpdateButton2, etc.. Is this possible? If so how?
3) * for each cell, will be an image button. It will be Delete and Update images. When the Delete image is clicked the corresponding textbox should be disabled. If Update is clicked, the corresponding textbox should be enabled. Is this possible?
Any help much appreciated.
Thanks