Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
183 views

I have been following this thread (http://www.telerik.com/forums/radasyncupload-clear-items-using-serverside-code) for a similar issue.

Issue: "I am using RadAsyncUpload to upload files. I have a 'Cancel' button which the user can click anytime after selecting the files. I want to clear the selected files - or in other words reset the RadAsyncUpload Control when 'Cancel' button is clicked." (by Liby George)

Solution: Please include the following line of code in your click handler for the "Cancel" button.
//JavaScript
$telerik.$(".ruInputs li .ruRemove").click()
This will go through the files <li> elements and click on the "Remove" link.  (by Boyan Dimitrov)

My problem: Since there are severals RadAsyncUpload along with coresponding buttons in one page, this will clear all selected files of all upload controls for a single click . How can I clear the items of one RadAsyncUpload without affecting the others?

Hristo Valyavicharski
Telerik team
 answered on 08 Jul 2015
5 answers
98 views

Hi,

 I have a Rad Grid used in my application. When i click "Add New" button, the edit column is displayed in the top and i can add new record. Is there a way i can hide the "Add New" button and display the Edit Column by default in the top always so that user can enter the value and click Insert. My Grid code as below,

 

<telerik:RadGrid ID="rgTest" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False" Width="97%" OnNeedDataSource="rgTest_NeedDataSource"
                                OnUpdateCommand="rgTest_UpdateCommand" OnDeleteCommand="rgTest_DeleteCommand"
                                OnInsertCommand="rgTest_InsertCommand" AllowAutomaticDeletes="true" Visible="true">
                                <PagerStyle Mode="NextPrevAndNumeric" />
                                <MasterTableView Width="100%" CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="ID"
                                    AllowAutomaticDeletes="true">
                                    <CommandItemSettings AddNewRecordText="Add New" ShowRefreshButton="false" />
                                    <Columns>
                                        <telerik:GridEditCommandColumn UniqueName="TestEdit">
                                        </telerik:GridEditCommandColumn>
                                        <telerik:GridTemplateColumn HeaderText="ID" Display="false" UniqueName="TestID">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblID" Text='<%# Eval("ID") %>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Names" UniqueName="TestName">
                                            <ItemTemplate>
                                                <%#DataBinder.Eval(Container.DataItem,"Name")%>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <telerik:RadComboBox runat="server" ID="rcbTestName" DataTextField="Name" DataValueField="ID">
                                                </telerik:RadComboBox>
                                            </EditItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" ImageUrl="~/Images/delete16x16.png"
                                            Text="Delete" ConfirmText="Are you sure you want to delete the selected row?">
                                        </telerik:GridButtonColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>

Viktor Tachev
Telerik team
 answered on 08 Jul 2015
3 answers
85 views

Hello,

 On my RadGrid, I have an column.

On this column i have an image, but this image is hidden if i haven't a specific value in an other  column.

How can i hide this ?

 

Exemple :

| ---------- | --------------------------|

| Image   | Specific Value        |

| -----------| --------------------------|

| Nothing | Not specific Value  |   

| -----------|---------------------------|

 

 

Thanks for your support,

Alexandre

 

Viktor Tachev
Telerik team
 answered on 08 Jul 2015
3 answers
552 views

Hi! I'm trying to make a radgrid with explicit defined columns. I've tried setting the AutoGenerateColumns property of the radgrid to false, but it won't show anything. This is my code

<telerik:RadGrid ID="rdContainers"  runat="server" AutoGenerateColumns="false" OnNeedDataSource="fnGetScanContainers" AllowFilteringByColumn="True" Width="91%">
                    <telerik:MasterTableView  TableLayout="Fixed">
                        <HeaderStyle Width="102px" />
                        <Columns>
                            <telerik:GridBoundColumn DataField="ContainerID" HeaderText="Container ID" SortExpression="ContainerID" UniqueName="gcContainerID" FilterControlWidth="60px">
                                <HeaderStyle Width="170px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Location" HeaderText="Location" UniqueName="gcLocation" FilterControlWidth="60px">
                                 <HeaderStyle Width="115px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="PartNumber" HeaderText="Part Number" UniqueName="gcPartNumber" FilterControlWidth="60px">
                                 <HeaderStyle Width="115px" />
                            </telerik:GridBoundColumn>
                    </telerik:MasterTableView>
                    <ClientSettings EnableRowHoverStyle="true">
                                <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="" />
                    </ClientSettings>
</telerik:RadGrid>

 

Viktor Tachev
Telerik team
 answered on 08 Jul 2015
1 answer
74 views
How can i highlight mistyped words using rad spell control..i don't want any suggestion dialogue...becoz the text is read only....please suggest me, how to do that with rad spell or is there any other way to do the same.
Ianko
Telerik team
 answered on 08 Jul 2015
2 answers
93 views

 Hi,

 I am using RadDockLayout with userControl. I want all my dock to be close when my page load.
 I use Collapsed="false" but here my problem if i do that 
 The problem is is that i need to expand each section twice or there nothing showing from the usercontrol.
 If i click once the RadDock it will open just a little bit and then i need close it and expand again.
 Then everything is fine.
 Any idea why?

Tks

 

<%@ Register Src="~/information/profil/control/resultats.ascx" TagName="Profil" TagPrefix="uc2" %>
<%@ Register Src="~/information/profil/control/action_one_eleve.ascx" TagName="action_one_eleve" TagPrefix="uc2" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
   
 
     <div class="boxLessSpaceV">
             <i class="fa fa-user fa-2x"></i> <asp:Label ID="lblName" CssClass="TitlePage" runat="server" Text="Profil - Luc Emond"></asp:Label>
                <hr />
               <uc2:menuProfil ID="menuProfil" runat="server" />
             <hr />
         </div>
 
   
     
            <telerik:RadDockLayout runat="server" ID="RadDockLayout1" EnableEmbeddedSkins="true" Skin="Metro">
            <div>
                <table style="padding: 0px;border-collapse: collapse; border-spacing: 0;">
                    <tr>
                        <td style="width: 222px;">
                            <telerik:RadDockZone runat="server" ID="RadDockZone1" Skin="Metro" Orientation="vertical" Style="border: 0;width: 700px;height:500px;">
                                <telerik:RadDock runat="server" ID="UserInfo" Collapsed="false" EnableDrag="false" Title="Résultats" Width="700px" Height="500px" EnableAnimation="true">
                                    <ContentTemplate>
                                        <uc2:Profil ID="ProfilControl" runat="server"></uc2:Profil>
                                    </ContentTemplate>
                                </telerik:RadDock>
                                <telerik:RadDock runat="server" ID="RadDock1" EnableDrag="false" Collapsed="false" Title="Actions " Width="700px" Height="500px" EnableAnimation="true">
                                    <ContentTemplate>
                                        <uc2:Profil ID="Profil1" runat="server"></uc2:Profil>
                                    </ContentTemplate>
                                </telerik:RadDock>
                            </telerik:RadDockZone>
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadDockLayout>
     
 
</asp:Content>

Luc Émond
Top achievements
Rank 1
 answered on 08 Jul 2015
3 answers
872 views

Hello,

 I have a requirement to allow client side selection of a row using RadGrid.

 I have a parent form that opens a child form using javascript window.open.  I want the child form to pass back a value in a selected row in the grid.

I have set the following:

                    <ClientSettings EnableRowHoverStyle="true">
                        <Selecting AllowRowSelect="True" />
                        <ClientEvents OnRowClick="MyJavascriptFunction()" />
                    </ClientSettings>

The problem is the OnRowClick event is fired on load of the grid, but not on RowClick.  I've tried OnRowDblClick, OnRowSelected all with the same result.

Please help.

Thank you,

Tim Inouye

Vessy
Telerik team
 answered on 08 Jul 2015
1 answer
64 views

Hi,

I am facing issue in Telerik spellcheck control in one of my project.
This control works fine when I run it on my local machine, but when I deploy it on server (windows 2012) it is giving me following error when I click on "Spell Check" button,

"Web.config registration missing! The spellchecking functionality requires a HttpHandler registration in web.config. Please, use control Smart Tag to add the handler automatically, or see the help for more information.~/Telerik.Web.UI.SpellCheckHandler.ashx"

This website is running in a IIS 7 environment in Classic Mode. I tried different solution available on internet but no luck as of now.
I have added dll reference in my web project and also registered in the web.config.

Could you please let me know if anyone worked on this kind of issue or having any suggestions.

Ianko
Telerik team
 answered on 08 Jul 2015
1 answer
84 views

Hi,

I am facing issue in Telerik spellcheck control in one of my project.
This control works fine when I run it on my local machine, but when I deploy it on server (Windows 2012) it is giving me following error when I click on "Spell Check" button,

"Web.config registration missing! The spellchecking functionality requires a HttpHandler registration in web.config. Please, use control Smart Tag to add the handler automatically, or see the help for more information.~/Telerik.Web.UI.SpellCheckHandler.ashx"

This website is running in a IIS 7 environment in Classic Mode. I tried different solution available on internet but no luck as of now.
I have added dll reference in my web project and also registered in the web.config.

Could you please let me know if anyone worked on this kind of issue or having any suggestions.

Ianko
Telerik team
 answered on 08 Jul 2015
2 answers
79 views

I have a grid with formatted cells(by calling user_defined function) based on various criterias on page_load.

But while I tried to view the next page, the formatting disappears on new pages as well as the initial page.

Please advise on what event should have the user_defined function to format the grid cells during next/previous page change.

Eyup
Telerik team
 answered on 08 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?