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
Hello Pradeep,
Thank you for posting in the community.
You should check if your combo boxes have different IDs.
Each combo box on the page should have unique ID in order for combo boxes to initialize properly. In your case @Model.PKLoanPropertyDetailID should generate different ID for each partial view.
Do not hesitate to contact me if you have any additional questions.
Best regards,Martin PavlovInfragistics, Inc.support@infragistics.com
Hello Martin
Thanks for your reply.
I am using unique ID for the combobox by adding the prefix @Model.PKLoanPropertyDetailID to each combobox (like this ID(@Model.PKLoanPropertyDetailID+"-transactionType")) but still i am unable to see the render combobox tag in my Accordion , whereas in the last accordion the render combobox tag are coming perfectly, so the combobox are visible . any help is really appreciated.
Best regards
Thanks for your feedback.
Is it possible for you to attach a simple sample which reproduces the issue?
Thank you in advance,
Martin Pavlov
Infragistics, Inc.
support@infragistics.com
Hello Martin,
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
Thank you Martin
i have placed the infragestic loader in my partial view now. its working fine now.
Thanks
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.
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
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,