Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
111 views
Does Telerik charge to create a new skin?

I am having trouble trying to make the black skin which is Black/Lime green to be more of a Black/Red skin.
The sprite images is where its getting me as some have the Green fading and i cant quite get the colorize to look the same... as it starts to color text etc... i just want the icons/hover effect to be red no green
Bozhidar
Telerik team
 answered on 30 Jan 2012
1 answer
146 views
I kept getting error (Input string was not in a correct format.) loading image from database. some of the values are empty(null).
trying to work around null value, i use dbnull to check for null value and make the pix to be null. it gave me the error above.
Most of the solutions i get online did not work for me.

This is my code.
<div>
<asp:ScriptManager ID="scmn" runat="server" ></asp:ScriptManager>
<asp:UpdatePanel ID="upd" runat="server" >
    <ContentTemplate>
    <asp:SqlDataSource id="dsTrucks" runat="server"
    SelectCommand="SELECT DriverID, UPPER(FirstName) + ', ' + Lastname + ' ' + OtherName AS FullName, dateOfBirth, PlaceOfBirth, StateOfOrigin, Telefone AS Phone, HomeAddress, Picture FROM Trip.Driver ORDER BY FirstName, Lastname, OtherName"
            ConnectionString="<%$ ConnectionStrings:defaultcon %>">
        
    </asp:SqlDataSource>

        <telerik:RadListView ID="RadListView1" runat="server"
        ItemPlaceholderID="ListViewContainer" AllowPaging="True"
            DataSourceID="dsTrucks">
        <LayoutTemplate>
                <asp:PlaceHolder runat="server" id="ListViewContainer" /></LayoutTemplate>
                <ItemTemplate>
                <fieldset>
                    <legend><b>Driver No: </b><%#Eval("DriverID")%></legend>
                    <div class="details">
                        <div style="padding: 5px">
                    <table class="templateTable">
                        <tr>
                            <td rowspan="5">
                                <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("Picture") == DBNull.Value ? null : Eval("Picture")%>'
                                AutoAdjustImageControlSize="True" Width="120px" Height="140px" ToolTip='<%#Eval("DriverID", "Driver {0} picture.") %>'
                                AlternateText='<%#Eval("DriverID", "Driver {0} picture.}") %>' ResizeMode="Fit" />
                                <a ID="A4" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "driver_attachpix.aspx?DriverID={0}&TB_iframe=true&height=320&width=400") %>'
                            title='<%# Eval("DriverID", "Change Picture for {0} ::") %>'>Change Picture</a>
                            </td>
                            <td>
                                Driver ID.
                            </td>
                            
                            <td class="value">
                                <asp:Label ID="lblDriverID" runat="server" Text='<%# Eval("DriverID") %>' />
                            </td>
                            <td>
                                Date of Birth
                            </td>
                            <td class="value">
                            <asp:Label ID="lblDateofbirth" runat="server" Text='<%# Eval("dateofBirth", "{0:d}") %>' />
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Fullname
                            </td>
                            <td class="value" colspan="3">
                                <asp:Label ID="lblFullname" runat="server" Text='<%# Eval("Fullname") %>' />
                               
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Place of Birth
                            </td>
                            <td class="value">
                                <asp:Label ID="lblPlaceofBirth" runat="server" Text='<%# Eval("PlaceOfBirth") %>' />
                            </td>
                            <td>
                                State of Origin
                            </td>
                            <td class="value">
                                <asp:Label ID="lblState" runat="server" Text='<%# Eval("StateOfOrigin") %>' />
                            </td>
                        </tr>
                        <tr >
                            
                            <td >Telephone</td>
                            <td class="value"><asp:Label ID="lbphone" runat="server" Text='<%# Eval("Phone") %>' /></td>
                            <td >Home Address</td>
                            <td class="value"><asp:Label ID="lbAddress" runat="server" Text='<%# Eval("HomeAddress") %>' /></td>
                        </tr>

                        <tr >
                            
                            <td class="value">
                                <a ID="btnShowPopup" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Driver_Details.aspx?DriverID={0}&TB_iframe=true&height=620&width=860") %>'
                            title='<%# Eval("DriverID", "Other details for {0} ::") %>'>Other details</a>
                            </td>
                            <td class="value">
                                <a ID="A1" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Driver_Edit.aspx?DriverID={0}&TB_iframe=true&height=620&width=860") %>'
                            title='<%# Eval("DriverID", "Edit driver {0} details::") %>'>Edit details</a>
                            </td>
                            <td class="value">
                                <a ID="A2" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "Truck_RecentTrips.aspx?Driver={0}&TB_iframe=true&height=520&width=700") %>'
                            title='<%# Eval("DriverID", "Recent trips for {0}") %>'>Recent trips</a>
                            </td>
                            <td class="value">
                            <a ID="A3" runat="server" class="thickbox"
                            href='<%# Eval("DriverID", "AssignDriver.aspx?Driver={0}&TB_iframe=true&height=220&width=400") %>'
                            title='<%# Eval("DriverID", "Assign truck for {0}") %>'>Assign Truck</a>
                            </td>
                        </tr>
                       
                        
                    </table>
                </div>
                    </div>
                </fieldset>
                </ItemTemplate>
        </telerik:RadListView>

           
        
    </ContentTemplate>
</asp:UpdatePanel>
    
</div>

Can any1 please help?

Tsvetina
Telerik team
 answered on 30 Jan 2012
2 answers
113 views
Hi,    
    
    I use RadTreeView inside Collapsible panel extender. I couldn view the last node in the tree. But when i expand or collapse the collapsible panel extender, the last node is visible. Below is the code i used in design    
 
<div class="left width350" id="divAdministrationModules" runat="server">
                                <div class="divborder maarginleft20 width350">
                                    <asp:Panel ID="panelAdministrationModules" CssClass="" runat="server">
                                        <div class="divSearchHeader width350">
                                            <asp:Label ID="LabelAdministrationTitle" runat="server" Text="Administration Modules"
                                                CssClass="divSearchHeaderText" />
                                            <div class="floatRight">
                                                <asp:ImageButton ID="ImageButtonAdministration" runat="server" ImageUrl="~/images/collapsible.gif"
                                                    AlternateText="(Show/Hide Details...)" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="panelAdministrationModulesContent" runat="server"  CssClass="maarginleft20 width350"
                                        Style="overflow: hidden;">
                                        <telerik:RadTreeView OnClientNodeChecked="AfterCheck" ID="treeViewAdministrationFunctionals"
                                            TriStateCheckBoxes="true" CheckBoxes="true"  runat="server" autopostbackoncheck="false"
                                            Width="350px">
                                        </telerik:RadTreeView>
                                    </asp:Panel>
                                    <ajaxToolkit:CollapsiblePanelExtender ID="AdministrationMenu" BehaviorID="cpbExtender2"
                                        runat="Server" TargetControlID="panelAdministrationModulesContent" ExpandControlID="panelAdministrationModules"
                                        CollapseControlID="panelAdministrationModules" Collapsed="false" ImageControlID="ImageButtonAdministration"
                                        ExpandedImage="~/images/Uncollapsible.png" CollapsedImage="~/images/collapsible.png"
                                        SuppressPostBack="true" />
                                </div>
                            </div>

Any Ideas would be great

Thanks,
Hema.
Hemamalini
Top achievements
Rank 1
 answered on 30 Jan 2012
0 answers
166 views

 

Hi Team,

 

We are using the telerik rad combo box (Version-2.7.2.0.) in our project.

We came across some issues with Rad combo box.

Follwing are the replication steps for the issue

  • Browse the webpage, Select Telerik  rad combo box
  • Keep the screen ideal for some time.Do not do any operation on page.
  • After sometime try to select any other record from rad combo box
  • This error message occurs:(ScrrenShot1)

 

On click of “Ok” button.We got one more error.:(ScrrenShot2)

Below are the details of telerik rad control and my application.

1)     It is web application developed in asp.net1.1

2)     It uses telerik rad combo box of version 2.7.2.0.

3)     It uses load on demand property with Item Requested event.

 

We have done some analysis. Below are findings

1)     The error pop up is coming from Rad combo box in built .JS file.

 

 

Can you please provide reason and solution for the following problem?

Reason for above error and solution.

Any service release of telerik control for this issue and whether it is compatible with asp.net1.1

 

 

Thanks & Regards,

Namrata

 

 

 

 

 

Namrata
Top achievements
Rank 1
 asked on 30 Jan 2012
6 answers
331 views
Version:  5.3.11.1116
Grid properties in aspx:
<telerik:RadGrid runat="server" ID="Grid" PageSize="20" Width="100%" EnableViewState="false" CssClass="basicList">
<MasterTableView  AutoGenerateColumns="false" AllowPaging="true" AllowCustomPaging="true" AllowSorting="true" DataKeyNames="ID">

We are using custom sorting and paging, and filtering.  We retrieve data via a stored procedure that returns the data sorted (but then the grid also sorts... see #2). 

We are experiencing two problems:
1)
Event sequence is causing 2-3 calls to the database on sorting or filtering -- first from NeedDataSource, and then from the sort or filter.  This raises scalability concerns.  How can we resolve?  When I use the following in the NeedDataSourc event as suggested in another post, the sort doesn't happen:
      if (e.RebindReason != GridRebindReason.PostbackViewStateNotPersisted)
            {
                LoadData(false);
            }
How can we retrieve data once and only once in all scenarios (initial load, sorting, fitlering, page size change, page index change, etc.)?

2)  In addition to reloading the data on sort, we are seeing an incorrect sort in at least one scenario.  Our default sort is descending on a datetimeoffset datatype column.  On page load, sort appears to be correct.  When one clicks on that column header, it correctly sorts ascending on those dates.  But when the column is clicked again to sort descending, it does not sort correctly --
e.g., it sorts a range from 12/08/2011 5:05 PM down to  12/05/2011 3:39 PM
then a range from  12/29/2011 3:33 PM down to  11/11/2011 4:58 PM,
and then a range from 01/04/2012 2:36 PM down to 01/04/2012 2:31 PM
The database is returning the data correctly sorted, so the grid is clearly resorting. 
Clicking again then correclty sorts by our default descending sort.  In this third state, the column now shows no sorting icon, so it's presumably correct because the grid is not resorting incorrectly at this point. 
But I haven't been able to find where or why.
How can we eliminate this incorrect sort?  Why & where/when (what event) is it happening?


Our LoadData() method accepts a boolean rebind parameter and calls Grid.Rebind() if true.

We have coded to the following events:
Grid.PageIndexChanged:  Calls LoadData(true) 
Grid.PageSizeChanged:  Calls LoadData(true)
Grid.SortCommand:  Calls LoadData(true)
Grid.ItemCommand: Calls LoadData(false) and Grid.Rebind()
Grid.ItemDataBound
Grid.NeedDataSource: Calls LoadData(false)

Page_Load: If not a postback, calls LoadData(false)

I can send this page code privately if needed.


Thank you.
Veli
Telerik team
 answered on 30 Jan 2012
5 answers
214 views
I created a toolbar with a button that launches a radwindow. However, when I close the radwindow, the toolbar does not respond. The mouseover and mouseclick events don't react. This problem is specific to the toolbar, because if I use a plain radbutton, it works fine.

Default.aspx:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="RadToolbarWindowTest._Default" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script type="text/javascript">
        function OpenWindow(sIDsURL) {
            var oManager = GetRadWindowManager();
            oManager.open(sURLsID);
            return false;
//                var oWnd = radopen(sURL, sID);
        }
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <telerik:RadWindowManager EnableShadow="true" Behaviors="Close, Move" ID="m_oRadWindowManager"
            runat="server" Modal="true" Skin="Windows7">
            <Windows>
                <telerik:RadWindow ID="m_oEditLocDialog" VisibleOnPageLoad="false" Title="Edit Location"
                    VisibleStatusbar="false" NavigateUrl="Window.aspx" runat="server" Modal="true"
                    Width="550" Height="500">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    <telerik:RadAjaxPanel runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadButton ID="m_oEditBtn" Text="EditBtn" runat="server" OnClick="OpenWindow">
        </telerik:RadButton>
        <telerik:RadToolBar ID="m_oOverviewToolbar" runat="server" Width="100%" EnableRoundedCorners="true"
            EnableShadows="true" OnButtonClick="OverviewToolBar_ButtonClick">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="EditTlbrBtn" CommandName="Edit">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
    </telerik:RadAjaxPanel>
</asp:Content>

Default.aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace RadToolbarWindowTest
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object senderEventArgs e)
        {
 
        }
 
        protected void OpenWindow(object senderEventArgs e)
        {
            OpenWindow(thism_oEditLocDialognull);
        }
 
        protected void OverviewToolBar_ButtonClick(object senderRadToolBarEventArgs e)
        {
            RadToolBarButton oBtn = e.Item as RadToolBarButton;
            if (oBtn.CommandName == "Edit")
            {
                OpenWindow(thism_oEditLocDialognull);
            }
        }
 
        public static void OpenWindow(Control oParentCtrlRadWindow oWindowstring sURL)
        {
            RadScriptManager.RegisterStartupScript(oParentCtrloParentCtrl.GetType(), "openWnd"string.Format("OpenWindow('{0}', '{1}');"oWindow.IDsURL), true);
        }
    }
}

Window.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Window.aspx.cs" Inherits="RadToolbarWindowTest.Window" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>

Window.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace RadToolbarWindowTest
{
    public partial class Window : System.Web.UI.Page
    {
        protected void Page_Load(object senderEventArgs e)
        {
 
        }
    }
}


This is either my fault (I don't have radtoolbar/radwindow configured correctly) or it is a bug. Any help would be greatly appreciated.
Dimitar Terziev
Telerik team
 answered on 30 Jan 2012
3 answers
541 views
Is there a property somewhere which will expand\collapse nodes, and\or set the default node state to expanded?

(without having to do a ItemDataBound)
Mira
Telerik team
 answered on 30 Jan 2012
3 answers
97 views
Hi

I'm trying to use the visual style builder but I keep getting some javascript errors.

Webpage error details
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.2; chromeframe/16.0.912.77; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Thu, 26 Jan 2012 09:47:48 UTC
 
Message: Object expected
Line: 2
Char: 12379
Code: 0
 
Message: Object expected
Line: 2
Char: 12379
Code: 0

Has anyone experienced the same issue? Is there a fix?

Thanks
Martin.
Bozhidar
Telerik team
 answered on 30 Jan 2012
2 answers
85 views
In My application have so many Grids. I want upgrade it all by using Telerik Grid.
My idea  to implement radgrid as a usercontrol and column names should be defined in each page of config files.
can any one provide me the way of approach and steps to create it. Thanks in advance.
Krishna
Top achievements
Rank 1
 answered on 30 Jan 2012
9 answers
218 views
We use RadControls for ASP.NET AJAX version 2011.2.712. And we think the point (.) on the numeric keyboard isn't functioning correctly in MS IE 9 for the RadNumericTextBox.

We use the following markup for the control.

 

<telerik:RadNumericTextBox id="tbVanKm" runat="server" Width="150px" 
    MaxLength="10"  NumberFormat-GroupSeparator=""  
    NumberFormat-DecimalSeparator="." NumberFormat-DecimalDigits="3" 
    Culture="Dutch (Netherlands)">
    <ClientEvents OnError="onError" > </ClientEvents>
</telerik:RadNumericTextBox>
Vasil
Telerik team
 answered on 30 Jan 2012
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?