Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
130 views
Hi Telerik Team,

I am using ASP.NET with vb code. i want to use Grid - Binding to Telerik ClientDataSource. i convert the code using telerik convertor. but i did not get exact code. can you please send same sample program in VB code.



Thanks in advance,
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 12 Feb 2015
1 answer
492 views
Let abc be the combobox
I have  id,name,serialnumber to each item in radcobobox

    cbItem.set_text(name);/*setting values*/
     cbItem.set_value(id);
     cbItem.get_attributes().setAttribute("Serial",serialnumber );


    cbItem.get_value(); /*getting values*/
    cbItem.get_text();
    cbitem.get_attributes().getAttribute("Serial");

we can find items in combo box by

$find('abc').findItemByValue(id);
$find('abc').findItemByText(name);

????How to find item by  serial(custom attribute) and set the corresponding item as default item to be selected on .document.ready
Can any one please help me...















Nencho
Telerik team
 answered on 12 Feb 2015
1 answer
81 views
Hi all,
I'm new using this forum so I'll let you guys move my thread if I didn't place it within the proper section. I'm using C# 4 and ASP.Net. I'm using EntityFramework at version 4.1.10331.0 and Telerik at version 2012.1.228.40.

I want to create a grid to allow my user to translate a few labels from our application. Basically, let's imagine I have two tables in my database :

- Label : contains an Id and a Name.
- Translation : contains an Id, a Label_Id a Language_Id, a Scope and a TranslatedValue.

I want to display to my user a grid containing the following information :

Label.Name | Translation.Value (for Language_Id = French) | Translation.Value (for Language_Id = English) | Scope

I've found a way to do so using SQL (using pivot table) and now my query is done I would like to use it directly (if possible) in my code. Since I'm using a dynamic SQL query, I can't use a view, because it requires only a select. Furthermore, I want my user to be able to edit the TranslatedValue columns.

What would be the best practice to do something like that with Telerik ?

Thanks in advance for your precious help and advices.

Angel Petrov
Telerik team
 answered on 12 Feb 2015
2 answers
82 views
Please, see the attached image. How can I solve these problem with Telerik AsyncUpload. At refresh is not showing correctly. (any browsers)
Thanks.
Itachi
Top achievements
Rank 1
 answered on 12 Feb 2015
7 answers
150 views
This afternoon, we upgraded our Telerik assemblies from version 2014.1.403.45 to version 2014.3.1209.45.
We made no code changes or anything in our own application. We merely upgraded to the new Telerik assemblies.

Since then, pasting in the editor does not work anymore. No error messages.... just nothing.

Browser is irrelevant: it's not working in Chrome, nor in IE11, nor in Firefox., etc.

What might be causing this? And how can we solve it (other than returning to the previously used assembly version)?
Ianko
Telerik team
 answered on 12 Feb 2015
12 answers
7.7K+ views
Hi Team,

I am using RadGrid, in which i have Col1, Col2, Col3, Col4 and Col5. All columns are filterable. I need that when the grid is loaded for first time col4 and col5 should not be visible, but when I right clink on grid header the it should display all columns and I should be able to select col4 and col5 to make columns visible.

can anybody help on this please.

Regards,
Sandy.
Abhay
Top achievements
Rank 1
 answered on 12 Feb 2015
2 answers
95 views
I have 14 tiles in my TileList. However, only 11 of them are shown on the page. I'm not able to use the space on the bottom right hand corner of the area for some reason. Any idea why it might cause this problem?

Screenshot: http://s29.postimg.org/cimmy9a0n/Capture.png

Code:
<telerik:RadTileList ID="RadTileList1" runat="server" TileRows="4" Width="100%" EnableDragAndDrop="True" SelectionMode="Multiple">
                        <Groups>
                            <telerik:TileGroup>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[0,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[0,0] %>" NavigateUrl="<%$ Code: allTiles[0,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[0,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[1,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[1,0] %>" NavigateUrl="<%$ Code: allTiles[1,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[1,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageUrl="<%$ Code: allTiles[4,2] %>" Name="<%$ Code: allTiles[4,0] %>" Width="310px" NavigateUrl="<%$ Code: allTiles[4,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[4,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[7,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[7,0] %>" NavigateUrl="<%$ Code: allTiles[7,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[7,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[8,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[8,0] %>" NavigateUrl="<%$ Code: allTiles[8,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[8,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[2,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[2,0] %>" NavigateUrl="<%$ Code: allTiles[2,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[2,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[3,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[3,0] %>" NavigateUrl="<%$ Code: allTiles[3,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[3,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[5,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[5,0] %>" NavigateUrl="<%$ Code: allTiles[5,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[5,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[6,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[6,0] %>" NavigateUrl="<%$ Code: allTiles[6,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[6,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[9,2] %>" Name="<%$ Code: allTiles[9,0] %>" NavigateUrl="<%$ Code: allTiles[9,1] %>" Target="_blank" ImageWidth="150px" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[9,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageAndTextTile runat="server" EnableSelection="True" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[10,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[10,0] %>" NavigateUrl="<%$ Code: allTiles[10,1] %>" Target="_blank">
                                    <Title Text="<%$ Code: allTiles[10,0] %>"></Title>
                                </telerik:RadImageAndTextTile>
                                <telerik:RadImageTile runat="server" EnableSelection="True" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[11,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[11,0] %>" NavigateUrl="<%$ Code: allTiles[11,1] %>" Target="_blank">
                                    <Title Text="<%$ Code: allTiles[11,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ForeColor="White" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[12,2] %>" Name="<%$ Code: allTiles[12,0] %>" NavigateUrl="<%$ Code: allTiles[12,1] %>" Target="_blank" ImageWidth="150px" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[12,0] %>"></Title>
                                </telerik:RadImageTile>
                                <telerik:RadImageTile runat="server" ImageHeight="150px" ImageUrl="<%$ Code: allTiles[13,2] %>" ImageWidth="150px" Name="<%$ Code: allTiles[13,0] %>" ForeColor="White" NavigateUrl="<%$ Code: allTiles[13,1] %>" Target="_blank" EnableSelection="True">
                                    <Title Text="<%$ Code: allTiles[13,0] %>"></Title>
                                </telerik:RadImageTile>
                            </telerik:TileGroup>
                        </Groups>
                    </telerik:RadTileList>
Ned
Top achievements
Rank 1
 answered on 11 Feb 2015
1 answer
572 views
I have a radGrid with string and boolean values. The boolean values are showing as "True" and "False". I want them to show as checkboxes in both the normal display and edit modes.

How do I accomplish this? Below is my markup code:

<telerik:RadDropDownList ID="ddlRoles" runat="server" CssClass="wepageManagementDropDown" Width="200px" DataTextField="role" DataValueField="ID" AutoPostBack="true" OnItemSelected="ddlRoles_ItemSelected"></telerik:RadDropDownList>
  <br /><br />   
  <telerik:RadGrid ID="RadGridwebpagemanagement" Height="70%" runat="server" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" GroupPanelPosition="Top" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnNeedDataSource="RadGridwebpagemanagement_NeedDataSource">
      <ClientSettings>
          <Scrolling AllowScroll="True" UseStaticHeaders="True" />
          <Selecting AllowRowSelect="true" />
      </ClientSettings>
      <MasterTableView AutoGenerateColumns="false">
          <Columns>
 
              <telerik:GridBoundColumn DataField="webpage_name" HeaderText="Web Page" UniqueName="webpage_name"
                          FilterControlWidth="100px">
                          <HeaderStyle Width="115px" />
              </telerik:GridBoundColumn>
 
              <telerik:GridBoundColumn DataField="add_privledge" HeaderText="Allow Adds" UniqueName="add_privledge"
                          FilterControlWidth="60px">
                   
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               
              <telerik:GridBoundColumn DataField="edit_privledge" HeaderText="Allow Edits" UniqueName="edit_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               <telerik:GridBoundColumn DataField="delete_privledge" HeaderText="Allow Deletes" UniqueName="delete_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
               <telerik:GridBoundColumn DataField="view_privledge" HeaderText="Allow Views" UniqueName="view_privledge"
                          FilterControlWidth="60px">
                          <HeaderStyle Width="100px" />
              </telerik:GridBoundColumn>
 
          </Columns>
      </MasterTableView>
  </telerik:RadGrid>
David
Top achievements
Rank 1
 answered on 11 Feb 2015
1 answer
168 views
Hi

I'm using a RadGrid with Batch Edit and have the keyboard navigation turned. However users are saying they do not want to have to hit "Add new record" at the bottom but instead when they tab off the last cell of the last column to automatically insert a new blank row and have the keyboard focused in it's first cell.  I can't find any information on this behavior, is such a thing possible?

Thank you
Eyup
Telerik team
 answered on 11 Feb 2015
3 answers
199 views
After searching around i didn't see the answer to my problem so i thought id post it here.

I'm working on a Master Page-Content page with nested page layouts. one on the master page, the other on the content page. What is happening is when i go do use the RadNotification or use the invalid setting on a text box. the page updates and all the content expands to the right by about 50% but the notification stays centered in the window.. is this a known issue or am I missing the obvious.

I am using product Version 2014.3.1209.40
Any help or idea with this would be appreciated.

code I am using below.

Master page
<%@ Master Language="VB" CodeFile="MobileRoot.master.vb" Inherits="M_Root" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %>
 
<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 user-scalable=no" />
 
    <link href="css/RootMaster.css" rel="Stylesheet" type="text/css" />
 
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
 
        <rad:RadPageLayout ID="rplMaster" runat="server">
            <Rows>
                <rad:LayoutRow>
                    <Content>
                        <rad:RadNotification ID="rnNotify" runat="server">
                        </rad:RadNotification>
                    </Content>
                </rad:LayoutRow>
            </Rows>
            <%--Row to hold header for site--%>
            <Rows>
                <rad:LayoutRow ID="lrHeader" runat="server" CssClass="header">
                    <Columns>
                        <rad:LayoutColumn HiddenXs="true" Span="4">
                        </rad:LayoutColumn>
                        <rad:LayoutColumn SpanXs="12" Span="4">
                            <center>
                            <asp:Image ID="imgHeader" runat="server" CssClass="CenterImg" Width="8.5em" Height="3.5em" />
                            </center>
                        </rad:LayoutColumn>
                        <rad:LayoutColumn HiddenXs="true" Span="4">
                        </rad:LayoutColumn>
                    </Columns>
                </rad:LayoutRow>
            </Rows>
             
            <%--Row to Hold Content--%>
            <Rows>
                <rad:LayoutRow runat="server" CssClass="contentcontainer">
                    <Columns>
                        <rad:LayoutColumn Span="12">
                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                                <%-- Content page displays here --%>
                            </asp:ContentPlaceHolder>
                        </rad:LayoutColumn>
                    </Columns>
                </rad:LayoutRow>
            </Rows>
            <Rows>
                <rad:LayoutRow runat="server" CssClass="footercontainer">
                    <Columns>
                        <rad:LayoutColumn Span="4">
                        </rad:LayoutColumn>
                        <rad:LayoutColumn Span="4">
                        </rad:LayoutColumn>
                        <rad:LayoutColumn Span="4">
                        </rad:LayoutColumn>
                    </Columns>
                </rad:LayoutRow>
            </Rows>
        </rad:RadPageLayout>
    </form>
</body>
</html>

Content page
<%@ Page Title="" Language="VB" MasterPageFile="~/Mobile/MobileRoot.master" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="M_Login" %>
 
<%@ MasterType VirtualPath="~/Mobile/MobileRoot.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <rad:RadPageLayout ID="rplDashboard" runat="server">
        <Rows>
            <rad:LayoutRow runat="server" CssClass="loginsectionheader">
                <Columns>
                    <rad:LayoutColumn SpanXs="2" Span="4">
                    </rad:LayoutColumn>
                    <rad:LayoutColumn SpanXs="8" Span="4">
                        <asp:Image ID="imgLoginHeader" runat="server" CssClass="CenterImg" Width="12.62em" Height="11em" />
                    </rad:LayoutColumn>
                    <rad:LayoutColumn SpanXs="2" Span="4">
                    </rad:LayoutColumn>
                </Columns>
            </rad:LayoutRow>
        </Rows>
        <Rows>
            <rad:LayoutRow CssClass="logininput">
                <Columns>
                    <rad:LayoutColumn SpanXs="1" SpanSm="3" Span="4">
                    </rad:LayoutColumn>
                    <rad:CompositeLayoutColumn SpanXs="10" SpanSm="6" Span="4">
                        <Rows>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadTextBox ID="txtLogin" runat="server"></rad:RadTextBox>
                                </Content>
                            </rad:LayoutRow>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadTextBox ID="txtPass" runat="server" placeholder="Password"></rad:RadTextBox>
                                </Content>
                            </rad:LayoutRow>
                        </Rows>
                    </rad:CompositeLayoutColumn>
                    <rad:LayoutColumn SpanXs="1" SpanSm="3" Span="4">
                    </rad:LayoutColumn>
                </Columns>
            </rad:LayoutRow>
        </Rows>
        <Rows>
            <rad:LayoutRow runat="server" CssClass="">
                <Columns>
                    <rad:LayoutColumn SpanXs="3" Span="4">
                    </rad:LayoutColumn>
                    <rad:CompositeLayoutColumn ID="clcLogPw" runat="server">
                        <Rows>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadButton ID="btnLogin" runat="server"></rad:RadButton>
                                </Content>
                            </rad:LayoutRow>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadButton ID="btnForgotPw" runat="server"></rad:RadButton>
                                </Content>
                            </rad:LayoutRow>
                        </Rows>
                    </rad:CompositeLayoutColumn>
                    <rad:LayoutColumn SpanXs="3" Span="4">
                    </rad:LayoutColumn>
                </Columns>
            </rad:LayoutRow>
        </Rows>
        <Rows>
            <rad:LayoutRow runat="server">
                <Columns>
                    <rad:LayoutColumn HiddenXs="true" Span="1">
                    </rad:LayoutColumn>
                    <rad:CompositeLayoutColumn ID="lcCreateAcct" runat="server">
                        <Rows>
                            <rad:LayoutRow>
                                <Content>
                                    <asp:Label ID="lblCreateAcctount" runat="server"></asp:Label></Content>
                            </rad:LayoutRow>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadButton ID="btnCreateAcct" runat="server"></rad:RadButton>
                                </Content>
                            </rad:LayoutRow>
                        </Rows>
                    </rad:CompositeLayoutColumn>
                    <rad:CompositeLayoutColumn ID="lcMakePayemt" runat="server">
                        <Rows>
                            <rad:LayoutRow>
                                <Content>
                                    <asp:Label ID="lblMakePayment" runat="server"></asp:Label></Content>
                            </rad:LayoutRow>
                            <rad:LayoutRow>
                                <Content>
                                    <rad:RadButton ID="btnMakePayment" runat="server"></rad:RadButton>
                                </Content>
                            </rad:LayoutRow>
                        </Rows>
                    </rad:CompositeLayoutColumn>
                    <rad:LayoutColumn HiddenXs="true" Span="1">
                    </rad:LayoutColumn>
                </Columns>
            </rad:LayoutRow>
        </Rows>
    </rad:RadPageLayout>
</asp:Content>


CSS
html {
    font-size: 100%; /*using ems to set text size not px. this is required. default size is 1em.*/
}
 
body {
    color: #FFFFFF;
    background-color: #000000;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
 
/*Header Start*/
.header {
    background-color: #DDDDDD;
    padding-top: 0.3em;
}
 
.pagetitlecontainer {
    background-color: #ae862c;
}
 
.pagetitle {
    font-size: 1.5em;
    line-height: 1.5;
    font-weight: bold;
}
 
.centerimg {
    margin-left: auto;
    margin-right: auto;
}
 
/*Content Start*/
.sectionheader {
    line-height: 2;
}
 
.loginsectionheader {
    margin-bottom: 1.75em;
}
 
.sectionlbllist {
    line-height: 1.5;
}
 
.logininput {
    line-height: 2;
 
}
 
.loginbutton {
    line-height: 1.5;
}
 
.compositlayout {
    margin-top:.75em;
    text-align:center;
    position:absolute;
}
 
.layoutrow {
     line-height: 1.5;
}
 
.methodslist {
    line-height: 1.5;
    font-size: 1.5em;
    background-color: #000000;
    color: #FFFFFF;
    border-style:hidden !important;
}
 
.RadListBox_Default .rlbGroup, .RadListBox_Default .rlbTemplateContainer {
    border-style: hidden !important;
}
 
/*Footer Start*/
.footerleft {
}
 
.footermiddle {
}
 
.footerright {
}


Hristo Valyavicharski
Telerik team
 answered on 11 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?