I'm binding a RadGrid using a custom LINQ query in the NeedDataSource method in the .cs file. However, there are two columns that I don't want to bind from that datasource, but instead from another List<int> of values called MemberIDs.
The MemberID would affect the left-most column, which either contains a link button that says "Match", or, different link button that would say "Expand". The "Match" link button should only be displayed if there does not exist a corresponding value in the List<int> MemberIDs for that row's databound record's own MemberID field, otherwise it should display the "Expand" link button which when clicked would open a child RadGrid.
I would like to either be able to raise an event upon the cell creation of that column for that row, and set the appropriate link button in that event's method, or do it in the NeedDataSource event of the RadGrid. I'm not sure which would work or be better. Is it possible to have such an event upon cell creation, and be able to check that row's databound record's MemberID keyfield from that event? If so, what's the name for such an event?
The second thing I need to figure out is that in the expand/collapse column of the RadGrid, I want the angle bracket '<' for expanding a child RadGrid to appear and be clickable, only when the condition for displaying the "Expand" link button (described above) is matched, but if the condition for the "Match" link button is met, then I either don't want to display the angle bracket '<' or make it not be clickable.
Is there a good way to set this up?
Also, is it possible for the "Expand" link button to raise the same event as the angle bracket '>' expand button, i.e., 'e.CommandName == "ExpandCollapse"'?
Thanks for any help possible!
The MemberID would affect the left-most column, which either contains a link button that says "Match", or, different link button that would say "Expand". The "Match" link button should only be displayed if there does not exist a corresponding value in the List<int> MemberIDs for that row's databound record's own MemberID field, otherwise it should display the "Expand" link button which when clicked would open a child RadGrid.
I would like to either be able to raise an event upon the cell creation of that column for that row, and set the appropriate link button in that event's method, or do it in the NeedDataSource event of the RadGrid. I'm not sure which would work or be better. Is it possible to have such an event upon cell creation, and be able to check that row's databound record's MemberID keyfield from that event? If so, what's the name for such an event?
The second thing I need to figure out is that in the expand/collapse column of the RadGrid, I want the angle bracket '<' for expanding a child RadGrid to appear and be clickable, only when the condition for displaying the "Expand" link button (described above) is matched, but if the condition for the "Match" link button is met, then I either don't want to display the angle bracket '<' or make it not be clickable.
Is there a good way to set this up?
Also, is it possible for the "Expand" link button to raise the same event as the angle bracket '>' expand button, i.e., 'e.CommandName == "ExpandCollapse"'?
Thanks for any help possible!