Is there anyway to change the timing (speed) of the needle sweep?
I want to slow down the speed of the needle after its been given a value.
I don't see a exposed value, but I am guessing that some JavaScript "timer" function is used to control the speed of the needle when it moves to a given value.
Is some value existing in the control? I willing to set this value server or client side. eg:
eg:
var gao6 = $find("<%=gaPartsDiscount.ClientID%>"); //the standard script control object
var gao6g = gao6.get_kendoWidget(); //the Kendo widget
var gao6v;
-----> set "speed" of sweep??????
gao6g.value(50);
Regards,
Albert D. Kallal
Hi for some reason my select row code does not work
My grid definition is below
<telerik:radgrid runat="server" id="RadGridAppointmentList" showfooter="false" width="100%" enableajax="true" showstatusbar="true" allowautomaticinserts="false"
onitemcommand="RadGridAppointmentList_ItemCommand" onitemcreated="RadGridAppointmentList_ItemCreated" AllowMultiRowSelection="false"
allowaddingrecords="false" autogeneratecolumns="false" allowsorting="false" allowpagesizeselection="False" onitemdatabound="OnItemDataBoundHandler" allowautomaticupdates="false"
allowpaging="True" skin="Bootstrap" pagesize="25" onneeddatasource="RadGridAppointmentList_NeedDataSource" onprerender="RadGridAppointmentList_PreRender" cssclass="table table-striped">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="ref" TableLayout="Auto" EditMode="EditForms" CommandItemDisplay="None" >
<Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false" HeaderText="Select" ItemStyle-Width="45" HeaderStyle-Width="45" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" OnCheckedChanged="CheckUncheckItem" AutoPostBack="True"
runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn CommandName="Edit" UniqueName="EditColumn" Text="Edit" ItemStyle-Width="45px" HeaderText="Edit" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="ref" runat="server" Display="false" ItemStyle-Width="1" ItemStyle-ForeColor="White" UniqueName="ref">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="studentname" DataField="" HeaderText="Name" runat="server" ItemStyle-Wrap="true" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true"
ItemStyle-Width="100" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Id_No" DataField="id_no" HeaderText="Student" runat="server" ItemStyle-Width="30px"
Display="false" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="bookeddate" DataField="bookeddate" HeaderText="Date" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" runat="server"
ItemStyle-Width="100" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="selectedtime" HeaderText="Time" runat="server" ItemStyle-Width="80" Display ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="appointmentdate" HeaderText="Date and Time" runat="server" ItemStyle-Width="110px" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="staff_id" HeaderText="Name" runat="server" ItemStyle-Width="100px" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="staff_name" DataField="" HeaderText="Staff Name" runat="server" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" ItemStyle-Width="100" Display="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="status" HeaderText="Status" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" UniqueName="status"
runat="server" ItemStyle-Width="130px">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="EditColumn">
</EditColumn>
<FormTemplate>
<table style="width: 100%" border="0" >
<tr style="border:solid">
<td colspan="2"><b>Edit Appointment</b><br /></td>
</tr>
<tr>
<td colspan="2">
<br />
Select Status<br />
<telerik:RadComboBox ID="RadComboBoxStatus" runat="server" EmptyMessage="Select Status" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox" OnSelectedIndexChanged="RadComboBoxStatus_SelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem value="absent" text="absent" />
<telerik:RadComboBoxItem value="present" text="present" />
<telerik:RadComboBoxItem value="session_cancelled" text="session_cancelled" />
</Items>
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnSave" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="Update"></asp:Button>
</td>
</tr>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<ClientSettings EnablePostBackOnRowClick="True">
<Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
<SelectedItemStyle BackColor="Gray" BorderColor="Blue" BorderStyle="Dashed" BorderWidth="1px" />
</telerik:radgrid>
This is my select code
Protected Sub CheckUncheckItem(sender As Object, e As EventArgs)
Dim selectedItems As ArrayList
TryCast(TryCast(sender, CheckBox).NamingContainer, GridItem).Selected = TryCast(sender, CheckBox).Checked
Dim CheckBox1 As CheckBox = DirectCast(sender, CheckBox)
Dim item As GridDataItem = DirectCast(CheckBox1.NamingContainer, GridDataItem)
If CheckBox1.Checked Then
Dim refno As String = item.GetDataKeyValue("ref").ToString()
selectedItems.Add(refno)
Session("selectedItems") = selectedItems
Else
Dim refno As String = item.GetDataKeyValue("ref").ToString()
selectedItems.Remove(refno)
Session("selectedItems") = selectedItems
End If
End Sub
The line selectedItems.Add(refno) is failing
Error is Error Message: Object reference not set to an instance of an object.
Does the ref column need to be visible to make it work?
I am using a TreeList with advanced binding with NeedDataSource event handling.
My data does not have any nodes with null / zero to define the root level nodes.
I have seen reference in other threads to settings a 'DefaultValue' to define root nodes but cannot see how to do this in documentation.
How do I display data when I do not have 0 / null root level Id's?
Eg. My root level node may be '1'. How do I configure the TreeList to recognize this?
Thanks
Jason
I have RadGrid that is bound in code-behind using a stored procedure.
I have enable excel-like filtering to the grid and it is all working fine except for any values that contains the word 'AND'.
On another page I have a RadGrid that is bound using the SqlDataSource. The filters work even when containing the word 'AND'.
Any ideas on how to handle this problem?
Regards,
Jas
Hi, im using RadComboBox and I have initial(complete) data source on page load.
After certain client action i want to pass a parameter to receive a new data source.
I am able to send that parameter and i see it on server side. It does get passed to the SQL procedure which returns new data.
The problem is on client side which doesnt show the new data, combo is populated with the old data.
Is there a way to force the RadComboBox to repopulate the data after it gets new data on the server side?
Thanx!
The code is very simple:
Private Sub CreateComboTipBonusa()
Dim dt As New DataTable
Dim idRet As Integer
If Not IsNothing(Request("IdRetention")) Then
idRet = Convert.ToInt32(Request("IdRetention"))
End If
With New SqlCommandWrapper("gorComboRetentionTipBonusa")
.AddParameter("@IdRetention", idRet)
.AddParameter("@OdgId", OdgId)
.AddParameter("@AppType", myAppType)
.AddParameter("@Culture", myCulture)
dt = .ExecuteTable
End With
cmbTipBonusa.DataValueField = "IdReda"
cmbTipBonusa.DataTextField = "Naziv"
cmbTipBonusa.DataSource = dt
cmbTipBonusa.DataBind()
End Sub
I have Radgrid with multiple columns with one column as RadEditor.
My issue is when I double click on cell, I need to check condition first and if condition does not match I need to prevent editor to open in edit mode. Here I have attached OnRowDblClick function:
function RowDblClick(sender, eventArgs) {
var columnName = "MultiRow";
if (!checkIsMultiLineAllowed(columnName)) {
eventArgs._domEvent.preventDefault();
return;
};
var isEnabled = GetToolbarButtonState("Editselected");
if (isEnabled) {
editedRow = eventArgs.get_itemIndexHierarchical();
console.log(editedRow);
if (Telemetry.DoTracking(accoTOOLTrackingLevel, "Verbose")) {
Telemetry.TrackTrace(Telemetry.severityLevel.Verbose, "Edit Mode: " + '<%=accoADEGrid.MasterTableView.EditMode.ToString() %>' + " | Edit Row Index: " + editedRow + " | ConfigurationID: " + '<%=HF_accoTOOLConfigurationID.Value %>', AITrackingProperties, "RowDblClick", "");
} else if (Telemetry.DoTracking(accoTOOLTrackingLevel, "Information")) {
Telemetry.TrackTrace(Telemetry.severityLevel.Verbose, "Edit Mode: " + '<%=accoADEGrid.MasterTableView.EditMode.ToString() %>' + " | Edit Row Index: " + editedRow, AITrackingProperties, "RowDblClick", "");
}
$find("<%= accoADEGrid.ClientID %>").get_masterTableView().editItem(editedRow);
console.log($find("<%= accoADEGrid.ClientID %>"));
}
}
I need to prevent further proccess to stop. I tried eventArgs._domEvent.preventDefault(), but it is not working
I've a RadEditor that has some functionality issues in IE. Possibly relevant things:
It's ContentAreaMode = Div
There's only one of them on the page, though it can appear at any location where there is a "reply" button (and there are many of these buttons on the page)
It lives inside a div called FtbPanel
This FtbPanel div programmatically moved into an enclosing placeholderX div, before placeholderX is shown
The javascript that shows the placeholderX does also call .repaint() on the editor, as well as .onParentNodeChanged()
There aren't any serious layout issues with the control
I don't encounter any issues with other RadEditors that are visible when the page loads
The editors that are initially inside a hidden div always have issues with the toolbar buttons - dropdown buttons appear blank/incomplete. CLicking any button causes the page to jump to the top. The button (.e.g bold) doesn't edit the text in any way. Dropdown buttons do not show a menu
Right clicking in the text edit area causes a "Paste menu" (with many different paste options) to appear, but it is stuck to the top of the browser window, just under the address bar
I've tried manually (minutes after the control is shown) tried manually calling .onParentNodeChanged() from the JS console, using $find("id of radeditor").onParentNodeChanged(). The only result of this was to disable the right click menu (that appears stuck to the top of the browser view portal)
The version in use is the latest one, downloaded yesterday. No skin is in use other than the default
-
Any pointers on what might be wrong?
I am using Entity Framework with a MySQL database to store a table of hundreds of thousands of packages. When I try to bind directly to the query:
protected
void
OnPackagesNeedDataSource(
object
source, GridNeedDataSourceEventArgs e)
{
PackageGrid.DataSource = PageServerDataContext.Packages;
}
I get the error, "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported."
Using .ToList() would mean that I need to load all the packages in the database, which is not practical.
I can use an EntityDataSource, but I would rather set the data programmatically.
How do I use NeedDataSource with EntityFramework without using .ToList()?
Hi Telerik support
We use a rather old version of RadEditor (sorry) - v2011.1 and in many places on our site it's hidden initially until someone clicks the EDIT button. We've a few different problems with browsers:
If I use it in ContentAreaMode=Iframe, it works with IE (IE is forced into IE9 mode by meta X-UA-compatible), but I encounter issues pasting content into it using Ctrl+V in firefox
If I switch it to ContentAreaMode=Div, then i can paste in firefox, but clients that use IE11 complain that all the buttons above the editor box stop working. (I've verified the truth of this, http://www.telerik.com/forums/incorrect-rendering-of-radeditor-when-shown-with-ajax-in-initially-hidden-parent didn't seem to help). If I change the meta tag so that the browser runs in IE11 mode rather than IE9, the buttons work, but then the image manager fails (clicking the Select button to upload an image does nothing. The javascript console is full of errors like Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x Actual value was 0.75555555555555555555555). Image manager in IE11 native, in iframe mode is seriously graphically corrupt; only the top third of the modal window shows content/doesn't scroll properly/ borders are missing
Elsewhere in this code I maintain there are patch/workarounds for other rad controls, like:
Telerik.Web.UI.RadListBox.prototype.saveClientState = function () {
var clientState = '{"logEntries":' + this._logEntriesJson + ',"selectedIndices":' + this._selectedIndicesJson + ',"checkedIndices":' + this._checkedIndicesJson + ',"scrollPosition":' + this._scrollPosition.toFixed() + "}";
return clientState;
};
Where parameters that are expected to be integers are being sent by the browser as floats..
It seems that for a long time and with the advent of new browsers, the default way of getting things working has been to patch a bit here, set some compatibility mode there, and I should probably attack the problem with a fresh approach; just wondering what that approach would be and whether it involves new versions of the telerik controls, or whether this old version can be made to work acceptably? I'm not sure how much budget there is in replacing the entire control suite at this time, when a planned rewrite of the the entire system, using newer rad controls is imminent, you see..