cannot convert from method group to eventcallback blazor (Server App) - Sync Fusion Grid

Reishabh

I am using sync fusion grid in blazor server app. Inside grid I am using dropdown list. I wanna trigger the even on dropdown change event. When I try to bind the event using following code its giving me error "cannot convert from method group to eventcallback". Please help.

Below is the razor HTML code

<GridColumn HeaderText="Action" TextAlign="TextAlign.Center" Width="95">
    <Template>
        <SfDropDownList TItem="ActionDDLVM" Value="@((context as ActionDDLVM).Id)" TValue="string" PopupHeight="100px" Placeholder="Action" DataSource="@LstAction">
            <DropDownListEvents TValue="string" TItem="ActionDDLVM" OnValueSelect="OnSelect" ValueChange="ValueChange"></DropDownListEvents>
            <DropDownListFieldSettings Text="Text" Value="Id"></DropDownListFieldSettings>
        </SfDropDownList>
    </Template>
</GridColumn>

Below is the code in C# component partial class

public void OnSelect(SelectEventArgs args)
{

}

public void ValueChange(Syncfusion.Blazor.DropDowns.ChangeEventArgs<string> args)
{
    // you can get changed value in args.Value
}
user12702211
Event arguments of **OnValueSelect** and **ValueChange** were defined wrongly. Please find the modified code example below. 
<GridColumn HeaderText="Action" TextAlign="TextAlign.Center" Width="95">
            <Template>
              <SfDropDownList TItem="ActionDDLVM" Value="@((context as ActionDDLVM).Id)" TValue="string" PopupHeight="100px" Placeholder="Action" DataSource="@LstAction">
                       <DropDownListEvents TValue="string" TItem="ActionDDLVM" OnValueSelect="OnSelect" ValueChange="ValueChange"></DropDownListEvents>
                   <DropDownListFieldSettings Text="Text" Value="Id"> 
                     </DropDownListFieldSettings>
              /SfDropDownList>
             </Template>
</GridColumn>
    
public void OnSelect(SelectEventArgs<ActionDDLVM> Args)
{
  
}
public void ValueChange(ChangeEventArgs<string, ActionDDLVM> Args)
{
 
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Blazor - cannot convert from 'method group' to 'EventCallback'

From Dev

Cannot convert from 'method group' to 'List<DataTable>'

From Dev

Cannot Convert From Method Group to Func<int>

From Dev

Cannot convert method group

From Dev

cannot convert from 'method group' to 'System.EventHandler'

From Dev

Cannot convert from method group to System.Func<string>

From Dev

Cannot convert from method group to Int32

From Dev

Cannot convert from 'method group' to 'Func<string, string, bool>'

From Dev

cannot convert from 'method group' to 'Func<ApplicationRoleManager> in asp mvc identity

From Dev

Sync data from Web Server to iOS App

From Dev

With Reactive Extensions (RX) how to solve compile error "cannot convert from 'method group' to 'System.IObserver"

From Dev

With Reactive Extensions (RX) how to solve compile error "cannot convert from 'method group' to 'System.IObserver"

From Java

Blazor Child Component EventCallBack not responding

From Dev

calling void sync method from Async - Cannot await void

From Dev

Cannot convert method group 'FirstOrDefault' to non-delegate type

From Dev

Cannot convert method group "List" to non-delegate type

From Dev

Cannot convert method group 'FirstOrDefault' to non-delegate type

From Dev

Calling Non sync method from sync method

From Dev

Django management cannot import method from app

From Dev

Cannot choose method from method group for File.Exists()

From Dev

How to navigate to a blazor component from a razor page in a Blazor server-side app?

From Dev

Cannot get response from java server app

From Dev

ExtJS Grid Sync returns null to the server

From Dev

Convert prompt-sync require into import method

From Dev

Cannot call activity method from notification when app is NOT running

From Dev

Cannot convert method group to non delegate type System.Data.Datatable

From Dev

Cannot convert method group '###' to non-delegate type UnityEngine.Vector3

From Dev

How do I fix 'cannot render console' when trying to access a rails server from VMWare Fusion Windows 10?

From Dev

How often should an Android app and server sync

Related Related

  1. 1

    Blazor - cannot convert from 'method group' to 'EventCallback'

  2. 2

    Cannot convert from 'method group' to 'List<DataTable>'

  3. 3

    Cannot Convert From Method Group to Func<int>

  4. 4

    Cannot convert method group

  5. 5

    cannot convert from 'method group' to 'System.EventHandler'

  6. 6

    Cannot convert from method group to System.Func<string>

  7. 7

    Cannot convert from method group to Int32

  8. 8

    Cannot convert from 'method group' to 'Func<string, string, bool>'

  9. 9

    cannot convert from 'method group' to 'Func<ApplicationRoleManager> in asp mvc identity

  10. 10

    Sync data from Web Server to iOS App

  11. 11

    With Reactive Extensions (RX) how to solve compile error "cannot convert from 'method group' to 'System.IObserver"

  12. 12

    With Reactive Extensions (RX) how to solve compile error "cannot convert from 'method group' to 'System.IObserver"

  13. 13

    Blazor Child Component EventCallBack not responding

  14. 14

    calling void sync method from Async - Cannot await void

  15. 15

    Cannot convert method group 'FirstOrDefault' to non-delegate type

  16. 16

    Cannot convert method group "List" to non-delegate type

  17. 17

    Cannot convert method group 'FirstOrDefault' to non-delegate type

  18. 18

    Calling Non sync method from sync method

  19. 19

    Django management cannot import method from app

  20. 20

    Cannot choose method from method group for File.Exists()

  21. 21

    How to navigate to a blazor component from a razor page in a Blazor server-side app?

  22. 22

    Cannot get response from java server app

  23. 23

    ExtJS Grid Sync returns null to the server

  24. 24

    Convert prompt-sync require into import method

  25. 25

    Cannot call activity method from notification when app is NOT running

  26. 26

    Cannot convert method group to non delegate type System.Data.Datatable

  27. 27

    Cannot convert method group '###' to non-delegate type UnityEngine.Vector3

  28. 28

    How do I fix 'cannot render console' when trying to access a rails server from VMWare Fusion Windows 10?

  29. 29

    How often should an Android app and server sync

HotTag

Archive