Vertical Grid

I have used Grid control in blazer web application.It works fine as per our requirements.I would like to know how to use Vertical Grid. 

Note:-

I have used Vertical Grid in DevExpress


12 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team June 3, 2021 12:18 PM UTC

Hi Ismail, 

Greetings from Syncfusion support. 

We have analyzed your query and we have achieve your requirement to display the Vertical Grid by using ColumnTemplate feature of the Grid. Refer the below code example. 

    <SfGrid TValue="ExpandoObject" GridLines="GridLine.Both" RowHeight="60" Width="800px" Height="500" DataSource="@Transposed" AllowSelection="false" EnableHover="false"> 
        <GridColumns> 
            @foreach (var col in Cols) 
            { 
                <GridColumn Field="@col" Width=@(Cols.IndexOf(col) == 0 ? "50" : "100")> 
                    <Template> 
                        @{ 
                            dynamic data = (context as ExpandoObject); 
                            <span>@(((IDictionary<String, Object>)data)[col])</span> 
                        } 
                    </Template> 
                </GridColumn> 
            } 
        </GridColumns> 
    </SfGrid> 

Refer the below screenshot for your reference 

 

Refer our UG documentation for your reference 


Please get back to us if you have further queries.  

Regards, 
Jeevakanth SP. 


Marked as answer

KI KINS June 3, 2021 12:26 PM UTC

Thanks


JP Jeevakanth Palaniappan Syncfusion Team June 4, 2021 05:02 AM UTC

Hi Ismail, 

You are most welcome. Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 



MC Mason Channer September 18, 2021 10:44 PM UTC

Could you provide a full sample of vertical grid?



JP Jeevakanth Palaniappan Syncfusion Team September 20, 2021 10:46 AM UTC

Hi Mason, 

Please find the sample below for your reference. 

Get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 



KI KINS December 2, 2022 12:43 PM UTC

I have another question in Vertical Grid.

1.How to add action button (Edit/Delete) in Vertical Grid.

2.As per above sample code, How to get "OrderID" value when we click on action button (Edit/Delete) .



KI KINS December 8, 2022 04:04 AM UTC

awaiting for reply...



MS Monisha Saravanan Syncfusion Team December 9, 2022 12:44 PM UTC

Hi Kins,


We are currently checking the feasibility in achieving your requirement. We will update further details within two business days.


Regards,

Monisha



KI KINS December 9, 2022 01:24 PM UTC

ok noted with thanks




MS Monisha Saravanan Syncfusion Team December 13, 2022 11:52 AM UTC

Hi Kins,


Thanks for the patience.


We would like to inform that to display the Grid in vertical state we have used templates and it is impossible to perform CRUD operation while using templates. So it is not feasible to achieve your requirement at our end.


Please let us know if you have any concerns.



KI KINS December 14, 2022 04:57 AM UTC

Thanks for reply..


I am not doing any crud operation. I would like to add only two action button and also I would lie to get "OrderID" when I click on "Edit" button.



MS Monisha Saravanan Syncfusion Team December 15, 2022 09:33 AM UTC


Hi Kins,


Query: “I would like to add only two action button and also I would lie to get "OrderID" when I click on "Edit" button.”


We suspect that you are expecting to include two buttons Edit/Delete and we would like to inform that it is impossible for us to perform edit or delete in vertical grid. Because we have manipulated the data and used templates to display the data vertically in Grid. Also we would like to inform that Template is only for display purpose. So we could not able to perform (Add, Edit, Update or Delete (i.e.) CRUD operation)) in vertical DataGrid.


So we cannot able to retrieve OrderID when we click Add/Edit Button.


Kindly get back to us if you have any concerns.


Regards,

Monisha


Loader.
Up arrow icon