Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Help needed in migrating ultragrid scripts to equivalent scripts of WebHierarchicalDataGrid
posted

Hello,

I am trying to migrate from Ultragird 10.3 version to the latest WebHierarchicalDataGrid, but stumbled upon the following DisplayLayout and ALL the scripts mentioned below. It would be great to find the equivalent of the following in WebHierarchicalDataGrid.

Many thanks,

Kamrul

<DisplayLayout AllowAddNewDefault="Yes" AllowDeleteDefault="Yes" AutoGenerateColumns="False"
                        AllowSortingDefault="Yes" RowHeightDefault="36px" Version="3.00" GridLinesDefault="Horizontal"
                        SelectTypeRowDefault="Single" ViewType="OutlookGroupBy" GroupByColumnsHiddenDefault="Yes"
                        HeaderClickActionDefault="SortSingle" BorderCollapseDefault="Separate" RowSelectorsDefault="No"
                        Name="UltraWebGrid1" TableLayout="Fixed" CellClickActionDefault="RowSelect" NoDataMessage="sample text"
                        OptimizeCSSClassNamesOutput="False">
                        <Pager PageSize="20">
                            <PagerStyle BackColor="White" BorderStyle="Solid" BorderWidth="1px" Cursor="Default">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                            </PagerStyle>
                        </Pager>
                        <HeaderStyleDefault Wrap="True" HorizontalAlign="Left" Height="36px">
                        </HeaderStyleDefault>
                        <RowSelectorStyleDefault Width="0px" Height="0px">
                            <Padding Bottom="0px" Left="0px" Top="0px" Right="0px"></Padding>
                            <Margin Bottom="0px" Left="0px" Top="0px" Right="0px"></Margin>
                        </RowSelectorStyleDefault>
                        <FrameStyle Width="100%" Height="99%">
                            <Padding Bottom="0px" Left="0px" Top="0px" Right="0px"></Padding>
                            <Margin Bottom="0px" Left="0px" Top="0px" Right="0px"></Margin>
                        </FrameStyle>
                        <GroupByBox>
                            <BoxStyle CssClass="gridGroupByBox">
                            </BoxStyle>
                            <BandLabelStyle HorizontalAlign="Right" CssClass="gridCaption">
                            </BandLabelStyle>
                        </GroupByBox>
                        <GroupByRowStyleDefault CssClass="gridCaption">
                        </GroupByRowStyleDefault>
                        <ClientSideEvents KeyDownHandler="UltraWebGrid1_KeyDownHandler" DblClickHandler="UltraWebGrid1_DblClickHandler"
                            CellClickHandler="UltraWebGrid1_CellClickHandler" BeforeRowActivateHandler="UltraWebGrid1_BeforeRowActivateHandler"
                            MouseUpHandler="UltraWebGrid1_MouseUpHandler" BeforeSortColumnHandler="UltraWebGrid1_BeforeSortColumnHandler"
                            InitializeLayoutHandler="UltraWebGrid1_InitializeLayoutHandler">
                        </ClientSideEvents>
                        <ActivationObject BorderStyle="None">
                            <BorderDetails StyleLeft="None" StyleRight="None" />
                        </ActivationObject>
                        <Images>
                            <ExpandImage Url="../images/plus.png" />
                            <CollapseImage Url="../images/minus.png" />
                        </Images>
                    </DisplayLayout>

  • 1660
    Offline posted

    Hello Kamrul,

    There are some crucial architectural differences between the UltraWebGrid and WebDataGrid/WebHierarchicalDataGrid controls and as such there isn’t a one-to-one mapping between properties and events between the UltraWebGrid and the newer WebDataGrid /WebHierarchicalDataGrid.

    What I would recommend you is starting from the documentation of the WebDataGrid/ WebHierarchicalDataGrid and then reviewing the following migration guide:

    https://www.infragistics.com/help/aspnet/webhierarchicaldatagrid-about-webhierarchicaldatagrid

    There is no equivalent to the DisplayLayout in the WebDataGrid /WebHierarchicalDataGrid, instead the Behaviors collection, provides different set of behaviors used for the different features provided by the grid, such as Sorting, Selection, Activation, Paging and RowSelectors. As for the ClientSideEvents, they are set on the different tag elements of the WebHierarchicalDataGrid (for example the DoubleClick event) as well as on its behaviors (for example CellSelectionChanged)

    In addition to this, you could also review our sample browser, it contains many different application scenarios, which demonstrate the features of the grid, the link for it could be found below:

    https://www.infragistics.com/samples/aspnet/hierarchical-data-grid/overview

    There is also a WebDtaGrid/WebHierarchicalGrid cheat sheet, that is a step-by-step guide to using the features and behaviors of both grids. Steps and code for both grids is listed side-by-side for easy comparison among the controls. You can access it here:

    https://www.infragistics.com/help/aspnet/webdatagrid-cheat-sheet

    Please review the information above and let me know if you have any issues while migrating any of the features or if any questions arise.

    Regards,
    Ivan Kitanov