Id issue when using Partial View with a submodel

Hello,

I am using a partial view with a subModel: 


            <partial name="PartialViews/FilteringView" model="@Model.Filtering" />


In that partial view, I am using a combox (but i have the same issue with other components)

                                <ejs-combobox id="Filtering_DepartmentId" ejs-for="@Model.DepartmentId" dataSource="@ViewBag.DepartmentIds" placeholder="Department">

                                    <e-combobox-fields text="Name" value="Id"></e-combobox-fields>

                                </ejs-combobox>

In the Controller.Post(model model), my model.Filtering.DepartmentId is null because of the id which doesn't follow the schema "Model.Filtering.DepartmentId".

When I change the Id to  <ejs-combobox id="Filtering.DepartmentId", the component is not working because of the "." I assume.

I can't change the name of the component, even with a partial name prefix.


In conclusion, I need a way to use your components in a partial view with submodel that can be posted with the good values.  

Regards,

Laurent

 



3 Replies

PM Ponmani Murugaiyan Syncfusion Team July 6, 2021 05:01 PM UTC

Hi Laurent, 
 
Thanks for contacting Syncfusion support. 
 
Currently we are checking the reported query in our end. We will update further details in 2 business days (July 8, 2021). We appreciate your patience until then. 
 
Regards, 
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team July 9, 2021 03:23 AM UTC

Hi Laurent, 

Sorry for the inconvenience caused. 

Currently we are validating the reported query. We need additional 2 business days (July 12, 2021) for further investigation in our end. We appreciate your patience until then. 

Regards, 
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team July 14, 2021 03:05 AM UTC

Hi Laurent, 

Sorry for the delay. 

We have prepared sample as per your requirement for Combobox with partial view. Kindly check with the below sample, if still you are facing issue in your end, please revert us with issue replicating sample, which help us to check and provide you the solution at earliest. 


Regards, 
Ponmani M 


Loader.
Up arrow icon