Hi, i'm working with the sample that persists grid setting to an xml file. I have a tree view loaded with form names that loads a dynamic grid. Saves and loads settings ok. I changed
where "name" is the name of the form seleted from treeview so i have an xml file for each form
I load all the saved settings into the combo based on the tree sellection, however this only works for the first node selected
clearing the combo and databind to different xml file does nothing even though the xml is loaded correctly
SettingsDDL.DataSource =
GridPersisterUtility.GetSettingIds(name + "GridSettings.xml");
where "name" is the name of the form seleted from treeview so i have an xml file for each form
I load all the saved settings into the combo based on the tree sellection, however this only works for the first node selected
clearing the combo and databind to different xml file does nothing even though the xml is loaded correctly
// in node click event
string
selectedValue = SettingsDDL.SelectedValue;
SettingsDDL.Items.Clear();
// doesnt clear
SettingsDDL.Items.Add(
new
RadComboBoxItem(
""
,
""
));
SettingsDDL.DataSource = GridPersisterUtility.GetSettingIds(Session[
"nodeText"
].ToString() +
"GridSettings.xml"
);
// loads data from selected xml file ok
SettingsDDL.DataBind();
// still contains original data
SettingsDDL.Items.FindItemByValue(selectedValue).Selected =
true
;