DropDownListModel - Datasource property
Greetings. I'm new to these components and am trying to utilize the in-place editor dropdown component. This is a simple issue. I'm getting an intelli-sense and compile error when assigning the DataSource property for the DropDownListModel class.
public DropDownListModel<string> DropdownData = new DropDownListModel<string>()
{
Placeholder = "Select Category",
DataSource = new string[] { "Australia", "Bermuda", "Canada", "Cameroon", "Denmark", "Finland", "Greenland", "Poland" }
};
Basically it says, 'DropDownListModel<string>' does not contain a definition for 'DataSource'.
I don't have any issues assigning the Placeholder property. When looking at the class definition for DropDownListModel, I don't see any definition for a DataSource property. I simply copied and pasted from the examples provided in documentation.
Thank you,
Binu Agrawal
SIGN IN To post a reply.
2 Replies
NP
Narayanasamy Panneer Selvam
Syncfusion Team
February 17, 2020 01:49 PM UTC
Hi Binu,
Thanks for contacting Syncfusion support.
We have validated your query, we were able to reproduce your issue. We will correct the online documentation code example and will let you know once it has published. Until then use following code example to run your application without error.
Code example:
Thanks for contacting Syncfusion support.
We have validated your query, we were able to reproduce your issue. We will correct the online documentation code example and will let you know once it has published. Until then use following code example to run your application without error.
Code example:
|
@using Syncfusion.EJ2.Blazor
@using Syncfusion.EJ2.Blazor.DropDowns
@using Syncfusion.EJ2.Blazor.InPlaceEditor
<div id="container">
<span class="content-title"> Select customer name: </span>
<EjsInPlaceEditor Mode="RenderMode.Inline" Type="InputType.DropDownList" Value="DropDownValue" Model="DropModel">
</EjsInPlaceEditor>
</div>
@code {
public string DropDownValue = "Maria Anders";
public static string[] DataManager = new string[] { "Maria Anders", "Ana Trujillo", "Antonio Moreno", "Thomas Hardy", "Chiristina Berglund", "Hanna Moos" };
public EjsDropDownList<string, string> DropModel = new EjsDropDownList<string, string>()
{
Placeholder = "Select a customer",
DataSource = DataManager
};
} |
For your convenience we have prepared a demo sample using above code example: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorInplace-1354063117
Kindly get back to us if you need further assistance on this.
Regards,
Narayanasamy P.
Narayanasamy P.
NP
Narayanasamy Panneer Selvam
Syncfusion Team
February 26, 2020 09:41 AM UTC
Hi Binu,
Good day to you.
As we have promised earlier, now the online documentation has been refreshed with mentioned changes.
Online document link: https://ej2.syncfusion.com/blazor/documentation/in-place-editor/getting-started/
Regards,
Narayanasamy P.
Good day to you.
As we have promised earlier, now the online documentation has been refreshed with mentioned changes.
Online document link: https://ej2.syncfusion.com/blazor/documentation/in-place-editor/getting-started/
Regards,
Narayanasamy P.
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
-
BI Binu
- Feb 15, 2020 05:38 PM UTC
- Feb 26, 2020 09:41 AM UTC