Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
2.0K+ 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
73 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
194 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
289 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
150 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.2K+ 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
63 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
89 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
1 answer
51 views
Hi,
how to set size for RadSplitter using Jquery?

Thanki.
Dobromir
Telerik team
 answered on 28 Mar 2012
5 answers
103 views
I was wondering if it was possible to use our own custom modal from instead of AdvancedInsertTemplate. So when a user double clicks on the Appointment instead of showing him/her a AdvancedInsertTemplate our own Modal form will show up. When user fills out that modal form and click Insert we will simply re-bind scheduler to see new appointment. Thanks
Peter
Telerik team
 answered on 28 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?