Telerik Forums
Kendo UI for jQuery Forum
1 answer
103 views
When Batch Editing is enabled on the Grid and you destroy a record, a record from the next page doesn't fill in the empty spot on the bottom of the grid. Instead, the number of rows in the Grid decreases.

Here is an example http://dojo.telerik.com/UQunU
Ideally, when a record is destroyed, the height of the Grid shouldn't change. It should borrow a record from the next page to place there.
Alexander Popov
Telerik team
 answered on 27 Oct 2014
3 answers
263 views
Hi Every,

How can I override ' Role ' attribute in Kendo UI controls:

<%= Html.Kendo().Button()
    .Name("iconTextButton")       
    .Tag("a")
    .SpriteCssClass("k-icon k-i-ungroup")
     .HtmlAttributes(new {@Role="buttonwww"})
    .Content("Icon and text")%>

In the above role attribute is not override.

Regards,
Rajendar.
Dimiter Madjarov
Telerik team
 answered on 27 Oct 2014
2 answers
122 views
Hello,

When my Scheduler loads i have a Event id from database. So i get Event start date and load the day as current day of Scheduler. I also want to Pop up the edit window with data populated from this Event. So in databound Event i call editEvent with Event id but it will not Show any Pop up window.

this.editEvent(id);

I think this database id is not same as Event.uid , so my question is how do i find the Event.uid and bring the edit Pop up window with correct data populated?

Anamika
Anamika
Top achievements
Rank 1
 answered on 27 Oct 2014
2 answers
659 views
Hi folks, first time post, had to happen eventually...

I'm using to TreeView to represent a hierarchy of user levels, and have enabled checkboxes and drag&drop. I also have two buttons, Add User and Modify User. If no user is selected, Add User button is enabled and Modify User button is disabled. Inversely, if a user is selected, Modify User is enabled and Add User is disabled.

In the code I have a little jQuery:

function onCheck(e) {
    $('#checkTreeview').change(function(){
        var c = this.checked ? 'disabled' : false;
        var d = this.checked ? false : 'disabled';
        $('#addUserButton').attr('disabled', c );
        $('#modifyUserButton').attr('disabled', d );
    });
    kendoConsole.log("Checkbox changed: " + this.text(e.node));
}


Two things, and I realize this may not be the way to approach, since, after all, it IS failing miserably, despite it being a Friday...

1) For the first item in the treeview, after the first two clicks (check box, uncheck box) it then begins to toggle the buttons appropriately. However, it logs the change to the console consistently, every time.

2) The toggle only works for the first checkbox, and no others;

Clearly, this is the wrong way to approach this, so, in summation, how do I implement this functionality correctly with the treeview?
jeff
Top achievements
Rank 1
 answered on 24 Oct 2014
3 answers
139 views
I have a dropdownlist on a page and have another control that is displaying an image on the page as well.  The second control uses jquery-ui, but when I include this in the cshtml file, the dropdownlist no longer drops down.  It still displays but if I click on it nothing happens.  I can navigate the contents of the list using my keyboard but the mouse does not do anything to the list.

James Carpenter
Matthew
Top achievements
Rank 1
 answered on 24 Oct 2014
2 answers
1.4K+ views
I have created a kendo grid that reads from a url with json data. Here is the code and it works ok

$('#grid').kendoGrid({
dataSource: {
transport: {
read: {
url: "http://localhost/CoreProcess/proceso/getusers",
dataType: "json",
cache: false
},
update: {
url: "http://localhost/CoreProcess/usuario/uptdate",
dataType: "json"
},
destroy: {
url: "http://localhost/CoreProcess/usuario/delete",
dataType: "json"
}
},
pageSize: 10
},
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5
},
editable: "inline",
columns: [{ title: "Nombre", field: "NOMBRE" },
{ title: "Apellidos", field: "APELLIDOS"},
{ title: "Email", field: "EMAIL"},
{ command: ["edit", "destroy"], title: "Acciones"}],
});

Now in the same page i have a little form that inserts new data to the database through an ajax call to a php method (im working with yii framework)

$.ajax({
type: "POST",
url: "http://localhost/CoreProcess/proceso/agregarparticipantes/uuid/" + uuid,
data:
{
post_participante: participante,
post_apellidos: apellidos,
post_email: email,
},
success: function(result)
{
$('#grid').data('kendoGrid').dataSource.read();
}
});

The creation of a new record in the database also works fine but the problem is that after that i want to reload the grid with the new information, perhaps reading again the json url that i should have changed. I have tried a lot of things like

$('#grid').data('kendoGrid').dataSource.read();
$('#grid').data('kendoGrid').dataSource.refresh();

But nothing, i am noob with kendo...anyone could help me? thanks all
Antonio
Top achievements
Rank 1
 answered on 24 Oct 2014
8 answers
684 views
Hi,

I'm using kendo grid in angularjs and it works great so far. There is only one limitation that I've found: the grid does not show the progress loading when binding the first time to a remote service.

I'm initializing the DataSource form a controller and assigning it to a $scope variable, then binding the variable to k-data-source attribute in the HTML.

The only way I found to achieve that behavior is to do something dirty during the datasource initialization, like:

                        requestStart: function (e) {
                            kendo.ui.progress($('[kendo-grid]'), true);
                        },
                        requestEnd: function (e) {
                            kendo.ui.progress($('[kendo-grid]'), false);
                        }

Do you have any suggestion?

Thanks,
Enrico
Enrico
Top achievements
Rank 1
 answered on 24 Oct 2014
5 answers
975 views
Looking through the API I am unable to find a way to change the minimum or maximum values of the slider after creation.  What is the best way to accomplish this (I need the maximum to be different depending on what item the user has selected)?
Petur Subev
Telerik team
 answered on 24 Oct 2014
1 answer
148 views
See http://dojo.telerik.com/izAW

If smallStep is 2 or greater, the slider looks good (no numbers as I expect). But when the smallStep is 1, then it looks corrupted.

Thanks,
Ryan

Hristo Germanov
Telerik team
 answered on 24 Oct 2014
1 answer
201 views
Having problem with dirty flag when using virtual scrolling. Here is dojo sample http://dojo.telerik.com/@ssharifi/IzeQ
Change few columns on the first page and you'll see the dirty indicators show as expected. Then scroll down few rows and scroll up, the dirty indicators are still there. next scroll down more than 100 records (page size) and scroll back up. This time the dirty indicator is gone. The change values are still there.

Is this a bug? Is there any way to fix this? I am trying to use virtual scrolling and allow the user to change any number of rows then when they are ready use a save command to save the changed rows.
Kiril Nikolov
Telerik team
 answered on 24 Oct 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?