So my problem is that I have a RadGrid which has a WebUserControl as Template
Inside this WebUserControl I have a RadTreeView with ChecBoxes that I populate with some datasource, I run the app, I select some Nodes, but they don't stay checked because Page_Load(here I set de datasource to the RadTreeView) event executes before leaving to the .aspx
The thing here is that Page.IsPostBack is always true so it resets my treeview everytime
.ascx
Another thing is how can I set a propertie of my .ascx from the .aspx?
Inside this WebUserControl I have a RadTreeView with ChecBoxes that I populate with some datasource, I run the app, I select some Nodes, but they don't stay checked because Page_Load(here I set de datasource to the RadTreeView) event executes before leaving to the .aspx
The thing here is that Page.IsPostBack is always true so it resets my treeview everytime
.ascx
protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) { List<ANYTYPE> list = SOMEDATASOURCE; treeView.DataSource = SOMEDATASOURCE; treeView.DataBind(); }}Another thing is how can I set a propertie of my .ascx from the .aspx?