Getting/Setting the time client-side
RadTimeView exposes a rich client-side API that allows you to control its behavior. You can manipulate the time selection by using the GetDate() / SetDate() methods:
| JavaScript | |
|---|---|
|
var radTimePicker = <%= RadTimePicker1.ClientID %>;
var timeView = radTimePicker.GetTimeView(); var time = timeView.GetDate(); |
|
var
radTimeOut = find$(<%= RadTimePickerOut.ClientID %>);
function ClearOutTime(sender, e){
//used by timerIN
radTimeOut.clear();
}
ClearOutTime function is used by the first timer.
However I'm getting javascript errors on the page & am thinking that when the user control gets renderd in the web page I'm losing the clientID.....any ideas??
I can access dates from the arguments passed to the function so that part is working.
Regards
Roger
Following is my codes, how do I use Telerik RadMenu as a context menu of Telerik RadTreeView?
Many thanks for your replying.
<telerik:RadTreeView ID="RadTreeView1" runat="server">
<CollapseAnimation Duration="100" Type="OutQuint" />
<ExpandAnimation Duration="100" Type="OutQuart" />
</telerik:RadTreeView>
<telerik:RadMenu ID="RadMenu1" runat="server" Flow="Vertical">
<DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
<telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Add
Node">
<GroupSettings ExpandDirection="Auto" Flow="Vertical" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" ExpandMode="ClientSide"
Text="Delete Node">
<GroupSettings ExpandDirection="Auto" Flow="Vertical" />
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" ExpandMode="ClientSide"
Text="Rename Node">
<GroupSettings ExpandDirection="Auto" Flow="Vertical" />
</telerik:RadMenuItem>
</Items>
<ExpandAnimation Type="OutQuart" />
Hi,
I am using a RowSelected javascript function on two seperate grid instances - on different pages and was just wondering why I would be getting two different base values from the following code:
| function RowSelected(sender, eventArgs) |
| { |
| var dataItem = $get(eventArgs.get_id()); |
| var radGrid = sender; |
| var MasterTable = radGrid.get_masterTableView(); |
| var cell = MasterTable.getCellByColumnUniqueName(sender.get_masterTableView().get_dataItems()[dataItem.rowIndex-1], |
| "ColUniqueName"); |
| } |
In one instance the dataItem.rowIndex returns a base of 0, while in my other grid it returns a base index of 1. Is the base rowIndex dependant on a specific feature of the grid?