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

Fields on Popup

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clayton
Top achievements
Rank 2
Clayton asked on 23 Jan 2020, 10:10 PM

I have a grid with a Popup upon edit, but I only want to show 1 or 2 fields in the popup not all of the fields from the selected row, is that possible?

 

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 27 Jan 2020, 02:29 PM

Hello Clayton,

You can use the editable.template configuration to customize the popup editor:

editable: {
  mode: "popup",
  template: kendo.template($("#popup-editor").html())
}

Template:

<script id="popup-editor" type="text/x-kendo-template">
  <h3>Edit Person</h3>
  <p>
    <label>Name:<input name="name" /></label>
      </p>
  <p>
    <label>Age: <input data-role="numerictextbox" name="age" /></label>
      </p>
</script>

This will allow you to edit only the Name and Age fields. Here is a small Dojo example for reference.

Let me know if you have further questions.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Clayton
Top achievements
Rank 2
answered on 27 Jan 2020, 04:00 PM

Thank you!  I'll go that route.

Would have been nice if there was a simple switch at the model though. ;)

Maybe next version...

Tags
Grid
Asked by
Clayton
Top achievements
Rank 2
Answers by
Martin
Telerik team
Clayton
Top achievements
Rank 2
Share this question
or