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

Text in Toolbar

3 Answers 292 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Damir
Top achievements
Rank 1
Damir asked on 08 Mar 2012, 08:14 PM
Hi,

I would like use a text (only text without button) in the toolbar, after the buttons "create", "edit" and "save". in this, I would like write "New or changed data are not stored - Please save data". It is possible?

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 09 Mar 2012, 12:21 PM
Hi Damir,

You can append text to the toolbar with simple jQuery script. For example:
$(".k-toolbar.k-grid-toolbar").append("<span id='customMessage'>New or changed data are not stored - Please save data.</span>");
 
//sample styling
#customMessage {
    line-height: 32px; //height of the buttons 
    vertical-align: middle;
    margin-left: 15px;
}

I hope this information will help you to achieve your goal.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Damir
Top achievements
Rank 1
answered on 09 Mar 2012, 05:04 PM
Hi Alexander,

yes it works fine, thank you!!!!

But now i miss an event after-edit or after-add/delete in grid....

It is planned or is there a solution?

Damir
0
Alexander Valchev
Telerik team
answered on 12 Mar 2012, 01:59 PM
Hello Damir,

I suggest using the save and remove events to keep track of the changes made to the grid. The save event will fire before the grid item is changed, while the remove event will rise when an item is deleted.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Damir
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Damir
Top achievements
Rank 1
Share this question
or