asp.net mvc 2 - Telerik Html.Grid Style Sheet issue -
i started using telerik html.grid today , have run problem. grid appearing, text based know style sheet issue. also, have been following usage instructions documentation. ill go through them , explain did, maybe interpretation wrong.
1)open existing asp.net mvc application in visual studio or create new one. done
2)add reference telerik.web.mvc.dll located in binaries folder of telerik extensions asp.net mvc install location: done
3)register telerik extensions asp.net mvc namespaces: done, used import instead of add
<%@ import namespace="telerik.web.mvc.ui" %>
4)add javascript files in scripts folder of asp.net mvc application. done, essentailly scripts in location web/scripts/2010.2.825 put in scriptregistrar @ end of .aspx page
<div id="footer"> <% html.renderpartial("sitemasterfooter");%> </div> <div style="clear: both;"><!-- --></div> <% html.telerik().scriptregistrar().jquery(false); %>
5)add css files in content folder of asp.net mvc application. done. same approach step 4, location wed/content/2010.2.825 put style sheet registrar @ head of aspx page
<% html.telerik().stylesheetregistrar() .defaultgroup(group => group.add("telerik.common.css") .add("telerik.windows7.css")); %>
6)create telerik web control done. dont think can screw up, hey.
<% html.telerik().grid(model.manifests) .name("manifestsgrid") .datakeys(keys => { keys.add(p => p.id); }) .columns(columns => { columns.bound(o => o.manifestid).width(150).title( "manifest #:"); columns.bound(o => o.generator.companyname).width(150).title ("company:"); columns.bound(o => o.generatorfieldoffice.facilityname). width(150).title("field office:"); columns.bound(o => o.generatorfacility.facilityname).width( 150).title("facility:"); }) .pageable(paging => paging.pagesize(10)) .selectable() .scrollable() .render(); %>
so think problem lies how ive added files need. input?
i fixed actually. reading this, problem follow guide letter. , take special care <% %> tags have : or = @ beginning or ; @ end. if vague post answer question , ill post code.
Comments
Post a Comment