1)How to set a row in radgrid as active row and take that particular index?
2)How to group three columns under one column in radgrid.
For ex...
Current is main column and under thar price,rate ,qty is der.
Please help me soon..
Thanks
public
static Menu CreateTaskMenu()
{
Menu tasksMenu = new Menu();
RadMenuItem headerItem = new RadMenuItem();
RadMenuItem seperatorItem = new RadMenuItem();
seperatorItem.IsSeparator =
true;
RadMenuItem taskItem1= new RadMenuItem();
taskItem1.Text = MARK_AS_COMPLETE;
taskItem1.Value = MARK_AS_COMPLETE;
RadMenuItem taskItem2 = new RadMenuItem();
taskItem1.Text = EDIT_TASK;
taskItem1.Value = EDIT_TASK;
RadMenuItem taskItem3 = new RadMenuItem();
taskItem1.Text = DELETE_TASK;
taskItem1.Value = DELETE_TASK;
RadMenuItem taskItem4 = new RadMenuItem();
taskItem1.Text = EMAIL_TASK;
taskItem1.Value = EMAIL_TASK;
tasksMenu.Items.Add(taskItem1);
tasksMenu.Items.Add(taskItem2);
tasksMenu.Items.Add(taskItem3);
tasksMenu.Items.Add(seperatorItem);
tasksMenu.Items.Add(taskItem4);
tasksMenu.ID =
"tasksMenu";
return tasksMenu;
}
I have a grid in which I have an image on click of which i want to display this menu.
The grid and this menu are placed in a user control which is again created in .CS and no .ascx file.
These main user control is to be accessed in a web part. I am not able to acess the client id as it is changing in web part than what it is in user control.
Please help me in this scenario.
| <script type="text/javascript"> |
| Sys.Application.add_load(function() |
| { |
| currentlySelectedTab = $find("<%= RecipientTabs.ClientID %>").get_selectedTab(); |
| }); |
| function onClientTabSelecting(sender, args) |
| { |
| var currentlySelectedTab = args.get_tab().get_tabStrip().get_selectedTab(); |
| if (currentlySelectedTab.get_index() == 1) |
| { |
| $find("<%= AjaxPanel1.ClientID %>").set_enableAJAX(false); |
| } |
| } |
| </script> |