- Home
- Forum
- ASP.NET Web Forms
- Can't use slash on headerText on Unbounded column
Can't use slash on headerText on Unbounded column
Thanks for using Syncfusion Products.
To achieve your requirement, we suggest you to use the HeaderTemplateID property in Grid columns. Refer to the sample and code example below.
Sample
|
<ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowPaging="True" ClientIDMode="Static" > <ClientSideEvents ActionComplete="complete" /> <Columns> <ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="True" TextAlign="Right" Width="75" /> <ej:Column Field="CustomerID" HeaderText="Customer ID" Width="80" /> <ej:Column Field="EmployeeID" HeaderText="Employee ID" TextAlign="Right" Width="75" /> <ej:Column Field="Freight" HeaderText="Freight" TextAlign="Right" Width="75" Format="{0:C}" /> <ej:Column HeaderText="View Edit" HeaderTemplateID="#employeeTemplate" IsUnbound="True" TextAlign="Center" Width="150"> <Command> <ej:Commands Type="detail"> <ButtonOptions Text="View/Edit" Width="100" Click="View" ></ButtonOptions> </ej:Commands> </Command> </ej:Column> </Columns> <script id="employeeTemplate" type="text/x-jsrender"> View/Edit |
Refer to the Online Demo in following link: http://asp.syncfusion.com/demos/web/grid/headertemplate.aspx
Regards,
Balaji Marimuthu
We are happy that provided solution helped you.
Please get back to us if you need further assistance. we will be happy to assist you.
Regards,
Balaji Marimuthu
- 3 Replies
- 2 Participants
-
CO Constanza
- Oct 8, 2015 08:16 PM UTC
- Oct 12, 2015 05:21 AM UTC