Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

JQuery Kendo Grid on entity form: code and usage explanation

Posted on by 355

Hi,

I'm new to Js and JQuery, I'm trying to understand how a Kendo Grid works within Dynamics CRM online, and what the relevant pieces of code mean.


-------  Assumption ----->


On Dynamics CRM, I see a Kendo Grid showing values inside an entity form.
The HTML file kendo_Grid.html has been added as Webresource in the solution.

Inside the code, in the HTML file, I see a function that begins with the following instructions:

function myFunction() {
            
            var grid = $("#grid").data("kendoGrid");

I'm aware that the "$" is a JQuery identifier that gets an element whose id is "grid": where such an element has been defined? (Where should I look to find the element whose id is "grid")?

----

Can you please give me some examples involving Html, Js and Jquery code that show the connections:

1) between the JS function like the one above and the element the $ identifier refers to (global coding scenario);

2) between the HTML file like the one above and the forms where is being used, i.e., how can I tell an entity form to use a kendo grid as far as the Webresource has been added? (CRM scenario)

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: JQuery Kendo Grid on entity form: code and usage explanation

    Hi,

    Please refer below github links for code example.

    https://github.com/jlattimer/CRMKendoUIGridREST

    http://jsfiddle.net/k46bD/1/

    For point 2 please check below link.

    https://carldesouza.com/dynamics-365-html-web-resource-example/

    Thanks,

    Pradeep.

    Please mark this as VERIFIED if it helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans