Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views

I want to customize the add new button, centering it on the grid but also having the same functionality as the normal built in Add New button.

Here is the code I have so far:

<CommandItemSettings ShowAddNewRecordButton="False" />
<CommandItemSettings ShowRefreshButton="false" />
<CommandItemTemplate>
    <div id="divCenter" style="text-align: center">
    <asp:LinkButton ID="btnAddNew" Text="Add New" CommandName="Insert" runat="server"></asp:LinkButton>
</div>
</CommandItemTemplate>

The problem is the Insert command only makes the screen flash and doesn't open the Add New dialog.

Can you help?

LJZIMMERMAN
Top achievements
Rank 1
 answered on 29 Sep 2016
0 answers
79 views

The R3 2016 release of the Telerik UI for ASP.NET AJAX suite introduces several improvements of the Lightweight rendering of the RadTreeView. As the RadDropDownTree uses an embedded RadTreeView for its drop-down, those changes apply for that control too.

Full description of the improvements made could be found in the following documentation article.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 29 Sep 2016
0 answers
99 views

The R3 2016 release of the Telerik UI for ASP.NET AJAX suite introduces several improvements of the Lightweight rendering of the RadTreeView.

Full description of the improvements made could be found in the following documentation article.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 29 Sep 2016
1 answer
294 views

Hi 

How can I prevent without losing the data of radasyncupload on post back. My requirement is that onFileUploaded I need to assign the count of number of uploaded files to repeater control(this is done on server side, so post back is happening here) and on click of upload in a repeater item, I need to transfer the file to some other location. But on button click I'm not able to retain radasyncupload data as I'm already doing one post back to assign data to repeater control. 

Thanks in advance

Vinod

 

Anton
Telerik team
 answered on 29 Sep 2016
3 answers
122 views
I know that many other people have posted threads about this issue; however, non of them got my issue resolved. Well, I'm trying to send the content of RadEditor , which contains images (uploaded to a folder on the web server) to as an email (using GMail), but when the email is received, the image is unavailable. ContentFilters is set to "MakeUrlsAbsolute, DefaultFilters", SearchPatterns is set to "*.jpeg,*.jpg,*.png,*.gif,*.bmp". I've gove "Everyone" access to the folder where images are uploaded but this has not fixed the issue. When I inspected the<img> tag in the received email, I found out that the URL has been changed to "https://ci4.googleusercontent.com/proxy/" and some random letters before the actual URL. I'm not sure why this is happening and whether this is a GMail issue or RadEditor issue. Nothing online helped me to get this issue resolved.
Rumen
Telerik team
 answered on 29 Sep 2016
2 answers
199 views

Hello,

 

Inside a RadScheduler (ID= "Radscheduler1")

I have a RadComboBox (ID="acbProjet") with an 'OnSelectedIndexChanged' Inside Advanced Insert Form.

I have also an other RadDropDownList (ID="RadDropDownListTypeHeure") depending on the choice of the RadComboBox.

        protected void acbProjet_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
          // ??? RadDropDownList rddl = (RadDropDownList) RadScheduler.FindControl("RadDropDownListTypeHeure");
          // ??? RadDropDownListTypeHeure = (RadComboBox)e.Container.FindControl("RadDropDownListTypeHeure");
        }

 

HOW can i access the RadDropDownList for update the datasource ?

THANK you for your HELP

 

 

Peter Milchev
Telerik team
 answered on 29 Sep 2016
7 answers
208 views
Hi,

like the subject says, I'm trying to have an AJAX ComboxBox, among other controls, inside a RadPanelBar but it seems it doesn't work, since I'm getting a JavaScript error about a variable bestWidth that is set to -2.

<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <div> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"
        <ContentTemplate> 
                
           <telerik:RadPanelBar ID="RadPanelBar1" runat="server"
                   <Items> 
                       <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1"
                        <Items> 
                            <telerik:RadPanelItem> 
                            <ItemTemplate>                                  
                                <cc1:ComboBox ID="ComboBox1" runat="server" AutoCompleteMode="Append" AutoPostBack="true" DropDownStyle="DropDown"
                                </cc1:ComboBox>                                    
                            </ItemTemplate> 
                            </telerik:RadPanelItem> 
                        </Items>                       
                       </telerik:RadPanelItem> 
                        
                        <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2"
                        <Items> 
                            <telerik:RadPanelItem> 
                            <ItemTemplate> 
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> 
                            </ItemTemplate> 
                            </telerik:RadPanelItem> 
                        </Items> 
                       </telerik:RadPanelItem> 
                   </Items> 
            </telerik:RadPanelBar>      
        </ContentTemplate> 
        </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 

Thanks in advance for your help.

Dax
Sneha
Top achievements
Rank 1
 answered on 29 Sep 2016
14 answers
1.0K+ views
I'm apparently missing something here.  Trying to change the sort order of a grid that uses GroupByExpressions with no luck.

I started with the following:
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="OrderID" />
        </GroupByFields>
        <SelectFields>
            <telerik:GridGroupByField FieldName="OrderID" HeaderText="Order ID" />
            <telerik:GridGroupByField FieldName="CustLastFirst" HeaderText="Customer" />
            <telerik:GridGroupByField FieldName="Total" HeaderText="Order Total" FormatString="{0:C}" />
        </SelectFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>


Then I tried adding this:
<SortExpressions>
    <telerik:GridSortExpression FieldName="CustLastFirst" SortOrder="Ascending" />
</SortExpressions>

And I tried variations of this, but get either no action or a type mismatch error:
<GroupByFields>
    <telerik:GridGroupByField FieldName="OrderID" />
    <telerik:GridGroupByField FieldName="CustLastFirst" />
</GroupByFields>


Any suggestions?  Thanks!


Kostadin
Telerik team
 answered on 29 Sep 2016
9 answers
205 views
Hello! Please note that ClientSettings-Scrolling-SaveScrollPosition="true" not working since Q3 2015. Please fix!!!
Pavlina
Telerik team
 answered on 29 Sep 2016
4 answers
370 views
I have in a page the code below for a radwindow used as a modal popup. For some reason no matter what I do the validators will not fire when I click the btnAddUserToRoleSave button. Is there some trick to using validators in a modal window box? Thanks.




<telerik:RadWindowManager ID="rwmManagerUsers" runat="server" Style="z-index: 3" >
<Windows>  
<telerik:RadWindow ID="rwManagerUsers_SelectUsers" runat="server" 
    OnClientClose="rwManagerUsers_SelectUsers_OnClientClose" 
    Modal="true"
    AutoSize="true"
    Behaviors="Close"
    v>
<ContentTemplate>
        <asp:ValidationSummary ID="vsAddUserToRoleValidationSummary" runat="server" 
            EnableClientScript="true" 
            ShowMessageBox="true"
            ValidationGroup="vgAddUserToRoleForm"
            HeaderText="ERROR! The user cannot be set due to the following reasons:
            " />
        <table>
            <tr>
                <td><asp:Label ID="lblSelectedUser" Text="User:" runat="server"></asp:Label></td>
                <td>
                    <telerik:RadComboBox ID="ddlSelectedUser" runat="server" DataTextField="DisplayName" DataValueField="UserName"></telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="rfvSelectedUser"  runat="server"
                        Text="*" 
                        ErrorMessage="A User must be selected."
                        ToolTip="A User must be selected."
                        ControlToValidate="ddlSelectedUser"
                        ValidationGroup="vgAddUserToRoleForm"
                        InitialValue="-1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td><asp:Label ID="lblSelectedLocation" Text="Location:" runat="server"></asp:Label></td>
                <td>
                    <telerik:RadComboBox ID="ddlSelectedLocation" runat="server" DataTextField="Description" DataValueField="LocationCode"></telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="rfvSelectedLocation" runat="server"
                        Text="*" 
                        ErrorMessage="A Location must be selected."
                        ToolTip="A Location must be selected."
                        ControlToValidate="ddlSelectedLocation" 
                        ValidationGroup="vgAddUserToRoleForm"
                        InitialValue=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnAddUserToRoleSave" runat="server" Text="Add User To Role" OnClick="btnAddUserToRoleSave_Click" ValidationGroup="vgAddUserToRoleForm" />
                    <asp:Button ID="btnAddUserToRoleCancel" runat="server" Text="Cancel" OnClientClick="rwManagerUsers_Cancel();cancelEvent()" />
                </td>
            </tr>        
        </table>
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Marin Bratanov
Telerik team
 answered on 29 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?