Hello,
I was trying to fill the WebDropDown with a JSON WebService. I have implemented the code and when I run the program I came across with an exception in IG scripts and on top of the exception following message exists.
K.D. June 27th, 2011 Bug #75499, the template was not properly retrieved when set by the client.
But I am still getting an exception from
$.tmpl(template, item) ... line.
Can you please help me if the bug still exists or may be I am not setting webdropdown correctly.
Note that following are set in client
1. Enable Client Rendering true
Cheers
Hi again,
If you're not setting it from the client side, the you can set it using a property of the drop down called
ClientRenderingTemplate
You use this property to define a jQuery template which the control would use to render the data that you're providing to it.
Here is an example: http://samples.infragistics.com/aspnet/Samples/WebDropDown/Data/jQueryClientTemplates/Default.aspx?cn=drop-down&sid=1cd0d5b4-a6c5-45c2-835b-1d8b230dfb18
The template in this sample is set to be:
<ClientRenderingTemplate> <li>Product: ${Data}</li> </ClientRenderingTemplate>Which means that for each item in your JSON it would render the Data property value in the list item prefixed with "Product: ".
Does this help?
Thanks for the quick response. First of all let me note the version I use. 11.1.2064. I can not use a further version for the time being as I am using various old grids in my application.
Secondly , I did not set the jquery template in the client side and if you can teach me how I need to do is I will appriciate a lot.
Thanks a lot again.
Hi there,
Could you please provide a small isolated sample reproducing your issue. Also are you defining a jQuery template which you set to the WebDropDown from the client-side?
Thank you for using the Infragistics forums!