Process a GanttToolbarItem custom command

1 Answer 87 Views
Gantt
Matthew
Top achievements
Rank 1
Iron
Iron
Matthew asked on 19 Jul 2021, 03:05 PM

How do you process a GanttToolbarItem custom command server-side?

The documentation https://docs.telerik.com/devtools/aspnet-ajax/controls/gantt/functionality/client-templates#toolbar-template here does not provide a C# example.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 22 Jul 2021, 12:33 PM

Hello Matthew,

The RadGantt does not have built-in support for triggering a postback from a custom command button. 

With that said, you can choose the best approach for your application to trigger the postback. Here are some common options: 

1) Programmatically click a visually hidden button and handle the OnClick server-side event;

2) Programmatically call the __doPostBack() method and check for the Request's __EVENTARGUMENT and __EVENTTARGET: https://www.codeproject.com/Articles/667531/doPostBack-function 

3) Trigger a partial postback using the RadAjaxManager: 

Regards,
Peter Milchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Gantt
Asked by
Matthew
Top achievements
Rank 1
Iron
Iron
Answers by
Peter Milchev
Telerik team
Share this question
or