Hello, I have following external template script. there is MVVM grid id=" initially want it to get . In make jquery ajax call and on success when bind the grid the data show
kendo.bind($("#TSTGrid"), response); // when executed doesnt show data
ajax success code:
$.ajax({ type: "POST", dataType: "json", url: rootUrl("Fare/GetFareFamiliesMVVM"), data: { pricingVm: AirPricingWoPNRViewModel.Item.AirPricingVM.toJSON(), command:cmd }, success: function (response) { debugger; kendo.bind($("#TSTGrid"), response); kendo.ui.progress($("#AirPricingContainer"), false); }, error: function (xhr, ajaxOptions, thrownError) { debugger; kendo.ui.progress($("#AirPricingContainer"), false); } });
template script:
<script id="PricingHeader" type="text/x-kendo-template" class="KendoExtTemplate"> <div class="row-fluid"> <div id="FareFilterHeader" class="span9"> <label class="vc-label">VC</label> <input type="text" data-role="autocomplete" validationMessage="Validating Carrier is Invalid/Required" id="validatingcarrier" data-min-length="2" data-value-primitive="false" data-highlight-first="true" class="validating-carrier-autocomplete" data-text-field="airline_value" data-template="AirportItemTemplate" title="Validating Carrier" required="required" data-bind="value: ValidatingCarrier,source: ValidatingCarrierSource, events: {change: ValidatingCarrierOnChange,open : ValidatingCarrierOnOpen,select : ValidatingCarrierOnSelect }" /> <label>Supplier</label> <input type="text" data-role="autocomplete" class="supplier-autocomplete" required="required" name="supplierpricing" id="supplierpricing" data-min-length="2" data-value-primitive="false" data-highlight-first="true" data-template="SupplierItemTemplate" data-text-field="Name" title="Supplier" validationMessage="Supplier is Invalid/Required" data-supplier-msg="Supplier is invalid" data-bind="value: OptionFilters.SupplierInfo, source: FareOptionsSupplierSource, events: {change: SupplierPricingOnChange,open : SupplierPricingOnOpen ,select : SupplierPricingOnSelect}}" /> <label class="fare-type-label">Fare Type</label> <input data-role="dropdownlist" required="required" data-text-field="Description" validationMessage="Fare Type is Invalid/Required" data-value-field="Value" data-value-primitive="true" data-bind="value: OptionFilters.FareTypeCode,source: FareTypeSource , events: {change: FareTypeOnChange}" /> <input data-role="dropdownlist" class="fare-template" data-text-field="Name" data-template="FareItemTemplate" data-value-field="Id" required="required" data-value-primitive="true" data-bind="value: FareTemplateID, source: PricingTemplateSource" /> <button class="k-button pricing-window-action-btn" data-bind="click: GetFareFamiliesByInformativePrice" type="button">Informative</button> <button class="k-button pricing-window-action-btn" data-bind="click: GetFareFamiliesByBestPrice" type="button">Best</button> <div data-role="grid" id="TSTGrid" class="fare-basis-grid" data-columns='[ { "field": "Segments", "title": "FareBasis"}, {"field": "Segments","title":"Cabin"}, {"field": "Segments","title":"Segment"}, {"field": "UnitQualifier","title":"PTC"}, {"field": "Quantity","title":"Qty"}, {"field": "SupplierCommercials.SupplierHeads.NetFareInclTax","title":"Total"}, {"title":"Action",command: [ { text: "Select", click: AirPricingWoPNRViewModel.Item.SelectFareFamily, title: "Action"} ]} ]' data-row-template="FareFamilyRowTemplate"></div> <div data-template="PricingCommercialTemplate" id="PricingCommercialContainer" ></div> </div> <div class="span3" id="SegPaxInfoDiv"> <div> <b><i class="fa fa-plane passenger-plane-icon" aria-hidden="true"></i> Segments</b> <table data-bind="source: Segments" id="Segments" data-template="SegmentTemplate" class="courierfont"></table> </div> <div class="passenger-div"> <b><i class="fa fa-users passenger-user-icon" aria-hidden="true"></i> Passengers</b> <table data-bind="source: PNRPassengerInfos" data-template="PassengerTemplate" class="courierfont"></table> </div> </div> </div> </script>

We have a command column in our grids that is sensitive to user level states. All users have a View button, but only the item owners have an Edit button, the remaining Edit buttons being hidden from view. When a sort is applied, the button connections are update correctly, but the button states are not conveyed with the sort. Therefore, the visible Edit buttons do not convey with their intended associated items.
While I view this potentially as a bug more so than a feature, I am hoping there is an intervention workaround that can be implemented which allows us to change the visibility or enabled state of the buttons to the properly associated columns. I also wanted to alert Telerik that the expected behavior is that button states should sort within the grid as well, rather than just the data or function binding.
For example, in a ten row grid, items 2 and 8 are visible, but the rest are hidden. When sort is applied to a column, 2 and 8 move to 1 and 5, and the associations are correct, but the Edit buttons for 2 and 8 are still visible, and the Edit buttons for 1 and 5 are not.
No code should be necessary with this explanation, but if more data is needed, please let me know. Any recommendations?
Bill Edwards

Hi Telerik,
Is it possible to set the width of event A to 80% and width of event B to 20% ?
Thanks

The user story:
- I hit the NEW (Insert) Button in the Grid toolbar. (k-grid-add)
- After inserting the data in the Popup editor, I hit the k-grid-update Button in the Popup editor.
- The Popup editor should stay open with a new record, or at least auto-reopen, so I can go on with entering the next record.
Is there a way to have an "insert and add another row" Button to stay in the Popup editor?
I tried all combinations of addRow from the Grid API, but I allways get an Uncaught TypeError
kendo.all.js:10682 Uncaught TypeError: Cannot read property 'uid' of undefined
at init.cancelRow (kendo.all.js:10682)
at init.editRow (kendo.all.js:10401)
at init.addRow (kendo.all.js:10876)
at Object.complete (index:3034)
at i (jquery.min.js:2)
at Object.fireWith (jquery.min.js:2)
at y (jquery.min.js:4)
at XMLHttpRequest.c (jquery.min.js:4)
Thanks for the support.

As per the documentation, we can filter the datasource with only one logic: either "or" or "and". I need to filter as per the following logic:
(condition 1) and ((condition 2) or (condition 3))
Is it possible?
If not, is there in the operator something like "in" so that I can do the following logic:
(condition 1) and ( x in ("value 1", "value 2"))?
I have a grid
@(Html.Kendo().Grid<TaskViewModel>()
.Name("taskGrid")
.Deferred()
...
.Columns(columns =>
{
columns.Bound(e => e.CrmWorkflowStatusText).Title("WF Status").Filterable(x
=> x.UI("SomeFunction")
.Extra(false)
.Operators(k => k
.ForString(str => str.Clear()
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal
to")
)));
})
...
.DataSource(dataSource => dataSource
...
))
that has a dropdownlist to filter one of the columns
function SomeFunction(element) {
const checkBoxTemplate = '@(Html.Kendo().CheckBox().Name("#:Title#").HtmlAttributes(new { @class = "checkbox", onchange = "SomeOtherFunction(this)" }))';
element.kendoDropDownList({
dataSource: {
transport: {
read: "@Url.Action("SomeAction")"
}},
optionLabel: "Select Something",
dataTextField: "Title",
dataValueField: "Title",
open: adjustDropDownWidth,
template: "<span><label>" + checkBoxTemplate + "<span id='#= Title #'>#= Title #</span></label></span>"
});
}
My problem is setting the id of this dropdownlist. I tried
name: "somename"
and
htmlAttributes: { id: "somename" }
hmtlAttributes does nothing and name:
"somename" sets the data-role attribute to "somename"...
<input title="Value" style="display: none;" type="text" data-role="test123" data-bind="value:filters[0].value">
Is there a way to fix this?