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

Grid pupup edit save / cancel buttons

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dina
Top achievements
Rank 1
Dina asked on 20 May 2017, 12:02 PM

you can set save / cancel buttons text buy UpdateText and CancelText of command.Edit()

columns.Command(command => { command.Destroy().Text(" "); command.Edit().HtmlAttributes(new { style = " " }).Text(" ").UpdateText("Сохранить").CancelText("Отмена"); }).Width(100);

 

what if I need only delete button present in grid? (so user can add or delete items)?

if I remove edit command I will get default button names. If I set command.Edit(). HTMLAttributes display to none I will get no edit button but also I get NO save update buttons in popup

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 23 May 2017, 11:36 AM
Hello Dima,

A possible workaround is configuring the Visible property of Edit command. For example:

command.Edit().Visible("notVisible").Text(" ").UpdateText("Сохранить").CancelText("Отмена");
<script type="text/javascript">
    function notVisible() {
        return false;
    }
</script>

Please, give the above a try and let me know if you require any further assistance.


Regards,
Preslav
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Dina
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or