Telerik Forums
Kendo UI for jQuery Forum
0 answers
245 views
var dd = elem.kendoDropDownList({
                            dataTextField: "Name",
                            dataValueField: "ID",
                            value: attr.value,
                            select: function(e) {
                                var item = this.dataItem(e.item.index());
                                console.log(item.value); // UNDEFINED
                            },
                            dataSource: source
                        }).data("kendoDropDownList");
Andrej
Top achievements
Rank 1
 asked on 20 Nov 2012
6 answers
134 views
I have an issue with a Kendo UI scroller. I have posted it at the Kendo forums here :http://www.kendoui.com/forums/mobile/general-discussions/issue-with-scroller-in-android.aspx

Looking forward to some guidance!
Jan-Dirk
Top achievements
Rank 1
 answered on 20 Nov 2012
2 answers
216 views
Hi, i have a problem with the grid,
we need hide command with a condition and block to edition cell with same condition.

my cod of command

{ command: {text: "Guardar", click: change }, title: "Guardar"}

function change

function change(){
    
var concepto = "";
var saldo = "";
var venta = "";
var oper = "";
var prepago = "";
var castigo = "";
var utilidad = "";
var grid = this;
 
 
grid.select().each(function(){
var dtim = grid.dataItem($(this));
concepto += ""+dtim.concepto;
saldo += ""+dtim.saldo;
venta += ""+dtim.venta;
oper += ""+dtim.oper;
prepago += ""+dtim.prepago;
castigo += ""+dtim.castigo;
utilidad += ""+dtim.utilidad;
});
}
how hide and block for edition cell when concepto == 'Total'


Help me please!


Alexander Valchev
Telerik team
 answered on 20 Nov 2012
1 answer
175 views
@(Html.Kendo().Grid(Model).Name("gridName")
.Columns(columns =>
      {
          columns.Bound(o => o.Name);
          columns.Bound(o => o.Surname);
          columns.Bound(o => o.Timespan);
      }).DataSource(d=>d.Ajax().Model(m=>m.Id("Name")).ServerOperation(false))
      .Filterable().ColumnMenu().Sortable()
      )

The code above makes my grid to sort and filter without GET request to server, but it loads content twice - first becuease of ...Grid(Model)... and secondly beacause of ....DataSource(d=>d.Ajax().Model(... and column with Timespan shows [object Object] after 'second' load. How to correct it?
Atanu
Top achievements
Rank 1
 answered on 20 Nov 2012
0 answers
199 views
I had this working at one point for a 3.5 application. I am not trying it on an asp.net mvc 4.0 application. It is using bundles. The problem I had before was that either my .css or my .jss files had to be in a particular order. I'm not positive if it is the order or if I'm missing something.

In my _layout.cshtml I have:
 @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/kendo")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/kendo")

in BundlesConfig.cs I have:
bundles.Add(new StyleBundle("~/Content/css").Include(
                    "~/Content/site.css"));

 bundles.Add(new StyleBundle("~/Content/kendo").Include(
                    "~/Content/kendo/2012.3.1114/kendo.common.*",
                    "~/Content/kendo/2012.3.1114/kendo.black.*",
                    "~/Content/kendo/2012.3.1114/kendo.dataviz.*"));

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.8.2.js"));

 bundles.Add(new StyleBundle("~/Content/kendo").Include(
                    "~/Content/kendo/2012.3.1114/kendo.common.*",
                    "~/Content/kendo/2012.3.1114/kendo.black.*",
                    "~/Content/kendo/2012.3.1114/kendo.dataviz.*"));


Thanks
Dennis
Dennis
Top achievements
Rank 1
 asked on 19 Nov 2012
0 answers
107 views
It looks like the search pattern in the "contains" logic searches something along the line of %some value%

Is there any way I can get to search by %some%value% without having to implement a custom filter?

I have a working example of the custom filter but I just want to be sure that there isn't some way this can be done that is already in the grid filter. I have several grid columns that will need this logic.

Thanks!
David
Top achievements
Rank 1
 asked on 19 Nov 2012
0 answers
160 views
I am finding that, no matter what I set the Step value to, pressing the up and down arrow keys adds or subtracts exactly double the step value (clicking on the spinners respects the step setting). Is this by design?
Mark
Top achievements
Rank 1
 asked on 19 Nov 2012
0 answers
128 views
My controls are widgets, so if I define my template in the markup it appears twice on the page...

Is there a way with the MVVM that I can move the template out to my JS and still bind it?...like a data-bind="template: markup, source: data" or something?

Steve
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 19 Nov 2012
0 answers
97 views
When i change the url of a tab on my tabstrip the document.ready code for that page does not get called, how can i ensure that it does? 
Andrew
Top achievements
Rank 1
 asked on 19 Nov 2012
4 answers
530 views
Hello,
I'm using the MVC method for my AutoComplete. I'm able to connect to the data source and bring back a list, however, I would like to send what the user is typing to the action in order to filter on the server instead of bringing back all 4000 results and filtering on the client. I cannot seem to figure out either how to add it to the request, or to pick it up in the controller. My helper looks like this:
@(Html.Kendo().AutoCompleteFor(x => x.Distribution)
                    .DataTextField("label")
                    .DataSource(source => {
                        source.Read(read => {
                            read.Url("/EmployeeSearch");
                        });
                        source.ServerFiltering(true);
                    })
                    .Filter("contains")
                    .Suggest(true)
                    .MinLength(3)
                    .Separator("; ")
                )

I can see from the post that filter[filters][0][value]textbeingtyped
is sent in the request, but I can't figure out how to pick that up in the Controller.

Thanks for any help you can provide.
Jon
Top achievements
Rank 1
 answered on 19 Nov 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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?