This is a migrated thread and some comments may be shown as answers.

set calendar value via javascript

2 Answers 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry
Top achievements
Rank 1
Jerry asked on 13 Feb 2011, 09:25 PM
Hi Telerik team,


I was wondering is it possible to set the calendar value in javascript? I have tried the following two ways, none seem to work. Help!!! Thanks in advance.
1)
var cal = $('#cal').data('tCalendar');
var wekgrid = $('#weekgrid').data('tGrid');
var dataItem = wekgrid.dataItem(e.row);

cal.value = dataItem.weekdate;

2)
var cal = $('#cal').data('tCalendar');
var wekgrid = $('#weekgrid').data('tGrid');
var dataItem = wekgrid.dataItem(e.row);
 
cal.date= dataItem.weekdate;

2 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 14 Feb 2011, 09:02 AM
Hi Jerry,

Thank you to contacting us.

Can you examine this online demo and tell me if it works for you.

Regards,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jerry
Top achievements
Rank 1
answered on 14 Feb 2011, 08:59 PM
hi Hristo,


Yes. that helps. Sorry, I was so blinded...


regards
Jerry
Tags
Grid
Asked by
Jerry
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Jerry
Top achievements
Rank 1
Share this question
or