Hello,
I am new to infragestics controls. i have a partial view inside the partial view i am using the infragestic Combobox . I call the Partial view from my main view repeatedly for showing it as an Accordion, The combobox are appear perfectly if only one Accordion is on the page where as if there are more than one Accordion is present than the Combobox are appearing perfectly in the last Accordion only and not displayed in other Accordion.
I am unable to get what is the reason for it.
i am using beolw two line for initailizing the infragestic combo box
@(Html.Infragistics().Loader().ScriptPath(Url.Content("~/Scripts/InfragisticsjQueryMVC/common/js/")).CssPath(Url.Content("~/Scripts/InfragisticsjQueryMVC/common/css/")).Theme("metro").Resources("igCombo").Render())
@Html.Infragistics().Combo().NullText("Purchase").InputName(@Model.PKLoanPropertyDetailID+"-transactionType").ID(@Model.PKLoanPropertyDetailID+"-transactionType").AutoComplete(true).DataSource(objTransactionType).DropDownWidth(200).Mode(ComboMode.DropDown).AllowCustomValue(false).TextKey("Name").ValueKey("Id").Text(Model.TransactionType).Width("200px").Render()
Thanks and Best Regards
Pradeep
Thank you Martin
i have placed the infragestic loader in my partial view now. its working fine now.
Thanks
Hello Pradeep,
Thanks for your feedback.
I see that the code you've posted didn't detected igLoader and thus didn't generated ig.loader callback ($.ig.loader(function() {/*igCombo configuration here*/});). Instead it used the jQuery dom ready syntax($(function() {/*igCombo configuration here*/});).
If you've defined the loader only in the page and not in the partial view, then the partial view doesn't know about the loader. That's why you have to instantiate a separate instance of igLoader in the partial view too. For reference you can see the following forum thread: http://ko.infragistics.com/community/forums/p/76955/388696.aspx
I've modified my sample in order to demonstrate the right configuration of igLoader in the main page as well as in the partial view.
Do not hesitate to ask if you have any additional questions.
Best regards,Martin PavlovInfragistics, Inc.support@infragistics.com
Hello Martin,
Thanks for your reply.
yes i am using the infragestic Loader in the page. as i am opening same partial page as a dialog box, if i dont used the infragestic Loader than i am getting the igloader initializayion excpetion .
i am unable to get the render span for combobox
see the below render tag
Best regards
Thanks for the information.
So far I am unable to reproduce the described behavior. I am attaching my sample for your reference.
In the sample I use infragistics.js file and not the Infragistics Loader.
Are you using Infragistics Loader?
Best regards,
Martin Pavlov
Infragistics, Inc.
support@infragistics.com
As i am unable to send you a sample now ,but i am sending you the code that i try to implement in the partial page
here is the code snippet . please check it once ,
This is the Main page from where i am calling the Partail Page.
@foreach (PropertiesDetail propertyDetails in Model) {
@Html.Partial("PropertyPartialView", propertyDetails)
}
and here is the code in the Partail View which contains 5 combo box . I have written like this,
1st combobox
2nd comboobx
@Html.Infragistics().Combo().NullText("Choose property category...").InputName(@Model.PKLoanPropertyDetailID+"-propertyType").ID(@Model.PKLoanPropertyDetailID+"-propertyType").AutoComplete(true).DataSource(_vdPropertyType).DropDownWidth(250).Mode(ComboMode.DropDown).AllowCustomValue(false).TextKey("Name").ValueKey("PKPropertyTypeID").Text(PropertyName).Width("250px").Render()
.....
If you still required a sample please let me know.
Best Regards
pradeep