Telerik Forums
Kendo UI for jQuery Forum
16 answers
1.3K+ views
Maybe I am missing something basic, once I set up the application, i'd like to navigate to a view programatically (e.g. if the user isn't logged in, I want to navigate to the login view). Is this possible?
Daní
Top achievements
Rank 1
 answered on 19 Oct 2012
6 answers
373 views
Using the new release, I enabled inline editing mode. Everything works well except that the row should remain in editing mode if there's an error performing an update to the server. Right now it just changes back to view mode. There should really be some method of displaying server-side errors in this scenario, but I'd be happy to just have it not switch out of editing mode, which gives the wrong impression that the update succeeded.
Vivi
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
219 views
Hi,

I'm attempting to unit test(using Jasmine) an angular directive containing a call to jquery('element').kendoAutoComplete(...). We are using jstestdriver to launch our unit tests in a chrome browser, and this also allows us to breakpoint the javascript and create watch expressions.
We have added the kendo.all.min.js and kendo.core.js scripts to the jsTestDriver configuration and they are visible when the browser is open during the unit test runs.
My problem is, that at the point of creating the xyz = new kendo.data.DataSource(...) the DataSource has not been initialized and is tripping up my unit tests. I am able to create a watch expression(in Chrome) on the kendo.data portion, so it seems that some of kendo is loading and working. We do have other tests running on things like the kendoDatePicker and those run fine.

I have tried searching for ways to mock out the DataSource, but it would help if I could see the code behind the object to know what needs to be mocked however I have been unsuccessful in finding the source for the kendo DataSource object(can someone help me with this?).

The actual code evaluates properly when deployed in the main application and doesnt have this issue. Could this be as a result of the DataSource not being attached due to missing code/a missing function call? Is there some way of me manually getting it to be attached?
Keir
Top achievements
Rank 1
 answered on 19 Oct 2012
0 answers
250 views
Dear,
How can scroll grid to k-state-selected row ?

I'll try this but it's not work:
var iframe = $("#myGrid");
var tr = iframe.contents().find("tr[class=k-state-selected]");
$(iframe.contentWindow || iframe.contentDocument).scrollTop(tr.offset().top);

In my case I change row selected in this way:
var myGrid = $("#myGrid").data("kendoGrid");
myGrid.select(myGrid.tbody.find("td .key:contains('" + myKey + "')").closest("tr"));

But I want scroll grid at selected row.

Thanks,
Rinaldo
Rinaldo
Top achievements
Rank 1
 asked on 19 Oct 2012
1 answer
102 views
Hi there,

I am a registered customer with 315 days of support left. However I cannot create support tickets at the moment due to the error message "Message cannot be empty" regardless of what I write into the message field!? Is this a known issue or am I missing something?
(Screenshot attached)

Regards

Stefan

Georgi Tunev
Telerik team
 answered on 19 Oct 2012
0 answers
259 views
I have the following inline grid with datepicker. The datepicker bind date corretly in database. However if you change the radpicker value then it would not hold the current selected date instead it hold 01/01/1001 00 00 00. 

Anybody can help?

VIEW:


@(Html.Kendo().Grid(Model)
    .Name("SList")
        .HtmlAttributes(new { @Style = "align:center; font-size:10px;" })
    .Columns(columns => {
        columns.Bound(p => p.CCID);
        columns.Bound(p => p.CRN);
        columns.Bound(p => p.CFirstName).Width(140);
        columns.Bound(p => p.CFamilyName).Width(140);
        columns.Bound(p => p.Alias).Width(45);
        columns.Bound(p => p.CGender).Width(45);
        columns.Bound(p => p.CAge).Width(45);
        columns.Bound(p => p.CDOB).Format("{0:MM/dd/yyyy}");
        columns.Bound(p => p.RDate).Format("{0:MM/dd/yyyy}");
        columns.Bound(p => p.RFrom);
        columns.Bound(p => p.RComments);
        columns.Bound(p => p.ReferralTo);
        columns.Bound(p => p.CStatusID).EditorTemplateName("CStatus
");
        columns.Bound(p => p.DateScheduled).Format("{0:MM/dd/yyyy}");
  
        columns.Command(commands => commands.Edit()).Width(175);
    })
    //.ToolBar(toolBar => toolBar.Save())
    .Editable(editable => editable.Mode(GridEditMode.InLine))
    .Pageable()
    .Sortable()
    .Scrollable()
    .Navigatable()
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single)
                                        .Type(GridSelectionType.Row))
    .DataSource(dataSource => dataSource        
        .Ajax()
        .PageSize(10)   
        .Model(model => model.Id(p => p.ConsumerID))
        .Read(read => read.Action("Index", "Management"))
        .Update(update => update.Action("Edit", "Management"))
      
    )
)

/Shared/EditorTemplates
DateTime.cshtml

@model DateTime?

@(Html.Kendo().DatePickerFor(m => m)
              .Format("M/dd/yyyy"))
              

Mark
Top achievements
Rank 1
 asked on 19 Oct 2012
0 answers
120 views
Hi,

We are evaluating kendo ui library for our aplication.
We found an odd behaviour of kendo combo box.
If we hover the mouse pointer over an item in list and move the cursor,
instead of navigating from mouse over element, navigation occurs from currently selected element.

Is this the default behaviour?

I would like to know if there is a way to change this behaviour.

Regards,
Vinod.
Vinod
Top achievements
Rank 1
 asked on 19 Oct 2012
1 answer
147 views
Hello,

I'm working on an ASP.NET MVC 4 solution and would like to be able to display the current status of file uploads (asynch) after a user navigates away from the page where they have uploaded the files. Users may be uploading several large files that could take some time to upload. Ideally this would be displayed through a  _layout.html element so that the user can see the file upload progress as they continue to use the application. Any pointers that would help implement this are much appreciated. Thank you!
Vladimir Iliev
Telerik team
 answered on 19 Oct 2012
3 answers
92 views
When i loose focus of my browser, let say i click on another program & then goes back to my browser.

The dropdownlist goes down & then fast up again. I have 2 dropdownlists connected and it happens randomly on them

@(Html.Kendo().DropDownList()
            .Name("resources")
            .OptionLabel("Välj resurs eller sök bland alla...")
            .DataTextField("ResourceName")
            .DataValueField("ResourceID")
            .DataSource(source =>
          {
              source.Read(read =>
              {
                  read.Action("GetResources", "ComboBox").Data("filterServices");
              })
               
              .ServerFiltering(true);
          })
               .Template("<div><strong>" +
                        "${ data.ResourceName }</strong><br/>" +
                        " # if (data.ResourceInformation) { #" +
                        "<em>${ data.ResourceInformation }</em></div>" +
                        " # } #")
               .Events(x => x.Change("ChangeResource"))
        .HtmlAttributes(new { style = string.Format("width:{0}px", 340) })
    )
 
//
// Dropdown 2
//
 
@(Html.Kendo().DropDownList()
        .Name("services")
        .OptionLabel("Välj tjänst...")
        .DataTextField("ServiceName")
        .DataValueField("ServiceID")
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("GetServices", "ComboBox")
                .Data("filterResources");
            })
            .ServerFiltering(true);
        })
         
            .Template("<div class='displayServices'><strong>" +
                            "${ data.ServiceName } # if (data.ServicePrice) { # Pris: (${ data.ServicePrice }) # } #</strong># if (data.Priority) { # <img style='float: right' src='/Content/images/star.png' /> # } #<br/>" +
                            " # if (data.ServiceInformation) { #" +
                            "<em>${ data.ServiceInformation }</em></div>" +
                            " # } #" + "<hr />")
        .HtmlAttributes(new { style = string.Format("width:{0}px", 340) })
    )

function ChangeResource() {
        $("#services").data("kendoDropDownList").dataSource.read();
    }
   
    function filterResources() {
        return { resources: $("#resources").val() };
    }
    function filterServices() {
        return { service: $("#services").val() };
    }
Gustaf
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
123 views
Hi,
In KendoUI is possible to customize a filter of a grid? I want, for example, that if I have a column of user, this column have a filter that is a custom user selector. Is this possible?
Nikolay Rusev
Telerik team
 answered on 19 Oct 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?