


Hello.
Taking the example in https://www.syncfusion.com/downloads/support/directtrac/general/ze/ServerApp-767411222
I believe searchsettings is not working. I only modified the sample like this and search no longer works:
<SfGrid DataSource="contactService"
AllowSorting="true" AllowSelection="false"
AllowPaging="true" Toolbar="@(new List<string> { "Search","Print"})">
<GridSearchSettings Fields="@( new string[] { "Name", "PhoneNumbre" } )"></GridSearchSettings>
<GridColumns>
<GridColumn Field="Name" />
<GridColumn Field="PhoneNumber" HeaderText="Phone Number" />
<GridColumn Field="Total" />
<GridColumn Field="Paid" />
<GridColumn Field="Due" />
<GridColumn HeaderText="Manage" >
<Template>
@{ var data = context as Contractor;}
<SfButton IconCss="e-icons e-delete" OnClick="@( () => DeleteContractor( data.PhoneNumber ) )" />
</Template>
</GridColumn>
</GridColumns>
</SfGrid>
I would like to know why.
Secondly, I believe is missing a new feature (Find?) that works as excel search (any hope to get something like that in the near future?). Your search is more like an "or of filters" while excel search is also needed.
Thanks in advance.
Regards,
Sócrates A Rivera R
|
<GridSearchSettings Fields="@( new string[] { "Name", "PhoneNumber" } )"></GridSearchSettings>
|
Agree. My mistake. Numbre is incorrect. Now it works.
Thats all for the first question.
In to the second. I suggest you take a look at the search capacity of excel. That capacity I believe is also needed in your datagrid (I repeat your "search" is more like an "or of filters" not bad but the other "excel search" is also required).
Thanks in advance.
After your comments I will close the issue.
Thanks again.
Best regards,
Sócrates A Rivera R
Hello.
A video is too complicated for me.
Just create a xcel sheet with tree cells, two equal and one unequal vales.
Goto menu search/search and look for the equal value (then go to the second equal value); now search/search for the third (unequal) value.
Do you see how different is of your "search"?
If you do something like that just call it Find (if you please).
Thanks again.
Regards,
Socates A Rivera R
Hi Socates,
We have prepared a video demo doing a find in Microsoft excel file. Could you please refer the below video and confirm us whether you are referring to this feature of Microsoft Excel?
Are you are expecting a dialog to be opened when click on search textbox in grid’s toolbar as like in Microsoft Excel?
If we have misunderstood your scenario kindly share with us a pictorial representation(screenshot or video) showing a step by step details about your requirement for us to proceed further.
Regards,
Renjith R
Hello.
Thanks for the quick answer.
That is the one. You can see that your search is different from this "Find" of excel.
I very much would like to see in your datagrid this excel feature (selecting according to current style: cell or row).
It is not required (but very welcome, so you can specify function: contains -default-, start with, etc.) to open a dialog, it coud be done very well with a text box and a dropdown (for the function).
Thank you very mch for the attention
Thanks in advance.
Regards,
Sócrates A Rivera R
Hi Sócrates,
Thanks for your update.
Query : it coud be done very well with a text box and a dropdown (for the function).
We suggest you to achieve this requirement by rendering custom toolbar item(a SfDropDownList) for selecting search Operator list dynamically. Based on the selection from the dropdown you can dynamically modify the default GridSearchSettings Operator property of Grid’s search. Please refer the codes below. We have also attached a sample in this ticket.
|
<SfGrid ... Toolbar="@(new List<Object>() { "Print","Search",new ItemModel() { Type = ItemType.Input, Align=ItemAlign.Right, Template = AditionalOps}})"> <GridSearchSettings Fields="@( new string[] { "Name", "PhoneNumber" } )" Operator=@ddlVal></GridSearchSettings> ... </SfGrid>
private RenderFragment AditionalOps => @<div> <SfDropDownList Placeholder="Select a Operator" TItem="string" TValue="Operator" DataSource="@OperatorsList" @bind-Value="@ddlVal" Width="30"> <DropDownListEvents TItem="string" TValue="Operator" ValueChange="ValueChange"></DropDownListEvents> </SfDropDownList> </div> ; //assign Syncfusion.Blazor.Operator enum value as Dropdown's data public string[] OperatorsList = Enum.GetNames(typeof(Operator)); public Operator ddlVal { get; set; } = Operator.Contains;
public void ValueChange(ChangeEventArgs<Operator,string> args) { ddlVal = args.Value; }
|
References :
https://blazor.syncfusion.com/documentation/datagrid/searching#search-operators
https://blazor.syncfusion.com/documentation/datagrid/tool-bar
https://blazor.syncfusion.com/documentation/dropdown-list/data-source#enum-data-binding
Please get back to us if you need further assistance.
Regards,
Renjith R
Hello.
Thanks again for the quick answer.
I believe we did not understand each other.
My suggestion of text box and dropdown is for the hipothetical find (the search of excel) I have been refering to.
Is there any posibility that you modify your datagrid up to include the"find" I like very much?
Thaks in advance.
Best regards,
Sócrates A Rivera R
Hi Sócrates,
We could see that you are referring to the find and go
styled search in grid. We have logged a feature request task for this
requirement “Provide support for find and highlight the searched text in
DataGrid”. At the planning stage for every release cycle, we
review all open features and identify features for implementation based on
specific parameters including product vision and
technological feasibility. It will be implemented in any of our upcoming
releases.
You can now track the current status of this feature request from the below feedback page. Please follow up on the below feedback for future updates regarding this feature.
Regards,
Renjith R
Hello.
Thank you very much for your support
I expect to see soon this feature in your datagrid.
Meanwhile, thanks again.
This matter will be closed.
Regards,
Sócrates A Rivera R
Hi Sócrates,
Thanks for your update. Please follow up on the below feedback for future updates on this feature request.
Regards,
Renjith R