Hi,
I have a RadGrid that I dynamically build at runtime, eg:
templateColumn = new GridTemplateColumn();
templateColumn.UniqueName = "Column" + (i + 1).ToString();
pt = new PresentationTemplate(0, "OnValueChanged", templateColumn.UniqueName);
templateColumn.ItemTemplate = pt;
templateColumn.FooterTemplate = new LabelTemplate("0", "lblFooter" + (i + 1).ToString());
templateColumn.DataField = "Column" + i;
RadGridGroup.MasterTableView.Columns.Add(templateColumn);
The template columns only allow numeric inputs.
I want to get the values of the template columns textboxes, eg:
foreach (GridDataItem gridRow in RadGridGroup.MasterTableView.Items)
{
RadNumericTextboxExtended textBox = gridRow.FindControl("0Column1") as RadNumericTextboxExtended;
This works when the columns are specified at design time (in the aspx), how can I get the values of these template column cells when I create the columns at runtime??
Thanks in advance
I have a RadGrid that I dynamically build at runtime, eg:
templateColumn = new GridTemplateColumn();
templateColumn.UniqueName = "Column" + (i + 1).ToString();
pt = new PresentationTemplate(0, "OnValueChanged", templateColumn.UniqueName);
templateColumn.ItemTemplate = pt;
templateColumn.FooterTemplate = new LabelTemplate("0", "lblFooter" + (i + 1).ToString());
templateColumn.DataField = "Column" + i;
RadGridGroup.MasterTableView.Columns.Add(templateColumn);
The template columns only allow numeric inputs.
I want to get the values of the template columns textboxes, eg:
foreach (GridDataItem gridRow in RadGridGroup.MasterTableView.Items)
{
RadNumericTextboxExtended textBox = gridRow.FindControl("0Column1") as RadNumericTextboxExtended;
This works when the columns are specified at design time (in the aspx), how can I get the values of these template column cells when I create the columns at runtime??
Thanks in advance