How to populate Kendo.textbox() value from database value.

1 Answer 391 Views
TextBox
Raja
Top achievements
Rank 1
Raja asked on 06 Dec 2022, 02:47 AM

Hello,

In Page load, I need to populate date field from database. I am trying to do using ASP.NET MVC Kendo().textbox(). Please share some sample code or advice.

Thanks in advance.

Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 08 Dec 2022, 12:11 PM

Hello Raja,

Thank you for the details provided.

In order to achieve the desired behavior, I would recommend using the "value" method of the Teleri UI TextBox. In the document.ready event handler set the value of the TextBox. The value could be get via one of the following approaches:

  • From the prepopulated View Model property.
  • By using an Ajax Get Request to an Action Method of the Controller.

Give a try to the approaches above and let me know if further assistance is needed.

Looking forward to hearing back from you.

Kind Regards,
Anton Mironov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TextBox
Asked by
Raja
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or