Advertisement
Guest User

tooltip

a guest
May 4th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.97 KB | None | 0 0
  1. <div class="col-xs-12 remove-side-padding">
  2.     @(Html.Kendo().TreeList<Totalkontroll.Entities.PersonaldokumentViewModel>()
  3.           .Name("treelist")
  4.           .HtmlAttributes(new {@class = "border-zero jobbox-treelist"}) //jobbox treelist class overrides Kendo treelist styling with our own
  5.           .Columns(columns =>
  6.           {
  7.               columns.Add().Field(e => e.Name).HeaderTemplateId("NameColum").TemplateId("NameField").HeaderAttributes(new {@class = "k-header col-xs-5"}).HtmlAttributes(new {@class = "col-xs-5 remove-side-padding", @style = "position:relative;"});
  8.               columns.Add().Field(e => e.CreatedDate).HtmlAttributes(new {@class = "col-xs-2", @style = "position:relative;overflow:initial;padding:0px;"}).HeaderAttributes(new {@class = "k-header col-xs-2 remove-side-padding"});
  9.               columns.Add().Field(e => e.CreatedByName).HtmlAttributes(new {@class = "col-xs-3", @style = "position:relative;overflow:initial;padding:0px;"}).HeaderAttributes(new {@class = "k-header col-xs-3 remove-side-padding"});
  10.               columns.Add().Field(Resources.Department_Index_ListHeader_Handling).HtmlAttributes(new {@class = "col-xs-1", @style = "position:relative;overflow:initial;padding:0px;"}).HeaderAttributes(new {@class = "k-header text-right-important col-xs-1"});
  11.           })
  12.           .DataSource(dataSource => dataSource
  13.               .Read(read => read.Action("All", "Personaldokumenter", new {ids = Model.DocumentIds})) //The controller action that returns the items to display.
  14.               .ServerOperation(false)
  15.               .Model(m =>
  16.               {
  17.                   m.Id(f => f.Id);
  18.                   m.ParentId(f => f.ParentId);
  19.                   m.Expanded(@Model.ExpandFolders);
  20.                   //m.Field(f => f.Description);
  21.                   //m.Field(f => f.ParentId);
  22.  
  23.  
  24.               })
  25.           )
  26.          
  27.           .Events(events =>
  28.           {
  29.               events.DataBound("onDataBound"); //Run the onDataBound javascript function on event DataBound
  30.           })
  31.           )
  32. </div>
  33.  
  34. <script id="NameField" type="text/x-kendo-template">
  35.     @{
  36.         var imageUrl = "#= Image#";
  37.         var id = "#= UrlLink#";
  38.         var EditDocumentImage = "#= EditDocumentImage#";
  39.         var EditDocumentImageClass = "#= ClassEditDocumentImage#";
  40.         var toolTipId = "#= ToolTipId#";
  41.  
  42.  
  43.     }
  44.     <span style="position : relative; top: 6px; padding-right : 10px">
  45.         <svg class="image-fill-grey" width=" 24px" height="24px" viewBox="0 0 24 24"><use xlink:href="\\#@imageUrl"></use></svg>
  46.     </span>
  47.  
  48.     <a href="@id" class="list-view-big-field text-decoration-none #=ClassProperties#">#=Name#</a>
  49.    
  50.     <span id="@toolTipId" style="padding-top : 7px; padding-right : 25px; z-index : 2" class="pull-right">
  51.         <svg class="image-fill-grey @EditDocumentImageClass" width=" 16px" height="16px" viewBox="0 0 24 24">
  52.             <use xlink:href="\\#@EditDocumentImage"></use>
  53.         </svg>
  54.     </span>
  55. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement