Telerik Forums
Kendo UI for jQuery Forum
0 answers
262 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
105 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
266 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
127 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
150 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
100 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
128 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
453 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
0 answers
195 views
how to remove default button and add my custom button in kendo grid from add and edit form.
Jaymin
Top achievements
Rank 1
 asked on 19 Oct 2012
2 answers
326 views
The app that I am working on we have the BODY tag with vertical scrollbar. That is necessary to make the app to have a minimum height of 100% and make the footer to stick at the bottom when the content is not long enough to create a scrollbar. All that is being done without JavaScript (please see the attached files).

When the content is long enough to create a vertical scrollbar, if the page is scrolled down, kendo popups don't get the right position. This is happening because it is assumed that the HTML tag is the only one with scrollbars. The only browser that this assumption works anyways is Chrome. Firefox and Internet Explorer 7++ get the popup opened in the wrong position.

In the attached files I added a commented code in the line 1841 in kendo.core.js. Removing the comment will get the issue fixed. The code is shown below.

// Get scrolltop from HTML or Body (if it is not a frameset page)
var scrollTop = window.document.documentElement.scrollTop || (window.document.body) ? window.document.body.scrollTop : 0;
 
if(scrollTop > 0)
    result.top = result.top - scrollTop;

Issue replication steps:

1 - Open the default.htm page from the attached file in Internet Explorer or Firefox
2 - Resize your browser height to get a vertical scrollbar
3 - Scroll down
4 - Open the drop down
Swikar
Top achievements
Rank 1
 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
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
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?