Telerik Forums
Kendo UI for jQuery Forum
7 answers
988 views
please help
I used the date range demo in my code
but when I submit the form the date input is not in the input list
my code is:

<script type="text/javascript">
$().ready(function() {

	function startChange() {
		var startDate = start.value();

		if (startDate) {
			startDate = new Date(startDate);
			startDate.setDate(startDate.getDate() + 1);
			end.min(startDate);
		}
	}

	function endChange() {
		var endDate = end.value();

		if (endDate) {
			endDate = new Date(endDate);
			endDate.setDate(endDate.getDate() - 1);
			start.max(endDate);
		}
	}

	var start = $("#valid_from").width(200).kendoDatePicker({
		change: startChange,
		format: "dd-MM-yyyy"
	}).data("kendoDatePicker");

	var end = $("#valid_to").width(200).kendoDatePicker({
		change: endChange,
		format: "dd-MM-yyyy"
	}).data("kendoDatePicker");

	start.max(end.value());
	end.min(start.value());		
});
</script>

<form action="xxx" method="post">
<input type="hidden" name="request_id" value="9" />
<input type="hidden" name="product_id" value="19" />
<table>
<tr>
	<td><strong>Valid From</strong></td>
	<td> : 
		<input type="text" name="valid_from" value="21-02-2012" id="valid_from" readonly="readonly" maxlength="20" size="20"  />
	</td>
	<td><strong>Valid To</strong></td>
	<td> : 
		<input type="text" name="valid_to" value="21-02-2012" id="valid_to" readonly="readonly" maxlength="20" size="20"  />
	</td>
</tr>
<tr>
	<td colspan="3">
		<input type="submit" name="btnSave" value="Save"  />
		<input type="button" id="btnBack" value="Back" onclick="window.history.back()" />
	</td>
</tr>
</table>
</form>
and when I submit the form the valid_from and valid_to is missing in the POST 
array(6) {
  ["request_id"]=>
  string(1) "9"
  ["product_id"]=>
  string(2) "19"
  ["btnSave"]=>
  string(4) "Save"
}
wizmagister
Top achievements
Rank 2
 answered on 16 Apr 2012
1 answer
148 views
I'm using the Bar Chart and I have a Score Distribution. I want  Median bar color to be unique. So I want all bar in my bar chart to have the same color and I and to endorphin the bar which represents the median using a different color. 

See the attached image of the chart I'm replacing.
Rodney
Top achievements
Rank 2
 answered on 16 Apr 2012
1 answer
497 views
i use the restful mode in the server,when i update the object,the url must be '/demo/{id}' and submit type must be "put".

but the update url was definition 
                    transport: {
                        update: {
                            url: "/demo/{id}"
                        }
    }
how can i change url when i need update.
For example,when i update the record,the id is "abcdefg",i need change the url become '/demo/abcdefg' .
Alexander Valchev
Telerik team
 answered on 16 Apr 2012
3 answers
654 views
What is the best approach to getting the value of a column or cell in the selected row?
I can't seem to find a clear and easy way to make this happen. Any help would be appreciated.
Brian
Top achievements
Rank 1
 answered on 16 Apr 2012
1 answer
147 views
How do I intercept both Edit and create on the grid so I can forward it to another page? Is there a way to add custom commands?
Alexander Valchev
Telerik team
 answered on 16 Apr 2012
8 answers
187 views
I have an AJAX call, which updates a Highcharts chart and is supposed to update a Kendo Grid, as well. The data returned from AJAX is updated, but the grid doesn't refresh.

This is the setup for the grid's dataSource:
var smry_data = [{
   mean          : rtrn_data.SUMMARY["Mean"]
,   std_deviation : rtrn_data.SUMMARY["Std. Deviation"]
,   median        : rtrn_data.SUMMARY["Median"]
,   mode          : rtrn_data.SUMMARY["Mode"]
,   range         : rtrn_data.SUMMARY["Range"]
,   minimum       : rtrn_data.SUMMARY["Minimum"]
,   maximum       : rtrn_data.SUMMARY["Maximum"]
,   count         : rtrn_data.SUMMARY["Count"]
,   quintile20    : rtrn_data.SUMMARY["Quintile 20%"]
,   quintile40    : rtrn_data.SUMMARY["Quintile 40%"]
,   quintile60    : rtrn_data.SUMMARY["Quintile 60%"]
,   quintile80    : rtrn_data.SUMMARY["Quintile 80%"]
,   quintile100   : rtrn_data.SUMMARY["Quintile 100%"]
}];

And this is the JS for the Kendo Grid:
   if(!$("#cntr-smry").data("kendoGrid")) {
    dtsc_smry_data = new kendo.data.DataSource({
        data   : smry_data
    ,   schema : {
            model : {
                fields : {
                    mean          : {type : "number"}
                ,   std_deviation : {type : "number"}
                ,   median        : {type : "number"}
                ,   mode          : {type : "number"}
                ,   range         : {type : "number"}
                ,   minimum       : {type : "number"}
                ,   maximum       : {type : "number"}
                ,   count         : {type : "number"}
                ,   quintile20    : {type : "number"}
                ,   quintile40    : {type : "number"}
                ,   quintile60    : {type : "number"}
                ,   quintile80    : {type : "number"}
                ,   quintile100   : {type : "number"}
                }
            }
        }
    });
 
    $("#cntr-smry").kendoGrid({
        dataSource  : dtsc_smry_data
    ,   columns     : [
            {field : "mean",          title : "Mean",           template : '<span style="float:right;" class="fontBold">#=kendo.toString(mean, "n1")#</span>'}
        ,   {field : "std_deviation", title : "Std. Deviation", template : '<span style="float:right;" class="fontBold">#=kendo.toString(std_deviation, "n1")#</span>'}
        ,   {field : "median",        title : "Median",         template : '<span style="float:right;" class="fontBold">#=kendo.toString(median, "n1")#</span>'}
        ,   {field : "mode",          title : "Mode",           template : '<span style="float:right;" class="fontBold">#=kendo.toString(mode, "n0")#</span>'}
        ,   {field : "range",         title : "Range",          template : '<span style="float:right;" class="fontBold">#=kendo.toString(range, "n1")#</span>'}
        ,   {field : "minimum",       title : "Minimum",        template : '<span style="float:right;" class="fontBold">#=kendo.toString(minimum, "n1")#</span>'}
        ,   {field : "maximum",       title : "Maximum",        template : '<span style="float:right;" class="fontBold">#=kendo.toString(maximum, "n1")#</span>'}
        ,   {field : "count",         title : "Count",          template : '<span style="float:right;" class="fontBold">#=kendo.toString(count, "n0")#</span>'}
        ,   {field : "quintile20",    title : "Quintile 20%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile20, "n1")#</span>'}
        ,   {field : "quintile40",    title : "Quintile 40%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile40, "n1")#</span>'}
        ,   {field : "quintile60",    title : "Quintile 60%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile60, "n1")#</span>'}
        ,   {field : "quintile80",    title : "Quintile 80%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile80, "n1")#</span>'}
        ,   {field : "quintile100",   title : "Quintile 100%",  template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile100, "n1")#</span>'}
        ]
    });
} else {
    $("#cntr-smry").data("kendoGrid").dataSource.read();
}

I had thought this would work, but the grid stays the same. I know I must be missing a command somewhere, but I'm just not seeing it.
Atanas Korchev
Telerik team
 answered on 16 Apr 2012
1 answer
130 views
Hi,

From the Kendo UI web page I can create a bookmarklet (http://demos.kendoui.com/themebuilder/index.html).
I then go in my page and launch the bookmarklet and I receive no error message. It seems that Theme Builder is finding Kendo controls in my page.
If I open the Theme Builder with my own page and change some values, my Widgets on the page doesn't change.
There is certainly a piece of code missing in my page to allows this.

I want to do the same as the Kendo UI page but with my own page.
Someone already did this? 
Thanks.
Alex Gyoshev
Telerik team
 answered on 16 Apr 2012
1 answer
313 views
Title says it.  Bonus points if I can specify different tooltips (i.e on the pointer - explaining to the user where the value came from, on the ranges - explaining to the user why the range goals are as they are, etc).
Iliana Dyankova
Telerik team
 answered on 16 Apr 2012
1 answer
233 views
In Chrome when I try to print the Demo Pie Chart, not all of the color is filled in and it looks really bad. I want to use the KendoUI pie chart but my users need to be able to print it or capture it into a PDF file using WebGrabber. Is there a property that is needed to be set to allow clean printing? See attached Gif for additional details.
Alexander Valchev
Telerik team
 answered on 16 Apr 2012
1 answer
70 views

Javascript Dependencies for Grid. Item 15. kendo.pageable.js (if paging is enabled) substitute on kendo.pager.js

http://www.kendoui.com/documentation/javascript-dependencies.aspx

Atanas Korchev
Telerik team
 answered on 16 Apr 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
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
SPA
Filter
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
PivotGridV2
ScrollView
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? 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?