or
<inputclass="fx-wg-relatedobject" name="privileges_class"
id="privileges_class" data-relatedclass="metaClassConfig" data-childclass="metaClassConfig" data-textfield="l" data-valuefield="v" style="width: 300px;" value="" data-translatedvalue="" />$('.fx-wg-relatedobject').livequery(function() { $(this) .removeClass('fx-wg-relatedobject') .kendoComboBox({ autoBind: false, dataSource: { type: "json", serverFiltering: true, transport: { read: { url: $(this).attr("data-json-url") , dataType: "json" } } }, dataTextField: $(this).attr("data-textfield"), dataValueField: $(this).attr("data-valuefield"), filter: "contains", text: $(this).attr("data-translatedvalue"), value: $(this).val() }) .trigger('fx_init'); });$("#privileges_class").change(function(e) { // code here to trigger ajax and fetch methds for the selected class...});$("#privileges_class").data("kendoComboBox");$("#privileges_class").data("kendoComboBox"); will in fact return undefined.
$('#').bind("fx_init", function(e) { if($(this).data("kendoComboBox") && !$(this).data("custom_event_handler_added")) { // The element has been converted into a kendoComboBox, and we have not yet added the custom event handler, so let's do it now... // first let's make sure this bit of code is not being called twice... $(this).data("custom_event_handler_added", true); // secondly let's add the event listener and bind it to the change event.. var classCombo = $(this).data("kendoComboBox"); classCombo.bind("change", function(e) { //code goes here } ); } }).trigger("fx_init");
<FONT color="#0000ff" size="1" face="Consolas"><FONT color="#0000ff" size="1"face="Consolas"><FONT color="#0000ff" size="1" face="Consolas">var property = trim(match[1].toLowerCase()),<BR> value = trim(match[2]);<BR></FONT></FONT></FONT>This is fixed by checking for != null first, I assume this is a bug?
property = trim(match[1].toLowerCase()),
value = trim(match[2]);

<script type="text/javascript" data-main="Scripts/main.js" src="Scripts/libs/require.js"></script>(function(){ requirejs.config( { baseUrl: 'Scripts/libs', paths: { plugins: '../app' } } ); // Start main app logic requirejs(['jquery-1.9.0.min', 'kendo.mobile.min'], function($,kendo){ var app = new kendo.mobile.Application(document.body, { platform: 'ios' }); });})();columns.Template(@<text> @if(String.IsNullOrEmpty(Model.DownloadURL(item.DocumentId,item.Name, item.ExtUrl))) { } else { <a href="@Model.DownloadURL(item.DocumentId,item.Name,item.ExtUrl)" title="Click to download"> }</text>).Title("Download")columns.Bound(p=>p.DocumentId).ClientTemplate(String.IsNullOrEmpty(@Model.DownloadURL("#=DocumentId#","#=Name#","#=ExtURL#)).ToString()).Title("Download")<script> function onEdit(e) { //if the model isn't new (editing) if (!e.model.isNew()) { var grid = $("#Devices").data("kendoGrid"); //missing code I want her grid.closecell(); } }</script>