Telerik Forums
Kendo UI for jQuery Forum
4 answers
898 views
I own a small farm and am selling products from my farm to people locally.  I am also a software developer familiar with MVC.  I would like to create a slide show or other nice looking picture gallery from pictures from our farm.  I have looked at the window widget and thought it might be a good start.  Does anyone have any suggestions on how to make a nice looking gallery that is not terribly obtrusive?

Thanks,
John
Henry
Top achievements
Rank 1
 answered on 25 Feb 2013
1 answer
115 views
I'm trying to bind listview items containing checkboxes to observable array. Changes made in checking/unchecking checkboxes in listview are correctly propagated into data items. But when I try to change programatically the data in the array the listview is bound to the change is not propagated back to checkbox.
Here's a simple jsfiddle. The button "Toggle" should change the array data. The view title demonstrates that the changes in checkboxes are correctly propagated into array.

Am I missing something?

Thanks for help.
Norbert
Top achievements
Rank 1
 answered on 24 Feb 2013
5 answers
2.6K+ views
I have a Kendo grid that allows adding a new record. When the user adds a record it not only submits the current new record, but also resubmits all previously submitted new records. That is:
  • add first new record, submit record 1
  • add second new record, submit record 1,2
  • add third new record, submit record 1,2,3
  • etc.
This quickly creates MANY duplicate records in my DB.

Is this related to "batch"? I have it set "batch: false"

Thanks,
DJo

Edit:
I might have the problem. I'm using parameterMap with a switch on type; case "create" pushes a new object onto a changeSet array then does "return (JSON.stringify({ "changeSet": changeSet }))". I think this might just be building up an array of changes that grows with each create and gets sent each time.
Is it OK to splice the array after the return statement?
Michel
Top achievements
Rank 1
 answered on 23 Feb 2013
3 answers
502 views
Hi,

Is there a way to set the date in the footer to this format : 12 december 2011? For the months, how can i set in in my language?

Thx,

Kevin,
Christophe
Top achievements
Rank 1
 answered on 23 Feb 2013
2 answers
185 views
I have a mobile view that is populated via templates and a click handler of a listview datasource.  The datasource setup (and click handler) look like this:

http://jsbin.com/ihirin/1/edit

My problem is that when running on a mobile device, the first time that the detail UI is loaded, things look OK.  But on subsequent loads, two errors occur: 

1. the install button is not styled correctly (instead, it looks like the install button in the jsbin example above)
2. the scrollview for the screenshots doesn't appear to init correctly, all images are visible.

To me, this feels like a "did not initialize or [re]apply styles to the content when the view was shown for the second time. 

I suspect the answer is to re-apply the styling to the content containers, but since I've only been coding JS and Kendo UI for 3 days, I don't yet know how to do this. 

Pics of what I mean are available here:
https://plus.google.com/photos/109011173406009278052/albums/5847214628087409777?authkey=CP30nZmapuDRuwE

I'd love to know how to fix this problem.
John
Top achievements
Rank 1
 answered on 23 Feb 2013
1 answer
384 views
Hi Kendo Mastah,

How can I achieve that? Here is my code that doesn't work :(
It aims to trigger the right arrow key event by pressing the enter key while an item is active.

$(document).keyup(function (e) {
if (e.which == 13) {
	var press = $.Event("keypress");
   	press.ctrlKey = false;
        press.which = 39;
        $("#SourceColumnsMenu_mn_active").trigger(press);
}
});

Thanks!
Dimiter Madjarov
Telerik team
 answered on 22 Feb 2013
1 answer
89 views
Hi!

I'm sorry for my bad english.

I have a problem with grid's components, when the grid is in edit mode don't show kendo's components but a asp.Net MVC components.

ViewModel:
    public class ProjetoViewModel
    {
        public int IdProjeto { get; set; }
        [DisplayName("CodigoProjeto")]
        public string CodigoProjeto { get; set; }
        [DisplayName("Nome")]
        [DataType(DataType.Text)]
        public string Nome { get; set; }
        [DisplayName("AnoInicial")]
        [DataType("Integer")]
        [Range(0, int.MaxValue)]
        public int AnoInicial { get; set; }
    }

Grid:
@(Html.Kendo().Grid<DemurrageWeb_ViewModel.Sistema.ProjetoViewModel>()
        .Name("GridProjeto")
        .Columns(columns =>
        {
            columns.Command(command =>
            {
                command.Destroy().HtmlAttributes(new { @title = @DemurrageWeb_Resource.Util.Button.Excluir });
                command.Edit().HtmlAttributes(new { @title = @DemurrageWeb_Resource.Util.Button.Alterar });
            }).Width(111).HtmlAttributes(new { @class = "Icon" });
            columns.Bound(p => p.IdProjeto).Hidden(true);
            columns.Bound(p => p.Nome).Width("50%");
            columns.Bound(p => p.CodigoProjeto).Width("30%");
            columns.Bound(p => p.AnoInicial).Width("20%");
        })
        .ToolBar(toolbar =>
        {
            toolbar.Create().Text("").HtmlAttributes(new { @class = "Icon icAdd", @title = @DemurrageWeb_Resource.Util.Button.Inserir });
        })
        .Editable(editable => editable.Mode(GridEditMode.PopUp))
        .Pageable(pg =>
        {
            pg.Refresh(true);
            pg.PageSizes(new[] { 10, 20, 30 });
            pg.Input(true); pg.Numeric(false);
        })
        .Sortable()
        .Scrollable(s => s.Enabled(true).Height("100%"))
        .DataSource(dataSource => dataSource
            .Ajax()
            .Events(events => events.Error("error_handler"))
            .Model(model => model.Id(p => p.IdProjeto))
            .Batch(true)
            .Read("Projeto_Read", "SProjeto")
            .Create("Projeto_Create", "SProjeto")
            .Update("Projeto_Update", "SProjeto")
            .Destroy("Projeto_Destroy", "SProjeto")
            .ServerOperation(false)
        )
    )

I'm with 2012 Q3 version of kendo UI.





Marcos
Top achievements
Rank 1
 answered on 22 Feb 2013
1 answer
169 views
Hi I have a checkbox column in a grid , and i need to update the records based on the check box selected.
Remaining columns in the grid are read only

My question here is when I check and followed by uncheck for a particular row , that row is still in edit state , since i am not doing the reverse of "Set". How do i take out that row from saving?

                   $('.check_row').live('click', function (e) {

                        var topDeviceRoleCode = $("#ddlHeaderDeviceRoleCode").data("kendoDropDownList").value();
                        //alert(topDeviceRoleCode);

                        var grid = $("#DeviceDetailsGrid").data("kendoGrid");

                        var models = [];

                        //find the selected models
                        grid.tbody
                                        .find(":checked")
                                        .closest("tr")
                                        .each(function () {
                                            models.push(grid.dataItem(this));
                                        });

                        //update the models value
                        for (var i = 0, length = models.length; i < length; i++) {
                            models[i].set("DeviceRole", topDeviceRoleCode);
                        }

                    });

Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Feb 2013
3 answers
125 views
Unfortunately I seem not able to get this to work in a jsbin/jsfiddle example, but I have video demonstrating strange behaviour when I open a detailscreen from a listview with endless scroll and and then go back from the detailscreen to the listview. All items seem to be gone, but disappear when i slide my finger over the screen.

Here is a video demonstrating the problem: https://www.dropbox.com/s/8jtuvprfn9ooaex/demo.mp4



Ivan Ivanov
Telerik team
 answered on 22 Feb 2013
1 answer
167 views
Hello,

 I'm trying to build small application with kendo mobile. I have list and want to put icon for every item but if this list is in template icons don't show

 <div data-role="view" data-title="" id="side-root">
   <ul data-role="listview" data-style="inset" data-source="splitViewCategories" data-template="categoriesTemplate">
   </ul>
 </div>
 <script id="categoriesTemplate" type="text/x-kendo-template">
   <a data-icon="about" href=">Category</a>
 </script>
If I use ready list like this

<ul data-role="listview" data-style="inset">
 <li data-icon="about"><a>about</a></li>
 <li data-icon="action"><a>action</a></li>
 <li data-icon="add"><a>add</a></li>                    
</ul>
I can see icons

Thanks,
Mariyana
Alexander Valchev
Telerik team
 answered on 22 Feb 2013
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?