Telerik Forums
Kendo UI for jQuery Forum
6 answers
429 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
260 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
287 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
127 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
298 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
140 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
179 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
136 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
145 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
6 answers
502 views
In my application I have 3 mobile view:
- Items-View, where the user selects an item,
- Options-View, where the user can specify additional options for some of the items, and
- Details-View, where the details about the selected item are displayed.

The Details view has a standard back button in the header area which should take the user back to the Items-View.

In the case the user was taken to the Options-View before navigating to the Details-View, the standard back button is taking the user to the Options-View rather than the Items-View (the workflow doesn't allow for them to choose another option, but rather to take them back to the Items-View).

I have used window.location.replace('#Results-View') when navigating from the Options-View page, which works correctly in Chrome on Windows, but fails on the iPhone.

So is there a way to either:  
- Remove (or don't add) the Options-View from the navigation history (so the button would work correctly), or
- When navigating to the Options-View from the Details-View to programmatically invoke the back navigation?

Update: using kendo.history.navigate('#:back') invokes the back navigation programmatically. While it works it still shows the Options-View temporarily 'on the way back'. Removing the Options-View from the navigation history all together would be preferred.

I have considered to convert the Options-View into a dialog, but I haven't found a dialog framework that looks and feels natural in this flow.
Shawn
Top achievements
Rank 2
 answered on 19 Oct 2012
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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?