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

2nd CommandItemTemplate

4 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 08 Sep 2014, 08:09 PM
Hi All,

In order to provide consistent skinning I'd like to add a second commanditemtemplate to the bottom of my grid.  I use one at the top to provide the grid with a title and some attractive (ish) buttons for adding new records, refreshing etc.  I'd now like a second bar along the bottom to place any extra information in such as icons descriptions etc...

Is there a way to do a built in second commanditemtemplate or do I need to make a fake one?  

Worst case I suppose that one way to do it might be to do a custom pager and then simply give that a second row, this appearing like an extra bar...

Regards

Jon

4 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 11 Sep 2014, 01:29 PM
Hello Jon,

The command item can be generated both on the top and the bottom of the grid, exactly how you've requested:
<MasterTableView ... CommandItemDisplay="TopAndBottom">

That should do the trick. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 11 Sep 2014, 01:45 PM
Hi Eyup,

Thanks for this and the similar related treelist answer.

In this case I was actually wanting to see a different footer command item display to the one at the top.  The proposed TopAndBottom solution duplicates it in both locations doesn't it?

Regards

Jon
0
Accepted
Eyup
Telerik team
answered on 15 Sep 2014, 07:47 AM
Hello Jon,

By default, yes. However, you can use the CommandItemTemplate and place inside two asp:Panels. Then, you can configure them so that the first panel will be visible for the Top command item, and the second one - for the bottom item.

I hope this will prove helpful.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 15 Sep 2014, 07:52 AM
Ah fantastic - that's great.  Thanks for that Eyup.

Best Regards

Jon
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Jon
Top achievements
Rank 1
Share this question
or