Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
Hi,

I created a AutoCompleteBox inside a radwindow, it functions well except the cursor not appear, any hints why?

   <telerik:RadAutoCompleteBox ID="dfCollaborator" runat="server"
DataSourceID="ldsStaff"<BR>                       
DataTextField="DisplayName" DataValueField="SID" Width="400px" Delimiter=";"
DropDownHeight="50px" EmptyMessage="Please input"
InputType="Token"><BR>                       
<TokensSettings AllowTokenEditing="true" />
<BR>                   
</telerik:RadAutoCompleteBox>

Shinu
Top achievements
Rank 2
 answered on 13 May 2013
1 answer
117 views

Hi
I have placed a Radgrid inside a UserControl with below code.

<asp:ScriptManager ID="rdMgr" runat="server">
</asp:ScriptManager>
<telerik:RadAjaxManager ID="radAMgr" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rdGrdInbox">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rdGrdInbox" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<div>
    <telerik:RadGrid ID="rdGrdInbox" runat="server" AllowFilteringByColumn="True" AllowSorting="True"
        AllowPaging="True" CellSpacing="0" GridLines="None" AutoGenerateColumns="False"
        PageSize="15" Width="100%" OnItemCommand="grdCommonInbox_Command" Style="width: 100% !important;">
        <%--OnItemCommand="rdGrdInbox_ItemCommand" --%>
        <MasterTableView DataKeyNames="grant_id">
            <Columns>
                <telerik:GridBoundColumn DataField="therapeutic_area" SortExpression="therapeutic_area"
                    HeaderText="Functional Area" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="budget_type" SortExpression="budget_type" HeaderText="Budget Type"
                    Visible="false">
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Left" Width="0%"></ItemStyle>
                </telerik:GridBoundColumn>
  </Columns>
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
    </telerik:RadGrid>

Now i ham using this userControl in some other aspx., now if i try to navigate to 2nd page. Even though i am using scriptmanager in second page.. Paging is not working. Anything i am doing wrong ???

Regards,
Kiran
Princy
Top achievements
Rank 2
 answered on 13 May 2013
1 answer
87 views
Hi Guys,

In the Radschedulder demo, different appointments have different background color. Their demo code seems too bulky. How to achieve the same? I would like to have different color based on my various resources. Can anyone tell me with some code snippet?

Thanks for reply
Lovella
Shinu
Top achievements
Rank 2
 answered on 13 May 2013
3 answers
251 views
Hi,
I am having a Radgrid and a Textbox in a page.

On the Row selection,I have to fill the Textbox with the data from Radgrid column1 "Name".

when clicking on the row in grid,we have to fill the textbox which is outside the grid.

please help me to solve this.

Thanking you,

Regards,
AGMRAJA
Princy
Top achievements
Rank 2
 answered on 13 May 2013
1 answer
95 views
Hi,

Any sample code snippet to show how to set the appointment border in appointmentdatabound?

Thanks,
HG
Shinu
Top achievements
Rank 2
 answered on 13 May 2013
1 answer
346 views
Hi Telerik,

My registration page contain a RadButton which is initially disabled. On checking an asp checkbox I want to enable this button. How to do it using Javascript?

Thanks,
Antony
Princy
Top achievements
Rank 2
 answered on 13 May 2013
2 answers
907 views
Hello,
I've written the code below in c# and i want to convert it to JavaScript
Because i need it in Client-side
is there anyone to convert it for me?

this is my C# code :
int res = 1;
       
       for (int i = 0; i < 15; i++)
       {
           int row = 0;
           if (((Telerik.Web.UI.RadButton)GridView1.Rows[i].FindControl("btn_1")).Checked != true)
           {
               row += 1;
           }
 
           if (((Telerik.Web.UI.RadButton)GridView1.Rows[i].FindControl("btn_2")).Checked != true)
           {
              row += 1;
           }
 
           if (((Telerik.Web.UI.RadButton)GridView1.Rows[i].FindControl("btn_3")).Checked != true)
           {              
               row += 1;
           }
           if (row == 0)
               row = 1;
           res = res * row;
       }

Thank you
Hassan
Hassan
Top achievements
Rank 1
 answered on 11 May 2013
1 answer
60 views
I have a RadPanelBar that I have setup based on the Accessing Nested Controls demo on the Telerik site.  I have a "Next" button at the bottom of each panel.  As I click next, the panel below is opened.  All is good.

As soon as I drop a RadDropDownTree into one of the panels, the "Next" button no longer functions.  I remove the RadDropDownTree and the button functions normally again.

Anyone have any info. on this?
Richard
Top achievements
Rank 2
 answered on 11 May 2013
2 answers
83 views
Hi there,

When I enable TrackChanges or Comments in markp, the speed of typing decreases dramatically. When trackchanges is set to true then the typing speed is normal, when it's set to false typing speed decreases. Why is this happening, i just cant seem to solve this. I'm using this version of AJAX Web UI 2012.3.1308.35.

P.S. When there is no comments or TrackChenges enabled the typing speed is normal.

Internet Explorer 9 is affected only both in compatibility and non compatibility mode.

This is html Code
<p><ins title="Inserted by RadEditorUser on Thursday, April 25, 2013
8:23:22 PM" class="reU0" cite="RadEditorUser"
timestamp="1366914202348">dfgdlfkgjdlk dflgkjdflgkjd fglkdjg
ldkfjgldf<span title="RadEditorUser: dfgdfg: Thursday, April 25, 2013 8:23:31
PM" class="reComment reU0" timestamp="1366914211489" comment="dfgdfg"
author="RadEditorUser">kjgldkfgjldkgj</span><span></span></ins><span>dfgdfgdlfkgjdlfkj
dglkjdfglkjdg<br
/><BR>sdlfkjsldkfjlskdfjlskdfjlskdfjdlfkgjldkfjgldkjgldkjfglkdjglkdjfglkjdfglkjdflgkj</span></p>


this is markup

<telerik:RadTabStrip
            ID="RadTabStrip_MultiChoice"
            runat="server"
            MultiPageID="RadMultiPage_MultiChoice"
            width="800px"
            Skin="Windows7"
            CausesValidation="False"
            BackColor="#F0F3F7"
            SelectedIndex="1">
 
            <Tabs>
                <telerik:RadTab
                    runat="server"
                    Text="<%$ Resources:UILanguage,RadPageViewGeneral %>"
                    PageViewID="RadPageView_General"
                    Selected="false" />
                <telerik:RadTab
                    runat="server"
                    Text="<%$ Resources:UILanguage,RadPageViewOptions %>"
                    PageViewID="RadPageView_ItemText"
                    Selected="false" />
                <telerik:RadTab
                    runat="server"
                    Text="<%$ Resources:UILanguage,RadPageViewPreview %>"
                    PageViewID="RadPageView1"
                    Selected="false" />
            </Tabs>
        </telerik:RadTabStrip>
 
        <telerik:RadMultiPage
            ID="RadMultiPage_MultiChoice"
            runat="server"
            width="800px"
            BackColor="#f0f3f7"
            BorderColor="#f0f3f7"
            BorderStyle="Solid" SelectedIndex="1"
            BorderWidth="1px" >
             
            <telerik:RadPageView
                ID="RadPageView_General"
                runat="server">
                 
                  <table style="padding:5px; border-style:none; empty-cells:hide">
                   
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataItemUid"
                                runat="server"
                                Text="<%$ Resources:UILanguage,ItemUID %>"
                                Visible="False" />
                        </td>
                         
                         <td class="FormCell_250">
                            <asp:TextBox
                                ID="dataItemUid"
                                runat="server"
                                Enabled="False"
                                Visible="False" />
                        </td>
                    </tr>
                     
                    <tr>
                         <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataIdSubjectCategory"
                                runat="server"
                                Text="<%$ Resources:UILanguage,IdSubjectCategory %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <data:EntityDropDownList
                                ID="dataIdSubjectCategory"
                                runat="server"
                                AppendDataBoundItems="True"
                                AppendNullItem="True"
                                CaseSensitiveKeySort="False"
                                DataSourceID="IdSubjectCategoryMasterSubjectCategoryDataSource"
 
                                DataValueField="IdSubjectCategory"
                                EnableClientScript="True"
                                NullItemText="<%$ Resources:UILanguage,EntityDropDownListNull %>"
                                Required="False"
/>
                             
                            <asp:RequiredFieldValidator
                                ID="ReqVal_dataIdSubjectCategory"
                                runat="server"
                                ControlToValidate="dataIdSubjectCategory"
                                Display="Dynamic"
                                ErrorMessage="<%$ Resources:UILanguage,ValidatorRequired %>"
                                SetFocusOnError="True" />
                             
                            <data:MasterSubjectCategoryDataSource
                                ID="IdSubjectCategoryMasterSubjectCategoryDataSource"
                                runat="server"
                                SelectMethod="GetByIdSubject">
                                <Parameters>
                                    <asp:SessionParameter Name="IdSubject" SessionField="IdSubject" />
                                </Parameters>
                            </data:MasterSubjectCategoryDataSource>
                        </td>
                    </tr>
                     
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataIdDifficulty"
                                runat="server"
                                Text="<%$ Resources:UILanguage,IdDifficulty %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <data:EntityDropDownList
                                ID="dataIdDifficulty"
                                runat="server"
                                AppendDataBoundItems="True"
                                AppendNullItem="True"
                                CaseSensitiveKeySort="False"
                                DataSourceID="IdDifficultyMasterDifficultyDataSource"
                                DataValueField="IdDifficulty"
                                EnableClientScript="True"
                                NullItemText="<%$ Resources:UILanguage,EntityDropDownListNull %>"
                                Required="False"
 />
 
                            <asp:RequiredFieldValidator
                                ID="ReqVal_dataIdDifficulty"
                                runat="server"
                                ControlToValidate="dataIdDifficulty"
                                Display="Dynamic"
                                ErrorMessage="<%$ Resources:UILanguage,ValidatorRequired %>"
                                SetFocusOnError="True" />
                             
                            <data:MasterDifficultyDataSource
                                ID="IdDifficultyMasterDifficultyDataSource"
                                runat="server"
                                SelectMethod="GetAll" />
                        </td>
                    </tr>
                     
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataIdBehaviour"
                                runat="server"
                                Text="<%$ Resources:UILanguage,IdBehaviour %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <data:EntityDropDownList
                                ID="dataIdBehaviour"
                                runat="server"
                                AppendDataBoundItems="True"
                                AppendNullItem="True"
                                CaseSensitiveKeySort="False"
                                DataSourceID="IdBehaviourMasterBehaviourDataSource"
                                DataValueField="IdBehaviour"
                                EnableClientScript="True"
                                NullItemText="<%$ Resources:UILanguage,EntityDropDownListNull %>"
                                Required="False"
 />
                             
                            <asp:RequiredFieldValidator
                                ID="ReqVal_dataIdBehaviour"
                                runat="server"
                                ControlToValidate="dataIdBehaviour"
                                Display="Dynamic"
                                ErrorMessage="<%$ Resources:UILanguage,ValidatorRequired %>"
                                SetFocusOnError="True" />
                                 
                            <data:MasterBehaviourDataSource
                                ID="IdBehaviourMasterBehaviourDataSource"
                                runat="server"
                                SelectMethod="GetAll" />
                        </td>
                    </tr>
                     
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataIdCompetence"
                                runat="server"
                                Text="<%$ Resources:UILanguage,IdCompetence %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <data:EntityDropDownList
                                ID="dataIdCompetence"
                                runat="server"
                                AppendDataBoundItems="True"
                                AppendNullItem="True"
                                CaseSensitiveKeySort="False"
                                DataSourceID="IdCompetenceMasterCompetenceDataSource"
                                DataValueField="IdCompetence"
                                EnableClientScript="True"
                                ErrorText=""
                                NullItemText="<%$ Resources:UILanguage,EntityDropDownListNull %>"
                                Required="False"
/>
 
                            <asp:RequiredFieldValidator
                                ID="ReqVal_dataIdCompetence"
                                runat="server"
                                ControlToValidate="dataIdCompetence"
                                Display="Dynamic"
                                ErrorMessage="<%$ Resources:UILanguage,ValidatorRequired %>"
                                SetFocusOnError="True" />
                             
                            <data:MasterCompetenceDataSource
                                ID="IdCompetenceMasterCompetenceDataSource"
                                runat="server"
                                SelectMethod="GetAll" />
                        </td>
                    </tr>
                     
                    <tr>
                         <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataLanguage"
                                runat="server"
                                Text="<%$ Resources:UILanguage,Language %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <data:EntityDropDownList
                                ID="dataIdLanguage"
                                runat="server"
                                AppendDataBoundItems="True"
                                AppendNullItem="True"
                                CaseSensitiveKeySort="False"
                                DataSourceID="MasterLanguageDataSource"
                                DataValueField="IdLanguage"
                                EnableClientScript="True"
                                ErrorText=""
                                NullItemText="<%$ Resources:UILanguage,EntityDropDownListNull %>"
                                Required="False"
/>
                             
                            <asp:RequiredFieldValidator
                                ID="ReqValdataIdLanguage"
                                runat="server"
                                ControlToValidate="dataIdLanguage"
                                Display="Dynamic"
                                ErrorMessage="<%$ Resources:UILanguage,ValidatorRequired %>"
                                SetFocusOnError="True" />
                             
                            <data:MasterLanguageDataSource
                                ID="MasterLanguageDataSource"
                                runat="server"
                                SelectMethod="GetAll" />
                        </td>
                    </tr>
 
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataMaxPoints"
                                runat="server"
                                Text="<%$ Resources:UILanguage,MaxPoints %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <asp:TextBox
                                ID="dataMaxPoints"
                                runat="server"
                                Enabled="False"
                                Width="20px">
                            </asp:TextBox>
                        </td>
                    </tr>
                     
                    <tr>
                        <td class="FormCell_150">
                            <asp:Label
                                ID="lbldataNote"
                                runat="server"
                                Text="<%$ Resources:UILanguage,Note %>" />
                        </td>
                         
                        <td class="FormCell_250">
                            <asp:TextBox
                                ID="dataNote"
                                runat="server"
                                TextMode="MultiLine"
                                Width="250px"
                                Height="100px" />
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
             
            <telerik:RadPageView
                ID="RadPageView_ItemText"
                runat="server"
                width="800px">
            
 
                            </telerik:RadPageView>
                             
                                        <telerik:RadPageView
                ID="RadPageView1"
                runat="server"
                width="800px">
                 
<telerik:RadEditor
                                ID="dataMarkingScheme"
                                runat="server"
                                ContentFilters="DefaultFilters" EnableComments="true" EnableTrackChanges="true" >
 
                                <TrackChangesSettings CanAcceptTrackChanges="False" />
                                <Tools>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Cut" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorTool Name="PasteFromWord" />
                                        <telerik:EditorTool Name="Undo" />
                                        <telerik:EditorTool Name="Redo" />
                                        <telerik:EditorTool Name="BackColor" />
                                        <telerik:EditorTool Name="Superscript" />
                                        <telerik:EditorTool Name="Subscript" />
                                        <telerik:EditorTool Name="InsertOrderedList" />
                                        <telerik:EditorTool Name="InsertUnorderedList" />
                                        <telerik:EditorTool Name="Indent" />
                                        <telerik:EditorTool Name="Outdent" />
                                        <telerik:EditorTool Name="ImageManager" />
                                        <telerik:EditorTool Name="InsertTable" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="FontName" />
                                        <telerik:EditorTool Name="RealFontSize" />
                                        <telerik:EditorTool Name="Bold" />
                                        <telerik:EditorTool Name="Italic" />
                                        <telerik:EditorTool Name="Underline" />
                                        <telerik:EditorTool Name="StrikeThrough" />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="JustifyFull" />
                                        <telerik:EditorTool Name="ForeColor" />
                                    </telerik:EditorToolGroup>
                                    <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="AddComment" />
                                        <telerik:EditorTool Name="RemoveComment" />
                                        <telerik:EditorTool Name="RemoveAllComments" />
                                        <telerik:EditorTool Name="TrackChangesDialog" />
                                        <telerik:EditorTool name="AcceptTrackChange" />
                                        <telerik:EditorTool name="RejectTrackChange" />
                                        <telerik:EditorTool name="AcceptAllTrackChanges" />
                                        <telerik:EditorTool name="RejectAllTrackChanges" />
                                        <telerik:EditorTool name="EnableTrackChangesOverride" />
                                    </telerik:EditorToolGroup>
                                </Tools>
                            </telerik:RadEditor>
                            </telerik:RadPageView>
                             
          </telerik:RadMultiPage>
</asp:Content>
Ardian
Top achievements
Rank 1
 answered on 11 May 2013
1 answer
102 views

I would like to turn the ID column of a dynamically created table into an edit button.  Is this possible?  I have seen plenty of documents on creating button columns, but I want to convert a column from text to a button column in the _ColumnCreated or covert each cell in the _PreRender.

Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles QueryRadGrid.PreRender
    Dim intColIndex As Integer
    Dim gridRow As GridDataItem
 
    For Each column As GridColumn In QueryRadGrid.MasterTableView.AutoGeneratedColumns
        If column.UniqueName = "ID" Then
            intColIndex = column.OrderIndex
            For Each gridRow In QueryRadGrid.MasterTableView.Items
                Dim editCol As GridButtonColumn = New GridButtonColumn
                editCol.ButtonType = GridButtonColumnType.LinkButton
                editCol.DataTextField = gridRow.Cells(intColIndex).Text
                ' How do I convert this cell???
                'gridRow.Cells(intColIndex) = ???
            Next
        End If
    Next

Private Sub QueryRadGrid_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles QueryRadGrid.ColumnCreated
    Dim field As String
    Try
        field = e.Column.UniqueName
        If Not field = Nothing AndAlso field <> "" AndAlso field <> "ExpandColumn" Then
            If DataSet.Tables(TableName).Columns(field).ColumnName = "ID" Then
                e.Column.HeaderText = ""
                     DO SOMETHING HERE TO CONVERT COLUMN

Jayesh Goyani
Top achievements
Rank 2
 answered on 11 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?