This is a migrated thread and some comments may be shown as answers.

[Solved] Grid Columns loaded with LoadSettings Hidden Issue

11 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edwin Guardado
Top achievements
Rank 1
Edwin Guardado asked on 27 May 2011, 09:20 PM
We are loading a grid with dynamic data and are using GridColumnSettings to load the columns with the LoadSettings functionality through Ajax. However, the hidden property does not work properly. The header is being hidden properly but the row data still shows.  I have seen posts where others are getting around this by using the columns.Hidden(true)- vs the Hidden(), but this does not work for us since we're binding columns dynamically and the GridColumnSettings does not have this Hidden(bool) overload.  Any help would be greatly appreciated.. Thank you.

11 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 28 May 2011, 09:19 AM
Hi Edwin Guardado,

 I can't reproduce this. Find attached my test project. Does it work at your side? What could be different in your case?

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Edwin Guardado
Top achievements
Rank 1
answered on 31 May 2011, 03:48 PM
Hello Atanas,
Thanks for your prompt attention to our issue.  I figure out that the issue is related to client-side(Ajax)-bound grids. I'm attaching your original project with the issue recreated and updated to use strongly-typed models. Basically, this works fine:
@{
    //Server-side works fine. Client-side (Ajax-below) does NOT.
    @(Html.Telerik().Grid(Model.Customers)
        .Name("CustomerGrid")
        .Columns(columns => columns.LoadSettings((IEnumerable<GridColumnSettings>)Model.Columns))
)
But this does NOT:
@{
    @(Html.Telerik().Grid<dynamic>()
        .Name("CustomerGrid")
        .Columns(columns => columns.LoadSettings((IEnumerable<GridColumnSettings>)Model.Columns))
        .DataBinding(dataBinding => dataBinding
            .Ajax()
            .Select("LoadCustomerData", "Home")
        )
)
Thanks in advance for further looking this.
0
Rosen
Telerik team
answered on 01 Jun 2011, 07:38 AM
Hi Edwin Guardado,

I was able to recreate the issue you have described. We have managed to address it and the fix will be included in the next internal build. Meanwhile I have attached a modified version of telerik.grid.js file which should fix the problem.

All the best,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Edwin Guardado
Top achievements
Rank 1
answered on 01 Jun 2011, 02:04 PM
Hello Rosen,
Thank you for your help. However, this did not fix our issue. If I use the new telerik.grid.min.js in the test project I provided, it does NOT have any affect. The hidden column still shows.  If I use it with a later internal build, 2011.1.523, we're trying (to fix a popup-edit-close issue we're having as well) the hidden column does NOT get included in the HTML table at ALL. Ideally we want it included with a "display: none" css style so that we can grab the hidden-row/entity ID.   Once again, thank you for your help.
0
Rosen
Telerik team
answered on 01 Jun 2011, 03:00 PM
Hello Edwin Guardado,

 I'm attaching the newest internal build. Please give it a try and let us know if it helps with the hidden columns issue.

All the best,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Edwin Guardado
Top achievements
Rank 1
answered on 03 Jun 2011, 01:22 PM
Hello Rosen,
I used the 2011.1.601 build you provided in the test project I posted previously and it actually made things worst.  The grid data is not showing at all.  Thanks for looking into this and further help would be greatly appreciated. 
0
Rosen
Telerik team
answered on 06 Jun 2011, 07:43 AM
Hi Edwin Guardado,

Please excuse us as there seems that is some other issue with the build I have sent you which cause the described behavior to appear. I have attached a newest build, please try it out, I hope it helps.

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Edwin Guardado
Top achievements
Rank 1
answered on 07 Jun 2011, 05:46 PM
Hello Rosen,
That seemed to have taken care of the issue. Thank you!
Question: Should we use this internal build in our app code or should we wait for the release? When is the next planned public release?
0
Rosen
Telerik team
answered on 08 Jun 2011, 06:54 AM
Hi Edwin Guardado,

The internal builds are not meant to be used in production, therefore it is better to wait for the official release. The next official release is scheduled for mid July.

All the best,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Edwin Guardado
Top achievements
Rank 1
answered on 08 Jun 2011, 05:22 PM
Ok. Thank you Rosen. I have now encountered a new, related issue:  We are using grid popup edits and after editing a row and updating the hidden cell's value in the popup, the grid's hidden value does NOT get updated with the new value.  Any help or recommendation on this new issue would be greatly appreciated.   Thank you.
0
Rosen
Telerik team
answered on 09 Jun 2011, 08:14 AM
Hello Edwin Guardado,

 I'm afraid that I'm unable to recreate such behavior. Therefore, it will be appreciated if you could modify the previous sample as the issue to appear and send it back to us for further investigation. 

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Edwin Guardado
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Edwin Guardado
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or