This is a migrated thread and some comments may be shown as answers.

HeaderContextMenu without any existing items

8 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
KC
Top achievements
Rank 1
KC asked on 30 Apr 2011, 12:05 AM
Hi,

Am trying to use the HeaderContextMenu for RadGrid to provide application-specific options. When I try to remove all the pre-defined options using this solution - http://www.telerik.com/community/forums/aspnet-ajax/grid/headercontextmenu-add-remove-items-vb-net.aspx#1284516 , the menu is not displayed at all. Specifically, when I remove the "Columns" option.

Is there any other way to do this? Or can I add in a HeaderContextMenu of my own to a specific column?

And I also tried to display the menu on left click using this snippet

function OnColumnClick(sender, args)
{
args.get_gridColumn().showHeaderMenu(args.domEvent);
}

But the menu doesn't stay expanded. It collapses immediately after it expands. Any ideas on how to make that work?

Thanks!

8 Answers, 1 is accepted

Sort by
0
KC
Top achievements
Rank 1
answered on 02 May 2011, 11:58 PM
Hi,

Any help regarding this issue would be appreciated.

Thank you.
0
Tsvetoslav
Telerik team
answered on 05 May 2011, 07:43 AM
Hi KC,

Try downloading the next latest internal build and run the attached sample - the problem with the columns item should no longer be present.

Regards,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
KC
Top achievements
Rank 1
answered on 05 May 2011, 10:35 PM
Will try and let you know. Thank you!
0
KC
Top achievements
Rank 1
answered on 05 May 2011, 10:50 PM
Hi Tsvetoslav,

I used the latest build with these release notes - http://www.telerik.com/versionnotes.aspx?nb=1&id=1254 and the problem still exists. So am guessing the build with the fix is yet to be available :)

Thanks!

0
Tsvetoslav
Telerik team
answered on 11 May 2011, 10:00 AM
Hi KC,

The build that is currently in your account should have it. 

All the best,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
KC
Top achievements
Rank 1
answered on 12 May 2011, 12:14 AM
Hi Tsvetoslav,

The latest build I see in my account is named "Telerik.Web.UI_2011_1_503_Trial_hotfix" and the dll included in that build does not solve the problem.
Are the builds not available as am using the trial version?

And to give you more information I get a Javascript error near the line "var h=m.findItemByValue("ColumnsContainer").get_items();" within Telerik internal scripts.

Thank you.


0
Accepted
Tsvetoslav
Telerik team
answered on 13 May 2011, 12:55 PM
Hi KC,

Could you try the attached sample - I am sending it with the latest internal build dlls.

Greetings,
Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
KC
Top achievements
Rank 1
answered on 13 May 2011, 10:31 PM
Hi Tsvetoslav,

It works now.

Thank you!
Tags
Grid
Asked by
KC
Top achievements
Rank 1
Answers by
KC
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or