have an application in VS2008, I control the code with Team foundation, I I had to change my equipment and after installing all the components and software necessary and to again put the code in the new computer, the code no longer works of the same form.
the event OnClientItemsRequested= " UpdateItemCountField " no longer goes off. I have put alert and not even that sends, that is to say, it does not happen that way.
<telerik:RadComboBox ID="rcmdProgra" runat="server" Height="120px" Width="250px"
EmptyMessage="Programas" DataTextField="Nombre" DataValueField="Clave"
DropDownWidth="370px" EnableLoadOnDemand="true" EnableEmbeddedScripts="true"
Font-Size="XX-Small"
OnClientKeyPressing="ChangeValueRCB"
OnClientItemsRequested="UpdateItemCountField"
OnClientSelectedIndexChanged="selectedProgram"
OnItemsRequested="rcmbProgra_ItemsRequested">
it is possible to mention that in the other equipment, which does not install I, he himself code worked correctly; single it changes to me of equipment, needs to me to install something.
and databind() in server side not working now... not send error but no show me the rows
I hope can help me please. thank you very much.
Is there a way to change the background color of a menu item through javascript? I've tried the adding the following code to the OnClientShowing event but it did not seem work:
var item = sender.get_items().getItem(1);
item.set_cssClass(
'blue_bkgd');
Thanks,
Mike
| <telerik:RadComboBox ID="ddlTextSearch" runat="server" AllowCustomText="True" EnableLoadOnDemand="True" |
| ShowDropDownOnTextboxClick="False" ShowToggleImage="False" onclientitemsrequesting="ddlTextSearch_ItemRequesting" OnClientSelectedIndexChanged="ddlTextSearch_SelectionChanged" ZIndex="9900"> |
| <WebServiceSettings Method="GetCompletionList" Path="~/TextSearchAutoComplete.aspx" /> |
| </telerik:RadComboBox> |
| function ddlTextSearch_HandleKeyPress(e) |
| { |
| if (!e) e = event; |
| var keyCode = e.keyCode || e.which; |
| if (keyCode == 13) |
| { |
| var combo = $find("<%= ddlTextSearch.ClientID %>"); |
| var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); |
| if (combo && combo.get_highlightedItem() != null) |
| { |
| ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.SearchAssist %>"); |
| } |
| else |
| { |
| ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.Search %>"); |
| } |
| } |
| } |
| // Telerik workaround for enter key when ddl is loading. |
| var $ = $telerik.$; |
| $(document).ready(function(){$("#" + "<%= ddlTextSearch.ClientID %>" + "_Input").keydown(ddlTextSearch_HandleKeyPress);}); |
| // Telerik workaround for not selecting cell text when clicking on txtbox. |
| Telerik.Web.UI.RadComboBox.prototype._onInputCellClick = function(e) |
| { |
| if (this._enabled) { |
| // if (this.get_text() !== this.get_emptyMessage()) |
| // this.selectText(0, this.get_text().length); |
| if (!this.get_dropDownVisible() && this._showDropDownOnTextboxClick) |
| this._showDropDown(e); |
| return true; |
| } |
| } |
| function ddlTextSearch_SelectionChanged(sender, eventArgs) |
| { |
| if (eventArgs.get_domEvent().type == "click") |
| { |
| var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); |
| if (ajaxManager) |
| { |
| ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.SearchAssist %>"); |
| } |
| } |
| } |
| function ddlTextSearch_ItemRequesting(sender, eventArgs) |
| { |
| var context = eventArgs.get_context(); |
| /* Setting a few context parameters - code removed */ |
| } |
<telerik:RadColorPicker ID="rcpKleurLicht" runat="server"
PaletteModes="HSV"
PreviewColor="true"
ShowIcon="true"
Width="185px"
Skin="Windows7"
ShowEmptyColor="false">
</telerik:RadColorPicker>
We have the following problem. The first time we load the controls everything is fine, we put our defined color in the SelectedColor and it shows op as an icon. If you click on it you see the HSV window. Then we save our data using a normal postback and edit the item again. Now the lay-out of the color picker changes, to something completely different. Can anybody explain us why this happens?
We use Telerik for ASP.NET/AJAX version 2009.3.1314.35
I've attached a document to show the layout change.
Thanks in advance.
Patrick
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| <style> |
| </style> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> |
| <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> |
| <telerik:RadInputManager ID="ContactRadInputManager" runat="server"> |
| <telerik:RegExpTextBoxSetting BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"> |
| <TargetControls> |
| <telerik:TargetInput ControlID="EMailText" /> |
| </TargetControls> |
| </telerik:RegExpTextBoxSetting> |
| </telerik:RadInputManager> |
| </form> |
| </body> |
| </html> |
| <asp:TextBox runat="server" ID="NameText" TextMode="SingleLine" /> |
| <asp:TextBox runat="server" ID="EMailText" TextMode="SingleLine" /> |
| <asp:LinkButton ID="LinkButton1" ValidationGroup="Contact" runat="server" Text="Send" CssClass="contact-btn" /> |
| <telerik:RadInputManager ID="ContactRadInputManager" runat="server"> |
| <telerik:RegExpTextBoxSetting BehaviorID="EmailBehavior" EmptyMessage="e-mail" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$" Validation-ValidationGroup="Contact" Validation-IsRequired="true" ErrorMessage="error!"> |
| <TargetControls> |
| <telerik:TargetInput ControlID="EMailText" /> |
| </TargetControls> |
| </telerik:RegExpTextBoxSetting> |
| <telerik:TextBoxSetting BehaviorID="NameBehavior" EmptyMessage="name" ErrorMessage="enter name" |
| Validation-IsRequired="true" Validation-ValidationGroup="Contact"> |
| <TargetControls> |
| <telerik:TargetInput ControlID="NameText" /> |
| </TargetControls> |
| </telerik:TextBoxSetting> |
| </telerik:RadInputManager> |
| <telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete the selected item?" |
| ButtonType="LinkButton" Text="Delete"> |
| </telerik:GridClientDeleteColumn> |
| <ClientEvents OnRowSelected="RowSelected" OnRowDeleted="RowDeleted" /> |
| function RowSelected(grd, eventArgs) { |
| var masterTable = grd.get_masterTableView(); |
| var rows = masterTable.get_dataItems(); |
| var iRow = eventArgs.get_itemIndexHierarchical(); |
| var row = rows[iRow]; |
| if (row == null) { |
| alert('Row is Null: How is this possible?'); |
| return; |
| } |
| var cell = row._element.cells[3]; // Get the 3rd column cell. |
| if (cell == null) { |
| alert('How is this possible?'); |
| return; |
| } |
| var val = cell.innerHTML; |
| alert(val); |
| } |
| function RowDeleted(grd, eventArgs) { |
| alert('Row Deleted Done!'); |
| } |
| <NestedViewTemplate> |
| <uc1:myControl runat="server" ID="myCustomControl" MyKey='<%# Eval("Key") %>' /> |
| </NestedViewTemplate> |