I am using RadCombobox in a grid. I have assigned attribute to the rad combobox from Javascript method. The code is below
var masterTable = $find("<%=radgrdChargeType.ClientID%>").get_masterTableView();
var dataRow = masterTable.get_dataItems()[popupTextControlId];
var radCmbBxChargeType = dataRow.findControl("radCmbBxChargeType");
radCmbBxChargeType.trackChanges();
radCmbBxChargeType.get_attributes().setAttribute("Ani", "Vai");
radCmbBxChargeType.get_attributes().setAttribute("1", "2");
radCmbBxChargeType.commitChanges();
Now I am trying to get the attribute value from Code behind page.
RadComboBox radCmbBxChargeType = gridItem.FindControl("radCmbBxChargeType") as RadComboBox;
if (radCmbBxChargeType.Attributes["Ani"] != null)
{
string att = radCmbBxChargeType.Attributes["Ani"];
}
But here the data is not persisting, i.e.
radCmbBxChargeType.Attributes["Ani"] is showing null.
How I can get the value !!
Note. - getting the exact combobox is not a problem.
It's urgent
var masterTable = $find("<%=radgrdChargeType.ClientID%>").get_masterTableView();
var dataRow = masterTable.get_dataItems()[popupTextControlId];
var radCmbBxChargeType = dataRow.findControl("radCmbBxChargeType");
radCmbBxChargeType.trackChanges();
radCmbBxChargeType.get_attributes().setAttribute("Ani", "Vai");
radCmbBxChargeType.get_attributes().setAttribute("1", "2");
radCmbBxChargeType.commitChanges();
Now I am trying to get the attribute value from Code behind page.
RadComboBox radCmbBxChargeType = gridItem.FindControl("radCmbBxChargeType") as RadComboBox;
if (radCmbBxChargeType.Attributes["Ani"] != null)
{
string att = radCmbBxChargeType.Attributes["Ani"];
}
But here the data is not persisting, i.e.
radCmbBxChargeType.Attributes["Ani"] is showing null.
How I can get the value !!
Note. - getting the exact combobox is not a problem.
It's urgent