Telerik Forums
Kendo UI for jQuery Forum
3 answers
147 views
Hi,
It's just a beta but I get an error if I create a new folder and then clicks to go in it.

Regards,
Mattias
Rosen
Telerik team
 answered on 02 Nov 2012
3 answers
207 views
Hi All,

I was wondering how can i have two months view in Kendo Calendar as my client wants to have a calendar with two months and one with four months at a time.

Thanks in Advance,
Sher
Iliana Dyankova
Telerik team
 answered on 02 Nov 2012
7 answers
293 views

I have Grid
I want to use MVVM template, at creation of new record and editing of existing record. A template I start from Grid.

At start of the form from a template the data from a line Grid should be loaded. After editing of the form the data remains in a database.

How to obtain the data from row of Grid and to initialize ViewModel?
How to transfer the data in the controller for preservation?

  

 

  $(document).ready(function () {
        ViewModel = kendo.observable({
            Id: null,
            UserType: null,
 
            isSaved: false,
            isDisabled: true,
 
 
 
            edit: function (e) {
                this.set("isDisabled", false);
            },
 
            cancel: function (e) {
                this.set("isDisabled", true);
            },
 
            reset: function (e) {
                this.set("id", null);
                this.set("UserType", null);
 
            },
 
            load: function (e) {
                loadData();
            }
 
        });
 
        kendo.bind($("#form"), ViewModel);
 
var validator = $("#form").kendoValidator().data("kendoValidator");
 
 
//Button Send data to Controller
        $("button").click(function (e) {
            e.preventDefault();
 
            if (validator.validate()) {
              alert("Yes!");
 
             // How to send the data to the controller with dataSourse?
 
                 // Set an example please! 
                   
 
 
            }
            else {
                alert("No!");
            }
        });
 
 
    });
 
 
function loadData() {
    var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: '@Url.Action("_Details")',
                        data: { id: $("#type").val() },
                        dataType: "json",
                        type: "POST",
                        contentType: "application/json; charset=utf-8"
                    },
 
             schema: {
                 model: {
                     id: "id",
                       fields: {
                       Usetype: { type: "String" },
                            }
                        }
                    }
                },
 
 change: function() {
 
 //Here loading of the data
 //How here to initialize ViewModel??????????
//
 
 
  ViewModel.set("id ", this.view()[0].id);
  ViewModel.set("UserType ", this.view()[0].UserType);
 
                }
            });
 
        };
    
</script>

 

 

 

 

Leonid
Top achievements
Rank 1
 answered on 02 Nov 2012
0 answers
206 views
How do i set a custom command button with dynamic id="2012-12-1 23:23"?
I was trying:
columns.Command(command => command.Custom("Avboka").Click("confirmBookingRemoval").HtmlAttributes(new { @Id =  Model.First().StartDate.ToString() }));

But the model is null when i tries to use it.
Stefan
Top achievements
Rank 2
 asked on 02 Nov 2012
2 answers
532 views
Hi,

For some reason after changing font of the grid my header height doesn't match with footer height.

How can I change Grid's footer height?  Actually I need to remove padding from it.

Thanks a lot.

Sincerely,
Vlad.
Vlad
Top achievements
Rank 1
 answered on 02 Nov 2012
1 answer
103 views
Hi,

How would I invert the yAxis on a scatterLine chart.
Essentially I want the min value to be at the top.

Many Thanks
Iliana Dyankova
Telerik team
 answered on 02 Nov 2012
0 answers
84 views
Hi,


I use EF 5 with the "Include" statement such as:

public ActionResult List([DataSourceRequest] DataSourceRequest request)
{
    ... initialize context...
    context.Configuration.ProxyCreationEnabled = false;
    IQueryable<User> set = context.Set<User>().Include(u => u.Country);

    return Json(set.ToDataSourceResult(request));
}

(In order to avoid erros such as "circular reference", I had to disable EF proxy creation.)

The grid works fine until the user starts grouping the columns, at which point the included objects are null, causing the JS to fail and not display the expected data any more.

If I enumerate the source to memory prior to converting to DataSourceResult, it works, the includes are present:

public ActionResult List(DataSourceRequest request)
{
     ... initialize context...
     context.Configuration.ProxyCreationEnabled = false;
     IQueryable<User> set = context.Set<User>().Include(u => u.Country);

    set.ToArray().AsQueryable(); // if I do this it works with Groups...

     return Json(set.ToDataSourceResult(request));
}

How can I make it work without enumerating the data source in memory first? I do not want to use model projection if possible to avoid the 'Include".


Thank you,
Lusu
Leontin
Top achievements
Rank 1
 asked on 02 Nov 2012
1 answer
126 views
Hi!

I need to insert some new views at runtime. Just doing it like this is not working.

dummy='<div data-role="view" data-layout="overview-layout-back" id="standortauskunft-01" data-title="Standort'><ul data-role="listview" data-style="inset" data-type="group"><li>test bla bla</li></ul></div>';
$('#standorte').after(dummy);

I think, i need to render(?) the newly inserted view, but don't know how.

Hope, someone can help me.

Ralf

Dner
Top achievements
Rank 1
 answered on 02 Nov 2012
1 answer
101 views
Hi, I need to add views at runtime in the body and then do a navigate.

I append a new view to body at runtime:
<div data-role="view" data-layout="layout" data-title="view2" id="view2">

Is it possible to programmatically add new views and is recognized by kendo.mobile.Application?

Thanks!
Dner
Top achievements
Rank 1
 answered on 02 Nov 2012
1 answer
184 views
Hi,

I am dynamically creating a tabstrip using tabstrip.append method as below,

tabStrip.append( { text: Name, content: "test" })

Now I want to add content to this tabstrip using the div tab dynamically.

something like,

$("#tabstrip-4").addContent(); --> I want to attach a jquery function which will populated the value in this div tag.

I am not sure how to get back the DIV id of the newly created tab when using tabstrip.append function. Can someone please help?

Thanks,
Barani
Shane
Top achievements
Rank 1
 answered on 02 Nov 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?