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

Javascript content from <Script> tag generated by child controls appears in Grid's toolbar area

3 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 05 Aug 2014, 05:06 AM
When I upgraded to 2014.2.716, a visual error started occurring in my grid controls with child controls in the grid's toolbar.

01.@(Html.Kendo().Grid<TestRowClass>()
02.    .Name("TestGrid")
03.    .ToolBar(toolbar => toolbar.Template(@<text>
04.            @(Html.Kendo().AutoComplete()
05.                .Name("TestAutoComplete")
06.            )
07.        </text>)
08.    )
09.)


I tested that in a brand new project using the CDN to make sure i eliminated all other code. The "TestRowClass" can contain any properties, i only use it to help render the grid itself.

When I use the razor scripting above, all of the <script> tag content shows up in the toolbar along side the control. The control works just fine, but the content of the script tag should not be visible.

I tried adding a simple style like "script { display:none; }" to the page, but that didn't fix the issue.

Any advice or fix would be appreciated. Thanks.

3 Answers, 1 is accepted

Sort by
0
Poh Joon
Top achievements
Rank 1
answered on 05 Aug 2014, 10:27 AM
This also happened to me. Already submitted ticket and wait for reply.
0
Dimiter Madjarov
Telerik team
answered on 06 Aug 2014, 11:51 AM
Hello guys,


Please excuse us for the inconvenience. We noticed the issue shortly after the official release and it was fixed in one of the first internal releases after it. I would suggest to upgrade the currently used Kendo UI version.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mike
Top achievements
Rank 1
answered on 07 Aug 2014, 02:25 PM
So instead of downloading the latest internal build, I too submitted a ticket. They came back with a better fix.

It turns out I was on the right track when I was trying to hide it with style, but I failed on the implementation. Unlike mine, here's some style that works:

1..k-grid  script {
2.     display: none !important;
3.}


That solution worked like a champ.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Poh Joon
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or