Hello everyone,
So i m using ig grid in my asp.net mvc project.I want to use tag helpers in my visual studio. Could you please help me out like how to do this.When i use @html.infragistics.grid()... it shows helpers.. but when i use $(selector).iggrid{(...)} like this it doesnt show any helpers.So please help me out with this issue.
Hello,
I have been looking into your question and this is the default and expected behavior of Visual Studio and this is the difference between Asp .NET Core MVC and jQuery.
What we need to clarify is that the default dot helpers in Visual Studio C# are the ones that are provided by the System.Web.Helpers namespace. Additional dot helpers can also be found in the various libraries namespace that you use, as is the case with the Infragistics library and namespace. From it come dot helpers for all our controls, but they can only be used in C# syntax and where there can be a dot to show the helpers. In the case of using and declaring @html.infragistics.grid() with Asp .NET Core MVC syntax you are using C# syntax and using dots to define the various properties, methods, events and therefore dot helpers are available and you can use them .
On the other hand, when you use and declare $(selector).iggrid{(...)} with jQuery, you do it in a script tag where the C# syntax or Asp .NET Core MVC syntax is not supported, and in such you use jQuery, which has nothing common with using dots to define properties, methods or events is why dot helpers are not available and you cannot use them.
However, all the properties, methods, events and additional information about all our controls and how to use them for both Ignite UI jQuery and Ignite UI Asp .NET Core MVC can be found here:
1) In our Ignite UI Samples here.
2) In our API Documentation here.
3) In our Help Topics here.
Please review the following sources and the information provided to you. Thank you for your cooperation.
Regards,
Georgi Anastasov
Entry Level Software Developer
Infragistics