Telerik Forums
Kendo UI for jQuery Forum
2 answers
922 views
When placed in a line, there's a noticeable difference in the vertical alignment of the dropdown list and date/time pickers when compared to text-boxes.(please see the attached file)

I suspect this can be fixed by changing the height or padding of the text box which appear to be slightly too bulky.

How can I resolve this?
Vivek
Top achievements
Rank 1
 answered on 10 Feb 2012
0 answers
100 views
On day two of playing around with Kendo.  So far, having a lot of fun, seem's that once I learn all the little tricks it could make development very fast.

Anyway, a query or suggestion.  I am retrieving a slew of <input class="drop-selector> (which exist as a column in a grid[created via a column template]) using $(".drop-selector) and calling kendoDropDownList to turn this into a list. (doing this on the dataBound event of the grid)

Then i'm currently having to iterate through this result(.each) and set the initial drop-down index.  I can't help but think there should be an easier way.

One thing that came to mind was wouldn't it be nice to set an attribute in the initial input node(ie... <input index="2">) and have Kendo automatically set that if the index option wasn't specified in the kendoDropDownList constructor.

Anyway, feel free to correct me if there is an easier way to do what I want!

Justin
Justin
Top achievements
Rank 1
 asked on 09 Feb 2012
2 answers
146 views
Just wondering why you built this site in ASP.NET and not KendoUI?

Thanks
santen
Top achievements
Rank 1
 answered on 09 Feb 2012
9 answers
2.6K+ views
Hi,

I have a Kendo grid where I get the data from the server using jquery's ajax call. On success, the response(JSON data) that is received is stored in a variable and set as the datasource of the grid. Grid works fine. But, in pagination(client side only), when the last page is clicked, it gives error...
Like, suppose i have the fields as, "period", "Doctype", "Status". Then it gives error, "cant find the variable : period". I added the "total" count using GridData.length (GridData is the variable where the json data for the grid from server is stored). It resolved the problem. But now, when i reload the grid, how can i set "total" again? I tried something like this:

 var grid = $("#gridDiv").data("kendoGrid");
 var new_data = getNewData();
 grid.dataSource.add(new_data);
 grid.dataSource.total(new_data.length);
 $("#gridDiv").data("kendoGrid").dataSource.read();
But, this does not work. It again gives the same error on click of the last page. Any suggestions?
Rosen
Telerik team
 answered on 09 Feb 2012
5 answers
383 views
Is it possible to use the grids hierachy feature when using a row template as I have not been able to get it to work.

I have specifed the option detailInit that defines a function handler for building the detail grid and I have tried adding the expand/contract icon to the row template

<script id="template" type="text/x-kendo-tmpl">
    <tr class="k-master-row">
        <td class="k-hierarchy-cell"><a href="#" class="k-icon k-plus"></a></td>
        <td>Some text</td>
    </tr>
</script>

When I click on the expan/contract icon it toggles between open and closed but does not call the function I have specified for creating the detail grid and I get the JavaScript error "data is undefined".

Show this scenario work and if it should any ideas what I am doing wrong?


Rosen
Telerik team
 answered on 09 Feb 2012
1 answer
277 views
I was having a grid where there is a need to edit and delete rows.

Thankful for Kendo UI i got every configuration perfectly working for both update and delete operations. Yet both operations sync the data through the transport when i click on the save changes button on the toolbar. What i wanted was to do the sync when a delete button is clicked after the confirmation has displayed and the user made the decision to delete the row.

I have experimented with the remove event of the grid yet i discovered  that what ever code is put in that block it will be executed before the row is removed from the grid.

Any way that i can sync the datasource after a row is removed from a grid without having to click on the save changes button on the tool bar?

Regards, Mekbib A.

Mekdelawit
Top achievements
Rank 1
 answered on 09 Feb 2012
1 answer
444 views
***Edit - attached a full example that reproduces the problem shown in my attached screenshot. Tested under IE 9 and Firefox 10.0 - both are missing the zero Y-Axis value.... not sure why.

See attached image. For some reason the Y-axis is not including zero, but rather starts at the lowest value contained in my JSON file.

JSON data:
[
    {
        "CategoryText" : "Previous",
        "SeriesValue" : 321131.5225
    },
    {
        "CategoryText" : "Current",
        "SeriesValue" : 300059.4610
    }
]

This is my chart function that I re-use over and over, passing in a different DIV each time:
var DELAY = 400;

function
createGenericBarChart(ChartName, JsonPath, ChartType, Title, LegendVisible, LegendPosition, CategoryLabelRotation, ValueLabelRotation, Stacked, SeriesLabelsVisible,
SeriesLabelsFormat, ToolTipLabelFormat, CategoryAxisField, BarSeriesDefinition, Maximized) {
    $(ChartName).kendoChart({
        dataSource: {
            transport: {
                read: {
                    url: JsonPath,
                    dataType: "json"
                }
            }
        },
        title: {
            text: Title,
            font: '14px Arial'
        },
        legend: {
            position: LegendPosition,
            visible: LegendVisible,
            font: '8px Arial'
        },
        seriesDefaults: {
            type: ChartType,
            stack: Stacked,
            labels: {
                visible: SeriesLabelsVisible,
                position: "outsideEnd",
                format: SeriesLabelsFormat,
                font: '10px Arial'
            }
        },
        series: BarSeriesDefinition,
        valueAxis: {
            labels: {
                visible: true,
                rotation: ValueLabelRotation,
                font: '10px Arial'
            }
        },
        categoryAxis: {
            field: CategoryAxisField,
            labels: {
                rotation: CategoryLabelRotation,
                font: '10px Arial'
            }
        },
        tooltip: {
            visible: true,
            font: '12px Arial'
        }
    });
}


Here is the HTML /script thats used to call the above function, passing in the arguments:
<div id="dshitem1_1_divChart" class="Chart" style="z-index:8999;">1</div>
    <script>function DashboardCaller1(chartid, maximized) {
var BarSeries = [{
    field: "SeriesValue",
    name: "SeriesValue"
}];
 
createGenericBarChart(chartid, '2626_1_Bar - Airline Contract AC -SUN_.json?id=59bd4fee-511f-480b-bbee-88c3051b800d', 'column', 'Bar - Airline Contract AC -SUN', false, 'top', -45, 0, false, false,
'{0:N2}', '{0:N2}', 'CategoryText', BarSeries, maximized);
}
 
setTimeout(function() {
DashboardCaller1('#dshitem1_1_divChart', false);
}, 1 * DELAY);
 
</script>
 
</div>
Alexander Valchev
Telerik team
 answered on 09 Feb 2012
3 answers
135 views
Hello,

When grouping by one or more columns, is it possible to automatically remove those columns from the grid details?

Thanks,
Gary
Rosen
Telerik team
 answered on 09 Feb 2012
0 answers
125 views
Hi all, 

Is it possible to add combobox or autocomplete in grid on edit mode?

Anyone have workaround on this? It would greatly help me ..

Thank you.
Greffin
Top achievements
Rank 1
 asked on 09 Feb 2012
7 answers
94 views
I am initializing the slider through javascript object as below:
########################################################################################
<span id="range_display_price_footer"></span>)
<div id="slider_price_footer" class="slider"><input /><input /></div>
<script>
var obj_slider = {
slObj: [],
slider_initialise: function(type,min_val,max_val,small_step_val,large_step_val,tick_placement){
//alert(small_step_val);
var temp_obj = "fixed_"+type;
temp_obj = $("#"+type).kendoRangeSlider(
{
min: min_val,
max: max_val,
selectionStart: min_val,
selectionEnd: max_val,
                        smallStep: small_step_val,
largeStep: large_step_val,
tickPlacement: tick_placement,
tooltip:false,
enabled: true,
slide: this.sliderOnSlide,
change:this.sliderOnChange
}).data("kendoRangeSlider");
obj_slider.slObj[type] = temp_obj;

},
sliderOnSlide: function(e){
var slider_id = document.getElementById('range_display_price_footer');
slider_id.innerHTML = e.values.toString().replace(",", " - ");
},
sliderOnChange: function(e){
alert(obj_slider.slObj['slider_estimated_val_footer'].values());
}
};
obj_slider.slider_initialise('slider_price_footer',100,10000000,10000,10000,'both');
</script>
##############################################################################################
if i call slider_initialise function with min=0 and max=1000000
BUT if change the min value other than zero like 100 as shown in code above, both of the slider handler (knob) shrink together on the left side.

Please help me how do i fix this.
Thank you!
Hristo Germanov
Telerik team
 answered on 09 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?