Telerik Forums
Kendo UI for jQuery Forum
2 answers
512 views

Hi there,

I found this post "Is a selected cell merged?" from the spreadsheet forums which is quite similar to what I want.

I have a kendo.ui.spreadsheet which the user selects a range of cell (including a merged cells).  From the post, it mentioned about "For a merged Cell the Property IsSingleCell is false", but I don't see a property definition of "IsSingleCell" in the spreadsheet API documentation. 

Where can I find this "IsSingleCell" property?  If this property exists, any dojo example would be awesome.

If not, is there a way to determine if the selected range in a spreadsheet contains a merged cell? 

I'm hoping that there will be a cell property like "merged" that returns true or false.

 

Any inputs is greatly appreciated.

Junius

Junius
Top achievements
Rank 2
 answered on 08 Apr 2020
6 answers
873 views
I have an Kendo upload control set to upload multiple files. The files upload as expected. The problem that I am facing is that I have to update a grid based on the files that were just uploaded. The problem is that the success handler is only fired once upon completion of the uploads. These are handled quickly as they are asynchronous. So, basically when the the success handler is reached I call  mygrid.dataSource.read(). This results in the datasource reading only the first record from the server since the others are not finished processing. There is no easy way to sort this problem out. The complete handler is fired immediately after the success handler so that doesn't help either. Seems like a bug to me but let me know if I am wrong. The success handler should fire once for each file and the complete handler should be fired only after all the files are uploaded successfully or not(am I wrong?).
Joon-Sae
Top achievements
Rank 1
 answered on 07 Apr 2020
1 answer
883 views

I have a grid with several columns. The last column has a button that opens a new row with details from the row and external sources inside. Inside the details row, I have a button that updates one of the columns. After update, I use the function that's posted here (https://docs.telerik.com/kendo-ui/knowledge-base/grid-update-particular-row-without-refresh) to refresh the row without making another call to show the changes.

Everything works, all columns show the correct values. The button content comes from a x-kendo-template:

<script id="template" type="text/x-kendo-template">
        <div>
            <button class="btn btn-default " data-bind="events: {click: viewDetails}">View Details</button>
        </div>
</script>

Because this column has a template, the following line in the kendoFastReDrawRow method in the link above is called:

// Render using template

cell.html(kendoTemplate(dataItem));

 

this puts the template back to the button but when I use the Kendo MVVM utility in Chrome Dev Tools, I see there is no data bound, so the click event does not work.

If I call kendo.bind(cell, dataItem) after that line, that puts the binding back, but the click event produces a JQuery error:

Uncaught TypeError: ((b.event.special[i.origType] || {}).handle || i.handler).apply is not a function

It seems like JQuery doesn't understand the click handler, and I can see that in the Event Listeners tab in Chrome Dev Tools, the click handler isn't there.

 

Is it not possible to get event bindings after an update with kendo.template or am I missing something?

ps. We are using Kendo UI v2015.2.805, update currently is not possible

Erkan
Top achievements
Rank 1
 answered on 07 Apr 2020
2 answers
499 views

hello,
I am initializing kendo table using a html table and set the columns with using colgroup and col tags,but my table has different behavior in Firefox and Chrome and it seems not work correctly in Firefox.

here is the example I've made it and if you open it in Chrome and Firefox you will see the difference.

https://dojo.telerik.com/aJuQEZIP/2


Saeed
Top achievements
Rank 1
 answered on 07 Apr 2020
6 answers
694 views

Hello,

 

I'm a bit new to Kendo UI scheduler, replacing another calendar componenet with it. Now if I want to add an additional field to the edit event template like "isPrivate" how can I do this? Let's say I want to add it as a checkbox. I saw it is possible to add additional data with resources and have it show up in the popup, but only as select fields. Is there a way around or is the only option to make a complete custom template.?

 If I make a custom template, can I somehow use the recurring field from kendo?

 Best regards

Rasmus

Ivan Danchev
Telerik team
 answered on 07 Apr 2020
7 answers
638 views

We are using both the radial and linear gauges in our own jQuery UI widget wrappers. These custom widgets are then added dynamically to a "canvas" window in our product. This had been working well until recently, when we noticed that sometimes the Kendo gauges would not always appear centered in their container divs. See the attached .PNG files for an example of a "misaligned" gauge, as well as the proper alignment.

When a gauge is misaligned, any small change to the browser window size will cause it to immediately "snap" into position. So, clearly the gauge is responding to some window message to reflow the page.

Our developers have spent a long time trying to solve the initial misalignment problems. We found that setting a timer when the page loads and then calling the gauges' "resize(true)" method would cause the gauges to align properly. However, a lot happens in the page when it loads so it was always tricky to set the timer delay so it didn't occur "too soon" to have an effect. Even so, this workaround has not been effective in every case and our customers have started to notice the issue.

I have noticed that misalignment seems to occur most often in recent versions of Chrome and Edge browsers. Firefox and Internet Explorer don't appear to suffer the same issue.  We are still using an older version of Telerik controls: 2018.3.911.

In my rather extensive testing of this issue the past few days I have noticed that a in simpler "preview" page that one type of our widget seems to always be initially misaligned but another widget type behaves properly. I have looked for differences between the two widgets (both based on Kendo radial gauges) and aside from default CSS, layout and labeling differences, the two widgets are pretty similar. I can't explain the difference but it seems reproducible.

Any thoughts about could be going wrong? We could prefer to avoid the "resize" method of solving this issue, if possible. What message do the gauges respond to when the browser window is resized?

I can provide details on how the widgets are rendered and the appropriate CSS upon request.

Thanks,

Jeff Benson

New Boundary Technologies

 

 

Teya
Telerik team
 answered on 06 Apr 2020
1 answer
141 views
I am using KendoExtGrid with binding datasource with filterable row,.menu to filter grid records but in kendogrid filter textbox ,on enter event not working in internet explorer with serverfiltering
Ianko
Telerik team
 answered on 06 Apr 2020
1 answer
408 views

I have a kendo grid with grouping and endless scrollbar. I am trying to update dataItem(s) using dataItem.set with an external button click. dataItem.set is not firing change event and data is not being updated. 

 

Can someone help me with the issue.

Nikolay
Telerik team
 answered on 06 Apr 2020
1 answer
69 views

i did not bind Multicolumndroupdownlist

 

view

                        @(Html.Kendo().MultiColumnComboBox()
              .Name("customers")
              .Placeholder("Select customer")
              .DataTextField("CustName")
              .DataValueField("CustomerID")
              .Columns(columns =>
              {
                  columns.Add().Field("CustName").Title("Name");
                  columns.Add().Field("CustomerID").Title("ID");
              })
              .HtmlAttributes(new { style = "width:100%;" })
              .Filter("contains")
              .AutoBind(false)
              .MinLength(2)
              .DataSource(source =>
              {
                  source.Read(read =>
                  {
                      read.Action("GetCustomers", "OrderManagement");
                  })
                  .ServerFiltering(true);
              })
            )

 

 

 

 

 

Controller

 

 public ActionResult GetCustomers(string text)
        {
            ApplicationDbContext db = new ApplicationDbContext();
            var customers = db.Customers.Select(customer => new Customer
            {
                CustomerId = customer.CustomerId,
                CustName = customer.CustName,
                PhoneNo = customer.PhoneNo
            });

            if (!string.IsNullOrEmpty(text))
            {
                customers = db.Customers.Where(p => p.CustName.Contains(text));
            }
           // return Json(GetOrders().ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
            return Json(customers, JsonRequestBehavior.AllowGet);
        }

 

 

 

 

Dimitar
Telerik team
 answered on 06 Apr 2020
5 answers
5.9K+ views
I have a treeview build with load on demand from a datasource that is a list of items, every item has an id. I want to send to the server using ajax the id of the selected item in the tree.
--- View code ---
@(Html.Kendo().TreeView()
        .Name("treeview")
        .DataTextField("Name")
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("OmanagerItems", "TaskManager")
            )
        )
        .Events(events => events
            .Select("onSelect")
            .Expand("onExpand"))
    )
function onSelect(e) {
    var itemId = e.node.getAttribute("data-uid");
   // this is where i want to get the id of the selected item
}
 
// here i want to tell the server that i'm working on a task
function changeWorkingStatus(docId) {
    $.ajax({
        url: "/TaskManager/ChangeWorkingStatus",
        type: "POST",
        success: function (data) {
            updateInterface(data.IsWorking);
        }
    });
}

I'll appreciate any help, thank you.
Mike
Top achievements
Rank 1
 answered on 03 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?