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
455
Feature Chooser not showing - div not created
posted

This is a simplification of a previous post.

 

I have 2 projects/solutions using very similar code to generate an iggrid. One creates HTML which contains DIVs holding the featurechoosericon, the other doesn't. I have checked js and css references and can't see any issues. See below

The following

    @(Html.Infragistics().Grid(Model.Customers.AsQueryable()).PrimaryKey(

"ID")

        .Features(features =>

        {

            features.Hiding().ColumnChooserHideOnClick(true);

            features.Sorting().ModalDialogSortOnClick(false).Mode(SortingMode.Multiple).Type(OpType.Local);     

//features.Resizing();

            features.Paging().PageSize(10).Type(OpType.Local);

            features.Filtering();

            features.Updating();

        })

                        .ID("GraphGrid")

                        .Width("100%")

                        .Height("500px")

                        .DataBind()

        .Render()

    )

generates table cells as follows

<th title="click to sort column" class="ui-iggrid-header ui-widget-header ui-iggrid-sortableheader ui-state-default"  id="GraphGrid_ID">

<a href="#">

<span class="ui-iggrid-headertext">ID</span>

 <span class="ui-iggrid-colindicator"></span>

</a>      

 <div class="ui-iggrid-indicatorcontainer"> 

        <a title="" id="GraphGrid_featureChooser_headerButton_ID" href="#" th-remove-focus="">

  <span class="ui-iggrid-featurechooserbutton ui-icon ui-icon-gear"></span>

  </a>   

    </div>

 </th>

 

This

@(Html.Infragistics().Grid<System.Data.DataTable>(Model)

 .PrimaryKey("Datagain file:")  

   .Features(features =>     {        

 features.Hiding().ColumnChooserHideOnClick(true);        

 features.Sorting().ModalDialogSortOnClick(false).Mode(SortingMode.Multiple).Type(OpType.Local);       

  features.Paging().PageSize(10).Type(OpType.Local);     

    features.Filtering();       

  features.Updating();     })

 .ID("GraphGrid")

 .DataSource(Model)

.DataBind()

.Render())

 

creates HTML without the divs for the feature chooser.

<th title="click to sort column" class="ui-iggrid-header ui-widget-header ui-iggrid-sortableheader ui-state-default" id="GraphGrid_Datagain file:">

 <a href="#">

 <span class="ui-iggrid-headertext">Datagain file:</span>

 <span class="ui-iggrid-colindicator"></span>

</a>

 </th>.

 

Parents
No Data
Reply Children
No Data