Telerik Forums
Kendo UI for jQuery Forum
0 answers
145 views
Hi, (and sorry for my bad english)

I
encountered an error when filtering when the property extra = false. In this case does not filter properly.

an example:
$("#grid").kendoGrid({
dataSource : dataSource,
selectable : "row",
pageable : true,
sortable : {
mode : "multiple",
allowUnsort : true
},
height : 600,
rowTemplate : kendo.template($("#rowTemplate").html()),
altRowTemplate : kendo.template($("#rowTemplateAlt").html()),
filterable : true,
columns : [{
width : "100px",
title : "Foto",
field : "foto",
filterable : false
}, {
title : "Nombre",
field : "nombre",
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contiene"
}
}
}
}, {
title : "Apellidos",
field : "apellidos",
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contiene"
}
}
}
}, {
title : "Edad",
field : "edad",
filterable : true,
filterable: {
extra: true, //show extra filters
operators: { // redefine the string operators
number: {
lt: "menor de",
gt: "mayor de"
}
}
}
}, {
title : "Idioma",
field : "idioma",
filterable : true,
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contiene"
}
}
}
}, {
title : "Categorias",
field : "categorias",
filterable : true,
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contiene"
}
}
}
}, {
title : "Telefono",
field : "telmovil",
filterable : true,
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contiene"
}
}
}
}, {
title : "Acciones",
filterable : false
}]
})

debugging, I realized that in kendo.data.js, the property expressions.filters[1].value id undefined.
and I have solved the problem by adding these lines of code in filter function, just after  if (!expressions || expressions.filters.length === 0) {return this;  }
if ( expressions.filters.length == 2){
                if ( expressions.filters[1].value == "undefined" ){
                    expressions.filters.pop();
                }
            }









Tirso
Top achievements
Rank 1
 asked on 17 Feb 2012
0 answers
52 views
Please help

I m getting problem with kendo window ajax in chrome.... the content does not appear in chrome only
Varsha
Top achievements
Rank 1
 asked on 17 Feb 2012
1 answer
171 views
Hi,
I there a way I can remove a complete panel from the splitter, without rebuilding the page? ex:
<div id="container">
   <div id="top"></div>
   <div id="middle"></div>
   <div id="bottom"></div>
</div>
<a id="remove">remove bottom panel</a>


and then I would like to do:
$(document).ready(function(){
  $('#container').kendoSplitter({
      orientation: 'vertical',
      panes: [{},{},{}]
  });
 
  $('a#remove').click(function(e){
     e.preventDefault();
     $('#container').data('kendoSplitter').removePanel('#bottom');
   });
});
And end with just 2 panes in my splitter.

Is it somehow possible?
Alex Gyoshev
Telerik team
 answered on 17 Feb 2012
1 answer
354 views
There seems to be a weird problem with the window widget in that when you include a grid within window it pins the window to the right side of the browser (I.E. 9) window.   If you try to drag the window around, the left side expands and contracts, but the right is always pinned.  

However, if you resize the window frame, it then releases it and it can be moved around.   I think this has something to do with the grid trying to go to 100% of the container, but it is messing with the window container itself.

Is this a bug or is there something I should be doing when I instantiate the window/grid?
Alex Gyoshev
Telerik team
 answered on 17 Feb 2012
1 answer
138 views
I can get the grid working with master detail, but when i post a row create to my json endpoint the primary key of the row doesn't get updated in the grid and the opening of the detail view fails. I expect a refresh of the data after the creation of the row to get the primary key, or does the transport create endpoint somehow has to return the primary key?

Thanx
Andre Broers
Top achievements
Rank 1
 answered on 17 Feb 2012
1 answer
140 views
Hi there,

this is a strange one and took me a while to troubleshoot, but basically, if you have jQuery UI included in your website and you try to use Kendo UI charts, if you try and load the page but switch to another tab, when you come back to the tab with the chart on it, the chart's animation either a) doesn't work at all or b) only partially works or c) actually works (rarely). If you keep the tab in focus, the animation plays out perfectly.

Here's an example I set up which exhibits this behaviour in both FF and Chrome: http://jsfiddle.net/mdvxG/

To replicate, hit the "run" button and quickly switch tabs, then after a couple of seconds, switch back. Most of the time, you'll observe that the chart has not played out its animation successfully. Compare with just hitting the "run" button without switching tabs.
T. Tsonev
Telerik team
 answered on 17 Feb 2012
8 answers
340 views
I have recreated this event using an extremely simple setup.

A Picture is worth a thousand words

See picture above.

  1. Create FolderA and FolderB
  2. Put Parent page in FolderA
  3. Put Modal Window page in FolderB
  4. Evoke a modal window from FolderA - setting the content to a page in FolderB
  5. Perform a Post submit
404 error occurs saying FolderA\Child.aspx does not exist


Dimo
Telerik team
 answered on 17 Feb 2012
0 answers
147 views
Hi ,
   I am using 2 panes in my window , on one pane i have used tree view and add some nodes now i want to drag the list items from one pane to the main pane which is basically a workspace .
Can anyone help ??
Ruby
Top achievements
Rank 1
 asked on 17 Feb 2012
0 answers
91 views
I have a splitter pane with a scrollbar and I'm try to do a simple scroll to top with jQuery.
Here is the Javascript:
$('a[href=#top]').click(function () {
            $('html, body').animate({ scrollTop: 0 }, 'slow');
             return false;
});


Problem is, it doesn't work. Not matter if you give the ID of the pane or splitter itself, nothing works. Is there a simple fix for this or am I missing something?
Gabriel
Top achievements
Rank 1
 asked on 17 Feb 2012
3 answers
153 views
Hi, 

I am creating a grid using row templates with custom upload and download buttons for individual rows.These buttons are anchor links with their class set to k-button. I am attaching a click handler to these buttons using the jquery delegate function. My code runs fine in chrome but when I try it ie9 nothing happens when I click the buttons. The weird thing is if start developer tools (by pressing F12) everything starts running fine. Can anyone explain what may be causing this issue. I am using the jquery.js files provided with kendo.

Code excerpts for reference as shown below
<!-- HTML code -->
<table id="grid">     
    <thead>
        .....
    </thead>            
</table> 

<script id="rowTemplate" type="text/x-kendo-tmpl">
    <tr >
        ..
        <td>                        
            <a id="delete" class='k-button' data-event="delete"><span class='k-icon k-delete'>Delete</span></a>
            <a id="download" class='k-button' data-event="download"><span class='k-downloadicon'>Download</span></a>                                </td>
    </tr>
</script>

 <script type="text/javascript">

    $(function () {        
        $(document).ready(function () {
            
            var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        ...
                    },                    
                    destroy: {
                        ...
                    }
                },                
                ....
            });

            $("#grid").kendoGrid({
                dataSource: dataSource,                
                rowTemplate: kendo.template($("#rowTemplate").html()),
                ...
            });

            $(document).delegate(".k-button", "click", function (e) {
                var that = $(this),
                eventData = that.data("event");
                if (eventData != null) {
                    _clickHandlers[eventData](e);
                }
            });


            _clickHandlers = {


                "delete": function (event) {
                    console.log("delete");
                    ....
                },
                "download": function (event) {
                    console.log("download");
                    .....
                } 
            }

        });
    });
</script>


Joel
Top achievements
Rank 1
 answered on 16 Feb 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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?