Telerik Forums
Kendo UI for jQuery Forum
3 answers
300 views
Just updated to version 2012.1 322 and a grid has stopped sizing the height correctly in Firefox. It displays with only a height equivalent to one row, but it can still be scrolled. I've attached a screenshot, normally this should size to show 10 rows.

The grid in question has a detail template, but does not have an explicit template for the master rows. Here's my main setup script:

var dataSource = new kendo.data.DataSource({
    data: gblProductsData,
    schema:
    {
        model:
        {
            fields:
            {
                id: { type: 'string' },
                referencecode: { type: 'string' },
                description: { type: 'string' },
                category: { type: 'string' },
                unitofmeasureid: { type: 'string' },
                buffergroupid: { type: 'string' },
                defaultorderworkflowtypeid: { type: 'string' },
                isarchivedproduct: { type: 'boolean' }
            }
        }
    },
    pageSize: 10
});
 
//Reset grid
$('#divProductGrid').html('');
 
//Setup grid
gblDivProductGrid = $('#divProductGrid').kendoGrid({
    dataSource: dataSource,
    autoBind: true,
    height: 'auto',
    scrollable: true,
    filterable: true,
    sortable: true,
    groupable: false,
    pageable: true,
    toolbar: productGridToolbarTemplate,
    detailTemplate: productGridDetailTemplate,
    detailInit: InitialiseProductDetails,
    detailExpand: ProductDetailExpand,
    detailCollapse: ProductDetailCollapse,
    columns:
    [
        {
            field: 'referencecode',
            title: 'Reference Code'
        },
        {
            field: 'description',
            title: 'Description'
        },
        {
            field: 'category',
            title: 'Category',
            filterable: false
        },
        {
            field: 'unitofmeasureid',
            title: 'Unit Of Measure',
            filterable: false
        },
        {
            field: 'buffergroupid',
            title: 'Buffer Group',
            filterable: false
        }
    ]
});

Changing 'scrollable' to 'false' fixes this problem, though of course the grid won't resize horizontally when the window resizes. It all still works fine  in Chrome and IE.
Drew
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
118 views
I'm trying to have multiple value axes with CategoryAxis date type. See the following jsFiddle, and how the dates are not labeled on the x-axis: http://jsfiddle.net/gavinr/Q6ust/


Is this an issue with Kendo or am I doing something wrong?
Iliana Dyankova
Telerik team
 answered on 09 Oct 2012
0 answers
128 views
Hi,

I am using kendoui checkbox template treeview. When i am selecting the child node i am able to get the 
id of that child. Then how can i get the id of that parent and how can i delete the selected child node with that id.

Please provide me an example or sample

Thanks and Regards
Srinivas
srinivas
Top achievements
Rank 1
 asked on 09 Oct 2012
4 answers
317 views
Hi,

I am using kendo grid with paging.In my grid i have checkbox for selecting the grid row.
when i am using paging when I select a row in page 1 and after if go to page 3 and select a row and save the data to database.
The problem is when I select the page 3 row the page 1 row which is selected is not saved.
Even if I change the grid page to 1 the selected row is deselected automatically.
Is there any solution to solve the problem.

please help...

Regards,
Sam.
Sameer
Top achievements
Rank 1
 answered on 09 Oct 2012
4 answers
1.2K+ views
According to the documentation, the 'remove' event is called before a row is actually removed from a grid. I would however like to know once a row has been removed from the grid. Is this possible?

I have a hidden input that keeps the ids in a hidden input field, so that nothing gets modified until the user hits submit. I would like a way to update the input once the row has been removed (because the remove event fires BEFORE the row has been removed, I cannot trigger based on it).

Any suggestions?
Alexander Valchev
Telerik team
 answered on 09 Oct 2012
3 answers
253 views
Hi,
How can I make kendo donut chart element dynamically explode on mouse  hover?
A
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
212 views
hello,
i'am a newbie with kendoui and i like it so i have a problem with the defaultvalue when i add a new record.
i have two listview with new record button,  the second depends on the first.
When i select one item on the first listview , i filter  the second listview  like :

dataSourceEnseigne.filter({ field: "idSociete", operator: "eq", value: selected[0]});

this work fine but when click on the add button i have some problem:
$("#addEnseigne").click(function(e) { listViewEnseigne.add(); e.preventDefault(); });

I don't no how to reset the value defaultvalue dynamically

the symptom is :
if no record displayed ==> add operation fail
if one or more record displayed ==> add operation display edit template with value of the first item displayed (like edit function).

after more tests i see that  defaultvalue of field must be set to the filter value for this work fine.

What's the method ?
i try :
var data = dataSource1.view(),
      selected = $.map(this.select(), function(item) { return data[$(item).index()].idSociete; }); combosocietes.value(selected[0]);
dataSourceEnseigne.filter({ field: "idSociete", operator: "eq", value: selected[0]});                                                                          dataSourceEnseigne.options.schema.model.fields.idSociete.defaultValue=selected[0];(don't work)
 listViewEnseigne.dataSource.options.schema.model.fields.idSociete.defaultValue=selected[0]; (don't work)

can anyone help me
Thank's for your reply
Phil

Phil
Top achievements
Rank 1
 answered on 09 Oct 2012
0 answers
110 views
Hi, is it possible to disable individual option(s) in the kendoComboBox, in a similar way that a regular html selector uses:

<option value="" disabled="disabled">Select option:</option>

I'm not looking to disable the entire comboBox, just specific options. Thanks.
Terry82
Top achievements
Rank 1
 asked on 09 Oct 2012
0 answers
104 views
I downloaded and modified the KendoGridWebAPI sample project and modified the grid to have popup editing rather than batch in line.

The api controller (ValuesController) was designed to handle collections for the update and delete operations and so I regenerated a standard api controller against the Product entity to manage updates and deletes for a single Product

The update (PUT) no longer worked complaining of a null "id" parameter ...
public HttpResponseMessage PutProduct(int id, Product product)

After changing the function to ...
public HttpResponseMessage PutProduct(Product product)

and the parameterMap from ...
parameterMap: function (data, operation) {
                        if (operation != "read") {
                            return kendo.stringify(data.models);
                        }
                    }

to ...

parameterMap: function (data, operation) {
                        if (operation != "read") {
                            return kendo.stringify(data.models[0]);
                        }
                    }

things began to work as expected.

This doesn't really follow REST protocol but how do you do a standard REST update with the ID on the path?

update: {
    url: "api/values/5",
    type: "PUT",
    contentType: 'application/json;charset=utf-8' 
},

and what should the parameterMap look like?

Darryl
Top achievements
Rank 1
 asked on 09 Oct 2012
2 answers
541 views
Hello,

I am new to Kendo and MVC 3, I want to show the horizontal scroll bar to Kendo Grid, when my columns are binded thru autogenerate. Currently the scroll bar appears at the bottom of the screen for the whole page. but I wont only for the grid. could anyone suggest how to do that ?

Thanks in advance.

Regards,
Ravi. 
Ravi
Top achievements
Rank 1
 answered on 09 Oct 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?