HeaderText

Hi,

When I set an EditTemplate, I don't see the Header Text displayed.
Here's my code:

<GridColumn Field="@nameof(Package.CustomerFullName)"
HeaderText="Customer Name"
Width="150">
<EditTemplate>
<SfDropDownList ID="CustomerFullName"
TValue="string"
TItem="Package"
DataSource="@customersList"
AllowFiltering="true"
@bind-Value="@((context as Package).CustomerFullName)">
<DropDownListFieldSettings Value="CustomerFullName"/>
<DropDownListEvents ValueChange="OnCustomerSelectionChanged"
TItem="Package"
TValue="string" />
</SfDropDownList>
</EditTemplate>
</GridColumn>

Thanks in advance for any help.



5 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team December 28, 2020 12:03 PM UTC

Hi Preveen, 

Greetings from Syncfusion support. 

We have validated your query by providing edit template to a grid column but unfortunately we are unable to reproduce the reported issue from  our end. Please find the below validated sample for your reference. 


If you are still facing the reported problem then kindly share the below details. 

  1. Share us the Syncfusion NuGet version details.
  2. Share us the simple issue reproducing sample or reproduce the issue in the provided sample.

The above requested details will be helpful for us to validate the issue and provide you with a better solution as early as possible. 

Regards, 
Jeevakanth SP. 



PR Preveen December 28, 2020 10:40 PM UTC

Hi,
I forgot to mention that the EditMode is set to Dialog instead of normal.

If I change it in your sample, I'm able to reproduce the error.

Please advise.


JP Jeevakanth Palaniappan Syncfusion Team December 29, 2020 10:23 AM UTC

Hi Preveen, 

We suggest you to resolve the problem by using the below code snippet. 

        <GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name - Headertext" Width="150"> 
            <EditTemplate> 
                <SfAutoComplete ID="CustomerID" TItem="Order" TValue="string" @bind-Value="@((context as Order).CustomerID)" DataSource="@Orders" Placeholder="Customer Name - Headertext" FloatLabelType="Syncfusion.Blazor.Inputs.FloatLabelType.Always"> 
                    <AutoCompleteFieldSettings Value="CustomerID"></AutoCompleteFieldSettings> 
                </SfAutoComplete> 
            </EditTemplate> 
        </GridColumn> 

Please refer the below sample for your reference. 


Regards, 
Jeevakanth SP. 


Marked as answer

PR Preveen December 30, 2020 04:00 PM UTC

Perfect!
This is just what I needed.

Thanks!


VN Vignesh Natarajan Syncfusion Team December 31, 2020 03:52 AM UTC

Hi Preveen,  

Thanks for the update.  

We are glad to hear that you have resolved your query using our solution.  

Kindly get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon