Hi,
Iam using treeview when we click the node in the treeview based on the node value it will display the data in the radgrid. In the below code we are using list to bind the data.In the list we are getting the data but when we bind it is not displaying any data.Can you please do the needful.
List<LegacyResource> result = null;
protected void rdCategory_NodeClick(object sender, RadTreeNodeEventArgs e)
{
try
{
if (e.Node != null)
{
if (int.TryParse(e.Node.Value, out ResourceID))
{
result = LegacyResourceAgent.GetResourceLinks(LinkResourceData, ResourceID);
//result.
if (result != null)
this.ManageTootipsGrid.Rebind();
}
else
{
this.ManageTootipsGrid.DataSource = result;
this.ManageTootipsGrid.DataBind();
}
}
}
catch (Exception ex)
{
}
}
protected void manageTooltips_onNeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
//refresh data for grid (needed when user performs update, sort, etc...
this.ManageTootipsGrid.DataSource = result;
}
Iam using treeview when we click the node in the treeview based on the node value it will display the data in the radgrid. In the below code we are using list to bind the data.In the list we are getting the data but when we bind it is not displaying any data.Can you please do the needful.
List<LegacyResource> result = null;
protected void rdCategory_NodeClick(object sender, RadTreeNodeEventArgs e)
{
try
{
if (e.Node != null)
{
if (int.TryParse(e.Node.Value, out ResourceID))
{
result = LegacyResourceAgent.GetResourceLinks(LinkResourceData, ResourceID);
//result.
if (result != null)
this.ManageTootipsGrid.Rebind();
}
else
{
this.ManageTootipsGrid.DataSource = result;
this.ManageTootipsGrid.DataBind();
}
}
}
catch (Exception ex)
{
}
}
protected void manageTooltips_onNeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
//refresh data for grid (needed when user performs update, sort, etc...
this.ManageTootipsGrid.DataSource = result;
}