Telerik Forums
Kendo UI for jQuery Forum
6 answers
439 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
186 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
314 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
0 answers
142 views
I have an app like this:

   window.kendoMobileApplication = new kendo.mobile.Application(document.body,{
updateDocumentTitle: true,
initial: "login",
platform : "ios",
loading: "<h1>Aguarde...</h1>",
transition: "slide"
});



But, in all android I did test here shows like this picture.. The back button is missing one part and the other buttons, shows a square instead of the icon. Not all the icons.. Some of them has the problem...
In this case, is the back button "Voltar" and the button "Produtos".. The other button "Salvar" is all right.


When I run the same app in browser (chrome) or in the iphone/ipad, works with no problem.

I tried adding this, but didn't work:

http://www.kendoui.com/forums/mobile/application/missing-icons-in-tabstrip-with-platform-ios-on-android.aspx


.km-ios /* use .km-android, when you're not forcing the iOS styling) */
{
    -webkit-transform: translatez(0);
    -webkit-transition: -webkit-transform .0001ms;
}


I'm using the last version that I just download (trial)...
cleverson
Top achievements
Rank 1
 asked on 19 Oct 2012
0 answers
139 views
Hi,

Currently i have inline editing grid as in the following, I have drop down list in coloumn CStatusID, However, it does not selected value into when trying to save to database

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.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"))
      
    )
)

and I have CStatus.cshtml under shared/Editor template:
@(Html.Kendo().ComboBox()
        .Name("Status")
        //.OptionLabel("Select status")
        .DataValueField("OptID")
        .DataTextField("OptName")
        .BindTo((System.Collections.IEnumerable)ViewData["constStatus"])
    
        
)

Controller:

public ActionResult Index()
        {
            PopulateConstStatus();
            return View();
        }

private void PopulateConstStatus()
        {
            ViewData["constStatus"] = new EDEntities().COptions
                       .Select(e => new ConfOptModel
                       {
                           OptionID = e.OptID,
                           OptionName = e.OptName,
                           CTypeID = e.CTypeID
                       })
                       .Where(e => e.CTypeID == 2)
                       .OrderBy(e => e.OptName);
        }


Model

public int OptID { get; set; }
public string OptName { get; set; }

[UIHint("CStatus")]
public COptionsModel COptionsModel { get; set; }
Mark
Top achievements
Rank 1
 asked on 19 Oct 2012
1 answer
271 views
Similar to the PanelBar, I require that only one row entry hierarchy stays open at a time, in particular, when a row is in edit mode.

It is insufficient to bind a "open/close this row" to update and edit because it does not handle the case where the user edits another row or clicks cancel.

I've tried everything but nothing works. Help!
Phil
Top achievements
Rank 1
 answered on 18 Oct 2012
4 answers
369 views
Hi, 

I can't get the select event on the tabstrip working. It should log a console message that the select event was fired, but it does nothing. What am I doing wrong?

HTML markup:
<div data-role="layout" data-id="mobile-tabstrip">
    <div data-role="footer">
        <div data-role="tabstrip" id="tabStrip">
            <a href="#user" data-icon="contacts">User</a>
            <a href="#cycle" data-icon="play">Cycle</a>
            <a href="#stats" data-icon="toprated">Stats</a>
            <a href="#settings" data-icon="settings">Settings</a>
        </div>
    </div>
</div>

JS code:
var tabstripBound = false;
        var app = new kendo.mobile.Application($(document.body), {
            platform : "android",
            viewShow: function() {
                 if (!tabStripBound) {
                 var tabStrip = $("#tabStrip").data("kendoMobileTabstrip");
                 tabStrip.bind("select", onSelect);
                 tabStripBound = true;
                 }
              }
        });
         
        function onSelect(item){
            console.log("In on select");
        }
Shawn
Top achievements
Rank 2
 answered on 18 Oct 2012
8 answers
2.7K+ views
good morning everyone,

how are you?  I am currently using the licensed version of Kendo UI Complete for ASP.NET MVC (Q2 2012) and trying to figure out how to wire up javascript to the "Edit" and "Delete" grid commands.  the following is the code i have:

@(Html.Kendo().Grid<UserViewModel>()
                .Name("grdAllUsers")
                .Columns(columns =>
                {
                    columns.Bound(o => o.Id)
                        .Visible(false);
                    columns.Bound(o => o.UserName)
                        .Width(150);
                    columns.Bound(o => o.EmailAddress)
                        .Width(275);
                    columns.Bound(o => o.IsActive)
                        .Width(75)
                        .Filterable(false)
                        .HtmlAttributes(new { style = "text-align: center;" })
                        .ClientTemplate("<input readonly='readonly' type='checkbox' disabled='disabled' name='chkIsActive#=Id#' id='chkIsActive#=Id#' #= IsActive? \"checked='checked'\" : \"\" # />");
                    columns.Command(command =>
                    {
                        command.Edit();
                        command.Destroy();
                    });
                })
                .DataSource(dataSource =>
                {
                    dataSource.Ajax()
                        .Model(model => model.Id(o => o.Id)) // DataKey
                        .PageSize(15)
                        .Read(read => read.Action("Read", "Users"));
                        //.Destroy(destroy => destroy.Action("", ""));
                })
                .Pageable(paging =>
                {
                    paging.Numeric(true)
                        .Info(true)
                        .PreviousNext(true)
                        .Refresh(true);
                })
                .Sortable()
                .Filterable()
            )

i don't want to use the "Custom" command.

command.Custom("blah").Click("");

is there a way to do this, wiring up javascript to the grid "Edit" and "Delete" commands???

Thank you very much for all your help.

have a great day.
Sam
Top achievements
Rank 1
 answered on 18 Oct 2012
0 answers
125 views
Basically, I've seen that datasource's schema configurations support an "errors" field, and the datasource has an error event. I want to be able to pass back errors from my MVC controller, and have them be reported using the same error handler on the client side.

What do I need to do to get this to work? Specifically, what format does my returned errors have to be for the datasource to recognize it as errors and fire the event? Is there anything else I need to set on the datasource besides "schema.errors" and the error event handler? Currently I am just returning an object with a field "errors" that contains and array of strings, but that doesn't seem to trigger it. What am I doing wrong?

Thanks.
Joshua
Top achievements
Rank 1
 asked on 18 Oct 2012
2 answers
150 views
Dear,
I've two question about select a row in grid:

1) How I must call select method to select a second row of grid, or third row, ecc... (not the first row as your example)
2) How I must call select method to select a row that a certain field contains a specific value ?

Thanks,
Rinaldo
Rinaldo
Top achievements
Rank 1
 answered on 18 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?