Telerik Forums
Kendo UI for jQuery Forum
1 answer
638 views
Hi I'm just doing a simple task which is trying to get the selected row. I followed all the code stated in the demo site of the grid but unfortunately firebug is giving me an error saying that "this.select()" is not a method.

Here is the event for my grid.
>>>
.Events(events => events.Change(@<text> function(e){ OnChanged(e); } </text>))

And here is the script
>>>
    function OnChanged(e) {
        var selected = $.map(this.select(), function (item) {
            return $(item).text();
        });

As you can see I've used the @<text> in Change event because if I only specify the function name as string like this one
Events(events => events.Change("OnChanged") 

Firebug is complaining that Onchanged can't be found.


David Beck
Top achievements
Rank 1
 answered on 12 Nov 2012
0 answers
121 views
Ok, so I was reading this example on the kendo ui blog.
http://www.kendoui.com/blogs/teamblog/posts/12-10-09/how_it_s_made_the_stock_history_demo.aspx

Looking through the source, I a set of two stylesheets referenced.
<link href="examples.css" rel="stylesheet" />
<link href="styles.css" rel="stylesheet" />
I thought we could change the theme by changing one of the standard stylesheets such as
kendo.default.min.css

changed, to this
kendo.black.min.css

However, that doesn't seem to make any difference.  Are those two other stylesheets done with themebuilder?


AilWeb
Top achievements
Rank 1
 asked on 12 Nov 2012
7 answers
545 views
Does anyone have an example or css specifiers for making the TreeView show treelines ?

Something to do with k-first, k-in, k-last perhaps

Thanks
Richard
Richard Hyde
Top achievements
Rank 1
 answered on 12 Nov 2012
0 answers
186 views
$("#grid").kendoGrid({
                       columns: [ {
                                field: "FirstName",
                                width: 90,
                                title: "First Name"
                            } , {
                                field: "LastName",
                                width: 90,
                                title: "Last Name"
                            } , {
                                width: 100,
                                field: "City"
                            } , {
                                field: "Title"
                            } , {
                                field: "phone",
                                title: "Phone Number",
                                template: '<input type=text name='phone' value=#phone# />'
                            } , {
                                width: 50,
                                field: "Age"
                            }
                        ]
                    });
Rama
Top achievements
Rank 1
 asked on 12 Nov 2012
2 answers
1.3K+ views
I need to programmatically deselect rows in a grid. I have not seen any API method for this. select() will return all rows, and select(<obj>) will select one item.

My issue is that I have 10 out of 50 selected, but now the user has done something and I need one of the 10 deselected (but the rest to remain selected).

I thought I had a brainstorm and that I could use jquery to trigger a CNTRL-CLICK:

var e = jQuery.Event("click");
e.ctrlKey = true;
$(this.gridRow).trigger(e);
Where this.gridRow refers the the DOM object which is the row in the grid (i.e. <TR> )which is currently selected. I have verified in FireBug that the value of tthis.gridRow is actually the <TR> row in the kendo Grid, and that it is currently selected. (see screen shot)

See attached screen shot which shows that firebug reporting that the this.grid is indeed a tr, and it has a click handler.
Dr.YSG
Top achievements
Rank 2
 answered on 12 Nov 2012
0 answers
60 views
 On adding below mentioned attributes on kendo grid, loading of grid is becoming slower.

 
pageable:
true,

filterable: true,

columnMenu : true,

sortable : true,

selectable: 'row',

height: 250,

scrollable :false

Sanat
Top achievements
Rank 1
 asked on 12 Nov 2012
12 answers
418 views
I see that most of the .js API doesn't have docs. Will this be better later (since we're not getting the uncompressed source)?
Robert
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
117 views
I have a grid with two columns that are nullable in the database.  They are returning empty strings when bound to the grid.  I've found some interesting behavior when I play with the filters.  If I use the "Starts with" filter, I get the expect number of rows back.  However, if I use the "Ends with" filter, I get the expected number of rows plus all of the rows that have no value for that field.  Is this expected behavior?  If so, it is extremely inconsistent and not really in line with user expectations.  Is there a way to get only the rows that actually end with the expected value back?

Thanks,
Jodi
Petur Subev
Telerik team
 answered on 12 Nov 2012
4 answers
1.0K+ views

I have been unable to initialize the drag and drop feature for file upload on any of my browsers.  I am currently testing on Chrome 19.0.1084.56 m.  Is there an undocumented configuration parameter I am missing which will initialize this feature?  

Here is my code, please let me know if you see anything I have configured improperly.

HTML:

<div class="fileUploadContentArea">
<input name="file" id="kendoFileUpload" type="file" />
</div>

JS:

 $("#kendoFileUpload").kendoUpload({
  multiple: true,
        select: context.onFileSelected,
async: {
saveUrl: THX.WS.config.baseUrl + THX.WS.config.wsId + '/files',                        
autoUpload: true
},
upload: context.kendoFileUploaderDrop,
success: context.kendoFileUploaderDone,
error: context.kendoFileUploaderError,
showFileList : false,
localization : {
select : libraryAssetsLocalizedStrings.mainUploadSelectLabel,
dropFilesHere : libraryAssetsLocalizedStrings.mainUploadDragDropLabel
}
});
Devi
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
119 views
Hi,

Below is my code and i am trying to pass model inside array but i am always getting null value even there is data, can anyone help me how to pass model inside array.

------Partial view----
@(Html.Kendo().Chart<DashboardRepairMaintenance>()
        .Name("chart3")
        .Title("Repair and maintenance status")
        .HtmlAttributes(new { style = "width: 550px; height: 170px; border: transparent; margin-left:5px; " })  
        .DataSource(dataSource => dataSource
        .Read(read => read.Action("_DashboardRepairMaintenance", "DashboardRepairMaintenance"))
        )
         .Series(series =>
                {
                    series
 .Column(new int[] {(int)Model.FirstOrDefault().ACTIVE , (int)Model.FirstOrDefault().PENDING ,(int)Model.FirstOrDefault().CARFWD }
)
         .Name("Active").Stack("Active");
             

                })
                .CategoryAxis(axis => axis
                    .Categories(model => model.DAYS)
                )
                .ValueAxis(axis => axis.Numeric()
                    .Labels(labels => labels.Format("{0:N0}"))
                    .MajorUnit(2)
                     
                )
                .Tooltip(tooltip => tooltip
                    .Visible(true)
                    .Format("{0:N0}")
                )
            ) 


------Controller---------------

  public ActionResult _DashboardRepairMaintenance()
        {
           return Json(_dashboardRepository.GetRepairMaintenance());
        }

--------Model class-------
 public class DashboardRepairMaintenance
    {
        public string DAYS { get; set; }
        public int? ACTIVE { get; set; }
        public int? PENDING { get; set; }
        public int? CARFWD { get; set; }
    }

Daniel
Telerik team
 answered on 12 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
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?