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

Kendo Grid hierarchy with # in key column

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ITOPERATIONS
Top achievements
Rank 1
ITOPERATIONS asked on 17 Jul 2014, 09:50 AM
We are using the kendo grid with a detail table. All works well, untill we have a row with a key that has the character '#' in there. Then no requests to the server are made anymore to retrieve the detail data. There is no error or logging unfortunately, but I suspect it to be the # since that is used in the templating of the grid.
Should I escape the # sign in the key, or is there a different work around?

The Datasource definition of the detail template looks like this:

.DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(5)
                .Read(read => read
                    .Action("Details", "Monitoring", new { projectionKey = "#=Key#" })
                    .Type(HttpVerbs.Post))
            )

Any help would be appreciated

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Jul 2014, 07:42 AM
Hello Catrina,

Indeed # symbols should be escaped with slashes. I am afraid there is no other work-around which we could suggest other than escaping those symbols.
.DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(5)
                .Read(read => read
                    .Action("Details", "Monitoring", new { projectionKey = "\\#=Key\\#" })
                    .Type(HttpVerbs.Post))
            )


Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
ITOPERATIONS
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or