Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
102 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
90 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
562 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
77 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
100 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
882 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
74 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
89 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
82 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
1 answer
189 views

Hi. I am using Telerik RadEditor control in one Webpage, want to copy paste the whole content from a MS Word document to this RadEditor control.

And I have set 'MSWord' to 'StripFormattingOptions' property. With this, am able to do copy-paste from MS Word document content with all Font settings, but images are not coming to the RadEditor control.

 

Can you please give me solution to get it ?

Ianko
Telerik team
 answered on 08 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?