Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
151 views
Hi!

Is there a way to hide or change the attached button?

<telerik:RadTextBox ID="radTextBoxUsername" runat="server" CssClass="inputBox" ClientEvents-OnKeyPress="OnKeyPress"
                    MaxLength="16" ClientEvents-OnBlur="UsernameTextBoxValueChanged" SelectionOnFocus="SelectAll">
                    <ClientEvents OnKeyPress="OnKeyPress" OnBlur="UsernameTextBoxValueChanged"></ClientEvents>
                    <InvalidStyle CssClass="inputBoxInvalid" />
                </telerik:RadTextBox>
Michael O'Flaherty
Top achievements
Rank 2
 answered on 28 Mar 2012
3 answers
154 views
We're currently using an older version of Telerik (from 2009).  We are located in Arizona. DST has always been a huge hassle for us, requiring manual editing of appointments for customers in areas that do DST (e.g. all but Arizona).  Example: It's Friday, and the DST switch-over happens on Sunday. If they schedule an appointment for Monday in Mountain time, the UTC time saved to the database will be an hour off.  This requires us to edit the offsets on every time zone on the scheduler (except Arizona), but it's nearly impossible to time this edit in such a way that eliminates a huge pile of mis-scheduled appointments twice a year. People seriously dread "DST week" in our office because it means overtime spent correcting scheduling mistakes and calling customers.

I noticed that in the most recent update, it was mentioned that the time zone handling has become more advanced.  In the documentation it was unclear if this new functionality would help us to correctly handle DST.  Is there anywhere I can read more about the "CustomTimeZones" referred to in the changelog?  We are trying to decide if it is worth re-purchasing Telerik for this (it most certainly would be if let us handle DST correctly).

Also, any additional insight as to how we can properly handle DST would be much appreciated.  We currently only deal with Pacific, Mountain, Arizona, Central, and Eastern.

Thanks!
Plamen
Telerik team
 answered on 28 Mar 2012
5 answers
1.9K+ views
Hi,

I have a radtextbox in my screen. When user enters the characters by default it should display in capital letter.

I have written like this, but it is not working

<

 

 

telerik:RadTextBox ID="radtxtCarrierComments" MaxLength="50" Width="350px" runat="server" onkeypress="return AllowAlphaNumericandSpace(event);" onkeydown="javascript:EnableOk();" AutoPostBack="true" style="text-transform: uppercase;">

 

 

 

</telerik:RadTextBox>

In this I have both onkeypress and onkeydown client events + i have set the style property.

Can anybody help me in this?

 

Massimo
Top achievements
Rank 1
 answered on 28 Mar 2012
1 answer
60 views
Dear experts,

I am wondering whether I can apply rotator to do something like this page:

http://www.bmj.com/ (the rotating banner)

I was looking at demo page and I am not sure which mode is suitable:
http://demos.telerik.com/aspnet-ajax/rotator/examples/overview/defaultcs.aspx


or am I looking at the wrong control?

Many thanks for your help!!!

Ray
Slav
Telerik team
 answered on 28 Mar 2012
1 answer
159 views
Hi,
    How to find a rad treeview node using the tree node full path.
    I got the full path as string.   
    I want to get the tree node using that full path.
How to get it.
Plamen
Telerik team
 answered on 28 Mar 2012
3 answers
249 views
Hi,

We are using RadButton as CheckBoxes and we catch a problem when trying to check the button with the keyboard, when the user checks it with the space key, only the client-side event fires.

We tried first this code:
<telerik:RadButton runat="server" ID="chkIMOPRO" Text="IMO Product" ButtonType="ToggleButton"
               AutoPostBack="true" ToggleType="CheckBox" OnCheckedChanged="chkIMOPRO_CheckedChanged">
               <ToggleStates>
                   <telerik:RadButtonToggleState Selected="true" />
                   <telerik:RadButtonToggleState Selected="false" />
               </ToggleStates>
</telerik:RadButton>

With that code, everything worked fine, but when one user tried to check it with the keyboard, nothing really happens, we are getting to the server side through RadAjax:
<telerik:RadAjaxManager runat="server" ID="ajaxManager" OnAjaxRequest="ajaxRequest"
        EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="chkIMOPRO" EventName="chkIMOPRO_CheckedChanged">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlIMOINFO" LoadingPanelID="loadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

And then, we tried the following approach:
function chkIMOPRO_CheckedChanged(sender, args) {
    alert('');
}

<telerik:RadButton runat="server" ID="chkIMOPRO" Text="IMO Product" ButtonType="ToggleButton"
    AutoPostBack="true" ToggleType="CheckBox" OnCheckedChanged="chkIMOPRO_CheckedChanged"
    OnClientCheckedChanged="chkIMOPRO_CheckedChanged">
    <ToggleStates>
        <telerik:RadButtonToggleState Selected="true" />
        <telerik:RadButtonToggleState Selected="false" />
    </ToggleStates>
</telerik:RadButton>

And it worked, the client-side event fires in the two cases (by keyboard space and by mouse click).

We know we can get it to work by activating ajax through javascript, but we think this would be unecessary code.

Is there any bug or approach related to this issue?

Thanks;
Slav
Telerik team
 answered on 28 Mar 2012
2 answers
93 views

I am putting into my heriarchial grids in-line editing but am running into a problem of how to get at the editing of the lower grids.  i have the 1st grid working but how can I get at the sub grid to edit them inline.  How can I have a unique update name, insert or delete fro each level of the grid.  How can I differenitate between these 2 update commands for differetn grids.  the 1st one is for the top level grid and the second one is for the 1st sub-level. 

Protected Sub myRadGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadGrid.ItemCommand
      'All the Inline Update Commands
      If (e.CommandName = RadGrid.UpdateCommandName) Then
          Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
          Dim Id As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("intCategoryId")
          Dim Cat As TextBox = CType(editedItem.FindControl("txtCategory"), TextBox)
          Dim NSN As TextBox = CType(editedItem.FindControl("txtNSN"), TextBox)
          Dim LIN As TextBox = CType(editedItem.FindControl("txtLin"), TextBox)
          sql = "Update Drat_Category set strCategory = '" & sanitizeString(Cat.Text.ToUpper) & "', strNSN = '" & sanitizeString(NSN.Text.ToUpper) & "', strLIN = '" & sanitizeString(LIN.Text.ToUpper) & "' " _
              & "where intCategoryId = " & Id
          insertUpdateDelete(sql)
          myRadGrid.Rebind()
      End If
      If (e.CommandName = RadGrid.UpdateCommandName) Then
          Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
          Dim Id As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("intManufacturerId")
          Dim Man As TextBox = CType(editedItem.FindControl("txtManufacturer"), TextBox)
          sql = "Update Drat_Manufacturer set strmanufacturer = '" & sanitizeString(Man.Text.ToUpper) & "' where intManufacturerId = " & Id
          insertUpdateDelete(sql)
          myRadGrid.Rebind()
Kevin
Top achievements
Rank 1
 answered on 28 Mar 2012
3 answers
1.1K+ views
I am trying to add a simple add record button to the Header of a RadGrid, but I just can't seem to do it through Editor.  The Edit/Delete functions work fine. Using the latest version of RadControls(downloaded demo yesterday). 
<%@ Control language="vb" Inherits="DotNetNuke.Modules.CSAEditor.View" AutoEventWireup="false" Explicit="True" Codebehind="View.ascx.vb" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<telerik:RadGrid ID="rgcsaEditor" runat="server" AllowAutomaticDeletes="True"
    AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
    AllowMultiRowEdit="True" AutoGenerateColumns="False"
    AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" CellSpacing="0"
    DataSourceID="CSAlDataSource" GridLines="None" Skin="Telerik">
<ClientSettings>
<Selecting CellSelectionMode="None"></Selecting>
    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
 
<MasterTableView datakeynames="csaId" datasourceid="CSAlDataSource">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="csaId" DataType="System.Int32"
            Display="False" FilterControlAltText="Filter csaId column" HeaderText="csaId"
            ReadOnly="True" SortExpression="csaId" UniqueName="csaId">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="csaName"
            FilterControlAltText="Filter csaName column" HeaderText="csaName"
            SortExpression="csaName" UniqueName="csaName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="csaWebAddr"
            FilterControlAltText="Filter csaWebAddr column" HeaderText="csaWebAddr"
            SortExpression="csaWebAddr" UniqueName="csaWebAddr">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="csaNotes"
            FilterControlAltText="Filter csaNotes column" HeaderText="csaNotes"
            SortExpression="csaNotes" UniqueName="csaNotes">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="csaActive" DataType="System.Boolean"
            FilterControlAltText="Filter csaActive column" HeaderText="csaActive"
            SortExpression="csaActive" UniqueName="csaActive">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="csaBuyingClub" DataType="System.Boolean"
            FilterControlAltText="Filter csaBuyingClub column" HeaderText="csaBuyingClub"
            SortExpression="csaBuyingClub" UniqueName="csaBuyingClub">
        </telerik:GridCheckBoxColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
 
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="CSAlDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:CsalwfConnectionString %>"
    DeleteCommand="usp_DeleteCSA_INFO" DeleteCommandType="StoredProcedure"
    InsertCommand="usp_InsertCSA_INFO" InsertCommandType="StoredProcedure"
    SelectCommand="usp_SelectCSA_INFOsAll" SelectCommandType="StoredProcedure"
    UpdateCommand="usp_UpdateCSA_INFO" UpdateCommandType="StoredProcedure">
    <DeleteParameters>
        <asp:Parameter Name="csaId" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="csaName" Type="String" />
        <asp:Parameter Name="csaWebAddr" Type="String" />
        <asp:Parameter Name="csaNotes" Type="String" />
        <asp:Parameter Name="csaActive" Type="Boolean" />
        <asp:Parameter Name="csaBuyingClub" Type="Boolean" />
        <asp:Parameter Direction="InputOutput" Name="csaId" Type="Int32" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="csaId" Type="Int32" />
        <asp:Parameter Name="csaName" Type="String" />
        <asp:Parameter Name="csaWebAddr" Type="String" />
        <asp:Parameter Name="csaNotes" Type="String" />
        <asp:Parameter Name="csaActive" Type="Boolean" />
        <asp:Parameter Name="csaBuyingClub" Type="Boolean" />
    </UpdateParameters>
</asp:SqlDataSource>
Maria Ilieva
Telerik team
 answered on 28 Mar 2012
1 answer
52 views
Hello,

we still use the version 2010.3.1317 of the ASP.NET AJAX Controls and encounter a bunch of FxCop errors (like SealMethodsThatSatisfyPrivateInterfaces or DoNotDeclareReadOnlyMutableReferenceTypes) which does not satisfy the quality department.
Are these errors all fixed in the current version?
Dobromir
Telerik team
 answered on 28 Mar 2012
1 answer
71 views
Hello there,

hey frnds while i'm setting the scrolling property in the ClientSettings of the Rad Grid then the grid is completely damaged can any one please help me out. even i've seen the Demo also but its not solved
Eyup
Telerik team
 answered on 28 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?