Telerik Forums
Kendo UI for jQuery Forum
1 answer
254 views

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?

Tsvetomir
Telerik team
 answered on 04 Mar 2019
1 answer
261 views

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

Alex Hajigeorgieva
Telerik team
 answered on 04 Mar 2019
3 answers
3.3K+ views

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?

Preslav
Telerik team
 answered on 04 Mar 2019
5 answers
366 views
I have a kendo mobile app with a view  that is binded to an observable object 


         
//Post Account View Model
        var postaccountModel = kendo.observable({
            Username: null,
            Password1: null,
            Password2: null,
            Firstname: null,
            Middlename: null,
            Lastname: null,
            Gender: null,
            BirthDate: null
        });



What i want basically is to just make a simple POST call using kendo datasource passing this viewmodel to webapi post method
     
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)
        {
        }


But I cant figure out how, I tried this code but it doesnt work

  
$("#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();}
        });



can anyone point me to the right direction on how to make this kind of call?


Alex Hajigeorgieva
Telerik team
 answered on 01 Mar 2019
2 answers
236 views

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.

 

 

Alon
Top achievements
Rank 1
Veteran
 answered on 01 Mar 2019
2 answers
420 views

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?

Matt
Top achievements
Rank 1
 answered on 28 Feb 2019
3 answers
1.2K+ views

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.

Georgi
Telerik team
 answered on 28 Feb 2019
2 answers
120 views

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.

John
Top achievements
Rank 1
 answered on 27 Feb 2019
1 answer
154 views

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

Dimitar
Telerik team
 answered on 27 Feb 2019
1 answer
2.3K+ views
I have listView bind to dataSource and pager also bind to the same dataSource. When I change pageSize I want to store new value, so the next time user load page I can set pageSize to his last choice.

I try dataSource change event, but it is not fired. There is also no events on pager.
Dimo
Telerik team
 answered on 27 Feb 2019
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?