I have an issue when using server side validation with the Kendo validator. When the input has focus, the server side validation seems to occur 3-4 times per second hitting the server. This only happens when there is an error, and the server returns false (something was not validated correctly). The server side validation occurs rapidly after that and it seems to slow down the browser, and when the user corrects the value and clicks on the submit button, the browser stops processing and freezes until you hit the submit button again. The browsers performance is degraded as well.
Can I slow down how often I hit the server when there was an error? Any suggestions would be welcome.
The approach that I developed is at http://gregoryalexander.com/blogCfc/client/index.cfm/2019/3/1/Kendo-Server-Side-Validation.
Hit the comment button on this thread, make a mistake on the captcha text, fix it to replicate.
Hello!
We using Batch editing Grid from springdemos and unfortunatelly, after pressing "Save changes" data doesn't insert from jsp to database (if you reload page, it will save, but if you open your database, you can't see any changes).
We find a piece of code (using debug), where we come, when we want to save (commit) changes (it's model "ProductDao"):
@Override
public void saveOrUpdate(List<Product> products) {
Session session = sessionFactory.getCurrentSession();
for (Product product : products) {
session.saveOrUpdate(product);
}
}
So what do we need to write here to commit changes to database?
Hello !!
update my kendo 2014.3.1119 to 2019.1.115 run Visual Basic and say the next error en load
TypeError: u is undefined
some idea of the error
Thks, have nice day
Hello there,
The observable behavior about the column width is that if the columns have explicit fixed width, and the sum of the fixed width less than the grid width, kendo grid will ignore the width and expand columns to fill the gird.
But now, I need to make all the columns have fixed width, user can add or remove columns. So sometimes it will just have one column, or sum of the column width less than grid width, we would not like the column expand to the grid, we hope it just take the fixed width, the remain area become blank.
Is there an solution to solve this issue?
//Post Account View Model
var
postaccountModel = kendo.observable({
Username:
null
,
Password1:
null
,
Password2:
null
,
Firstname:
null
,
Middlename:
null
,
Lastname:
null
,
Gender:
null
,
BirthDate:
null
});
public
class
PostAccountModel
{
public
string
Username {
get
;
set
; }
public
string
Password1 {
get
;
set
; }
public
string
Password2 {
get
;
set
; }
public
string
Firstname {
get
;
set
; }
public
string
Middlename {
get
;
set
; }
public
string
Lastname {
get
;
set
; }
public
string
Gender {
get
;
set
; }
public
DateTime? BirthDate {
get
;
set
; }
}
[Authorize(Roles = Service.Security.Role.Guest)]
public
void
Post(PostAccountModel value)
{
}
$(
"#button-save"
).on(
"click"
,
function
() {
if
(createaccountvalidator.validate()) {
var
authheader = EMRGUEST;
var
authbase64 = Base64.encode(authheader);
var
dataSource =
new
kendo.data.DataSource({
transport: {
create: {
url: EMRAPIURL +
"account"
,
dataType:
"jsonp"
,
type:
"POST"
,
beforeSend:
function
(xhr) {
xhr.setRequestHeader(
'Authorization'
,
'Basic '
+ authbase64);
},
data: kendo.stringify(postaccountModel)
}
}
});
dataSource.sync();}
});
I have the following template defined
<
script
type
=
"text/x-kendo-tmpl"
id
=
"tmplterminalSummary"
>
<
div
class
=
"row grandTotalRow"
><
br
>
<
span
class
=
"col-md-1 col-xs-3 resultLabel text-left"
>Gift Cards Terminal</
span
>
<
br
>
<
span
class
=
"col-md-2 col-xs-2 resultValue"
>#:kendo.toString(gcardGross,"c")#</
span
><
br
>
<
span
class
=
"col-md-3 col-xs-2 resultValue"
>#:kendo.toString(gcardRefund,"c")#</
span
><
br
>
<
span
class
=
"col-md-3 col-xs-2 resultValue"
>N/A</
span
><
br
>
<
span
class
=
"col-md-3 col-xs-2 resultValue"
>#:kendo.toString(netGCard,"c")#</
span
><
br
>
</
div
>
</
script
>
The issue I am having is that sometimes gcardGross is undefined. This results in a run time error like this https://screencast.com/t/6lHLtsliMx5F
I have tried replacing it with a line like this but unfortunately the error continues to occur.
<span class="col-md-2 col-xs-2 resultValue">#:gcardGross?kendo.toString(gcardGross,"c"):kendo.toString(0,"c")#</span><br>
So how can I define a default value so that 0 is shown if the property is undefined.
I've been struggling with this for quite a while now with no good results. We are using stacked charts that are built dynamically in javascript from a dataset. I want to only display the last label in the stack (using stackValue in the label template). The issue is that the stack in each category may not have the same number of series displayed.
For example, I am binding 3 series to the chart in a stack with months as my category. October only has a value for 1 series, November has values for all 3 series, December has values for only 2 series.
So I can't just set the last series' labels as visible and the other series as not visible. Is there a way in the labels visible event to see what the last series is in the stack and set the other series labels to hidden?
Is that possible to create a custom edit pop up that contains another grid inside?
My template has a dropdownlist. I would like to use the onchange event of that dropdownlist to display a grid with read only information, nothing fancy.
Is that possible?
Please let me know your comments.
Thanks in advanced.
I'm using an old version of Kendio-UI (from 2014) in an ASP.NET web site. I cannot update to a newer version of Kendo-UI. Copy/pasting code into this message is not possible because of domain separation.
I have the following (psuedo-code:
$(document).ready(
function
()
// 0) variables that I set from hidden input fields (I have verified via the console that these
// values are being set as expected)
// 1) a data url that calls a sql server stored proc to retrieve remote data
// 2) a kendo.data.DataSource object that retrieves the remote data
// 3) a hand-jammed local array of items that the remote datasource would normally
// contain (for testing)
// 4) an array of columns to display in the grid
// 5) a kendoui grid object to display the data
}
Problem: With the local testData object, the grid displays as expected. When I try to set the dataSource property to the remote data object, the grid displays 32,800 empty rows (there are only two rows of data in the remote datasource).
I have verified via the browser debugger that the remote data is being successfully retrieved, and it's in the desired/expected format, but the grid freaks out when I try to use it as a data source.
Hi,
As my title says the content pane of my is being pushed outside the Tabstrip container. I've never seen this before, at first I it was something to do with my code, in the attached image, you can see its simply 2 titles and test data tabs.
Have you ever seen something like this before?
Thanks,
Grant