3

I am trying to show an icon on kendo window title. But I am not able to do it. The code I am trying is showing the whole html. I think whatever I pass it in title, it takes as string. Can someone help me please.

<div id="dialog"></div>

<script>
    $("#dialog").kendoWindow({
        title: '<i class="glyphicon glyphicon-user"></i>Customer details'
    });
</script>
Hashbrown
  • 12,091
  • 8
  • 72
  • 95
xenos
  • 236
  • 1
  • 11

1 Answers1

2

You can try editing the HTML using jQuery.

Something like this (untested):

var title = "<i class="glyphicon glyphicon-user"></i>Customer details"
var window = $("#dialog").data("kendoWindow");
window.wrapper.find('.k-window-title').html(title)
Nic
  • 12,220
  • 20
  • 77
  • 105
  • This did worked. Thanks Nic. But I was also looking for using something directly to the title configuration rather than changing the title after its been created. – xenos Nov 06 '14 at 01:09
  • As far as I know Kendo UI doesn't support that. – Nic Nov 06 '14 at 01:14