How to refresh kendo uploader widget using jquery - kendo-ui

kendo uploader works fine with upload, but kendo uploader holds certain data (kendo upload status) in html after form submit. How can I refresh kendo uploader using jquery?.
I needed something like below. Googled but with no hope.
$(".k-upload").data("kendoUpload").refresh();

showfilelist is default set to true. Set it to false.
https://docs.telerik.com/kendo-ui/api/javascript/ui/upload/configuration/showfilelist

Related

Can I stop dompdf page hard reload in laravel dompdf?

I have used dompdf in my laravel application and I'm calling the pdf generate function from the same form submit button and both are working fine. The only issue I'm facing right now is on my generated pdf file every hard refresh/reload, form data is submitting again to the database. Is there any possible way that i can prevent that reload or form submit?
I tried with this below Jquery but that completly prevent my form by clicking the button also. I just want that form not to submit again on pdf file reload.
$("#orderForm").submit(function(e) {
e.preventDefault();
});

Kendo UI Client Side Validation erros as list

I am using Kendo UI ASP.Net MVC framework and I have a kendo grid one of our pages. I am able do client side validation when the grid is in edit mode(using in-line editing). Any error messages are displayed next to the field, it is possible to get all these errors and display them as a list when the Update button is clicked on the row.
No, such validation summary is not supported, however you can customize where the messages are shown like explained here.

Jquery mobile - radio button widget for dynamic html contents created via ajax

I am new to jQuery mobiles. The radio button widget is properly rendering if I hard code that in a HTML file but the widget is not loading for the same HTML contents which I dynamically created from JavaScript via Ajax.
when i try checkboxradio( "refresh" ), I am getting an error like
"cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh'"
Any suggestion on how should I refresh the dynamic contents to get the JQM widgets?
Enhance the markup of Checkbox and Radio buttons dynamically using both .checkboxradio() and .trigger('create').
$('input[type=radio]').checkboxradio().trigger('create');

Telerik MVC Chart: How to change databinding mode at client side using javascript?

I have a telerik MVC barchart that uses serverside binding during startup for performance purpose. Afer the page is loaded. I want to change the databinding to AJAX, so the chart can update itself responding to other events. Can the databinding mode be updated using javascript
You could pass the values you want to initially load to the Chart constructor and also define an ajax binding and select method. After that once the page is loaded you can refresh the Chart with the following code
<code>
$('#chartID').data().tChart.rebind()
</code>

Is it possible to show an overlay when a form is submitted (not via Ajax)?

A bit of background: I am using asp .net MVC and I am not allowed to asynchrounously submit the form using JQuery. When the user submits the form it takes a few seconds for the save to happen and then a message is displayed to them. In this time the client wants to show an overlay with an image and a processing label. I was using BlockUI (Jquery plugin) for all overlays but it wont work since I am not posting the form via ajax.
Any ideas on how to show an overlay is much appreciated.
TIA.
Regards,
Raja
You can tie a overlay to the button click, because you are not using AJAX the form submission will reload the page.
Also, blockUI should not require AJAX.
$('.button').click(function() {
$.blockUI();
});
Since u are using MVC, am not sure if u are using webforms or controllers.
Please try this,
For webforms, u can use OnClientClick to call a javascript to show the div that has the processing gif image.
For controller pattern, in onclick event handler before the form is submitted, use javascript/jquery to show the div that has the processing gif image.

Resources