Hello everyone,
Find out workaround for the previous problem.
------------------------------------------------------
Following is description of the current issue.
Attached are the screenshots of what is actually required.
We have a "Course/Group Courses" tab page as given in figure 1 of attached screen shot.
Another tab "Hierarchy/Attributes" tab as given in figure 2 of attached screen shot.
In figure 2 in "User Hierarchy" tree view I have checked "n,k" which is part of "Test" group, and in figure 1 I have selected "Test1" from "Course Groups" tree view and there are two courses in "Selected Courses" grid.
Now in figure 1 you can see there is a "Make Assignment" button which on click displays figure 3 as a new window with a filled radgrid.
The grid in figure 3 has "Assign To" and "Assign Content" and various other columns.
The "Assign To" column is hyperlink with data same as node selected in figure 2 i.e. "Test". I think this is a template column.
As well as "Assign Content" has values from "Course Groups" and "Selected Courses".
I want to know as to how to create this grid as shown in figure 3.
Since I cannot fire select query because all items are coming dynamically, can you let me know how to create the radgrid as shown in figure 3.
For implementing the current requirement in our prototype, I have used following link
http://www.telerik.com/help/aspnet-ajax/grdbindingtonullableobjects.html, by which I think I would be able to retrieve data from treeview and grid and create datasource as arraylist for figure3 radgrid. Am I going correct?
My figure 3 radgrid is declared in aspx page. Since I have to create the figure 3 grid on "Make Assignment" button click event, when I click the button the grid displays with no records in new radwindow.
Following is my button lcik event code.
ArrayList algrid = (ArrayList)Session["arr"]; // for data from treeview from figure 1
ArrayList algrid1 = (ArrayList)Session["arr1"];// for data from treeview from figure 2
ArrayList list = new ArrayList();
foreach (string s in algrid)
{
foreach (string s1 in algrid1)
{
list.Add(new TestListItem1(s, s1))
}
}
Session["ds"] = sourcelist2;
makegrid.Rebind();
-----------------------------------------
and following is my onneeddatasource code
ArrayList sourcelist = (ArrayList)Session["ds"];
this.makegrid.DataSource = sourcelist;
----------------------------------------------
but the grid displays no data.
Kindly let me know as to how to go for this.
Thanks and regards