Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hi guys.

All of a sudden I started getting this popup-message every time I try to save an image in the image editor.

I can't remember changing anything remotely connected to the image editor in weeks.
Both the width and height textboxes are filled with valid pixel value.

It doesn't matter what type of an image it is.
It doesn't matter if I actually change the dimensions or not.

Has anyone experienced this?

Regards,
-DJ-

Lini
Telerik team
 answered on 07 Sep 2009
1 answer
95 views
hi, i am using radCaptcha to develop my application. i have a few validation for the form and one captcha. After all the validation of the others are validate and the data have successfully save to the database but the captcha has hit the error for null. i have try it a few time but even i have key in the true key, the captcha will hit null exception after the process. Anyone know how to solve this problem?
Pero
Telerik team
 answered on 07 Sep 2009
4 answers
148 views
Hey,

I am using a FormTemplate to create my edit form on a web app.  I am trying to DataBind a field in the form with Data from the text boxes inside that form. 

This is the code I am trying to bind:

ConfirmationText='<%# string.Format("tht{0}tn euattn{1}", Eval("YourOffer"), Eval("SecretOffer")) %>'

YourOffer and SecretOffer are both text boxes on the form.  The confirmation text is part of a server control that my boss created and I am trying to bind the data from the text boxes into the confirm text to make sure that the user is sure they are doing what they want to do.  Any help trying to figure this out would be greatly appreciated.


Thanks,


Kyle



Yavor
Telerik team
 answered on 07 Sep 2009
1 answer
97 views
I have wrapped my grid in an updatepanel and now all my RadComboBoxes that are
located in my FilterTemplate don't work.  They won't even drop down and show what
is in them.  I get a error on my page indication that the onclientchanged function
located in my RadScriptBlock is undefined.  It worked perfectly before the updatepanel
and works perfectly after removing it.  Any ideas?

Joshua
Vlad
Telerik team
 answered on 07 Sep 2009
1 answer
145 views
I have the below Visual Basic .net code to export data from a RadGrid to Excel.
 

RadGrid1.MasterTableView.ExportToExcel()

However, the data has an .xlsm extension. 

Are additional settings required?

Thanks in advance for any insight.  Rob

Vlad
Telerik team
 answered on 07 Sep 2009
1 answer
85 views
Hello Telerik Team,

 I want to localize the  FastNavigationSettings(Today,OK,Cancel) buttons of 'SelectedDateCalendar' present in the RadScheduler1. I have used the following code to do so inside my Page_Load event everytime:

 

 

 

RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;

 

 

// Set the RadCalendar properties

 

 

 

popupCalendar.CultureInfo = System.Threading.Thread.CurrentThread.CurrentUICulture;

 

popupCalendar.FastNavigationSettings.CancelButtonCaption = GetResourceString(

"Global_Confirm_CancelText");

 

popupCalendar.FastNavigationSettings.TodayButtonCaption = GetResourceString(

"Schedule_CalendarView_Today");

 

popupCalendar.FastNavigationSettings.OkButtonCaption = GetResourceString(

"Global_Confirm_OkText");

 

 

This works the first time user visits the FastNavigationkeys. But when user selects any other date, and again visits the 'SelectedDateCalendar' the FastNavigationkeys are not localized - they appear in English.

Please let me know how to fix this.

Also, to localize the entire RadScheduler, I have used the following code:

 

RadScheduler1.Culture = System.Threading.

Thread.CurrentThread.CurrentUICulture;

Regards,
Abhishek

 

Abhishek Dixit
Top achievements
Rank 1
 answered on 07 Sep 2009
1 answer
187 views
Currently we use Telerik ASP.NET AJAX Controls version 2009.2.701.35 and get an unexpected "SplitterItemsCollection must contain SplitterItem objects" error. We have altready tried to empty the AjaxManager but the problem stays. Can anyone have a quick review of the code?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="BIS ID Content Runner for the Web " %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!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 id="Head1" runat="server">  
      
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
            <style type="text/css">  
                html, body, form    
                    {    
                    margin:0px;    
                    padding:0px;    
                    height:100%;    
                    background-image: url(Skins/Default/Common/Default_Top.jpg);  
                    background-repeat: repeat-x;  
                    }  
            </style> 
        <link rel="stylesheet" type="text/css" href="/css/bis.css">  
    <script type="text/javascript">  
        var ArchiveShowing = ("<%= myCR.ArchiveShowing %>" == "True");  
        var OriginalShowing = ("<%= myCR.OriginalShowing %>" == "True");  
    </script> 
    <script type="text/javascript">  
        function ShowProfileForm() {  
            window.radopen("/Forms/Profile.aspx", "winProfile");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowInsertForm(id) {  
            window.radopen("/Forms/EditRecord.aspx", "insertForm");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowEditForm(id) {  
            window.radopen("/Forms/EditRecord.aspx?ID=" + id, "editForm");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
        function ShowHelpForm() {  
            window.radopen("Forms/Help.aspx", "winHelp");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
 
        function ShowAboutForm() {  
            window.radopen("Forms/About.aspx", "winAbout");  
            return false;  
        }  
    </script>    
    <script type="text/javascript">  
      
        function RefreshGrid() {  
            var masterTable = $find("<%= grMain.ClientID %>").get_masterTableView();  
            masterTable.rebind();  
            }   
    </script>    
    <script type="text/javascript">  
 
        function RowSelected(sender, args) {  
                var toolBar = $find("<%=tbMain.ClientID %>");  
                var grid = $find("grMain");  
                var MasterTable = grid.get_masterTableView();  
                var SelectedRows = MasterTable.get_selectedItems();  
                if (SelectedRows.length > 1) toolBar.findItemByValue("tbWijzig").disable();  
                if (SelectedRows.length < 1) toolBar.findItemByValue("tbWijzig").disable();  
                if (SelectedRows.length == 1) toolBar.findItemByValue("tbWijzig").enable();  
                toolBar.findItemByValue("tbVerwijder").enable();  
                if (SelectedRows.length < 1) toolBar.findItemByValue("tbVerwijder").disable()  
 
                if (ArchiveShowing) {  
 
                    toolBar.findItemByValue("tbNaarArch").disable();  
                    if (SelectedRows.length > 0)  
                        toolBar.findItemByValue("tbNaarOrg").enable();  
                    if (SelectedRows.length < 1)  
                        toolBar.findItemByValue("tbNaarOrg").disable();  
                          
                }  
 
                if (OriginalShowing) {  
 
                    toolBar.findItemByValue("tbNaarOrg").disable();  
                    if (SelectedRows.length > 0)  
                        toolBar.findItemByValue("tbNaarArch").enable();  
                    if (SelectedRows.length < 1)  
                        toolBar.findItemByValue("tbNaarArch").disable();  
                          
                }  
            }           
              
    </script> 
        </telerik:RadCodeBlock>          
      
    </head> 
      
    <body class="BODY">  
        <form id="FormMain" method="post" runat="server">  
        <telerik:RadScriptManager  
            ID="ScriptManager" 
            runat="server"   
            EnableTheming="True">  
        </telerik:RadScriptManager> 
          
        <telerik:RadAjaxManager  
            ID="amMain" 
            runat="server" onajaxrequest="amMain_AjaxRequest">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="amMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="tbMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="LeftPane">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="LeftPane"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="grMain">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tbMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="lblKop" /> 
                        <telerik:AjaxUpdatedControl ControlID="grMain" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
          
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"></telerik:RadStyleSheetManager> 
                   
                    <asp:SqlDataSource  
                        ID="dsPanelbar" 
                        runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ContentRunner %>"   
                        SelectCommand="SELECT * FROM [q_navbarweb]"   
            onselecting="dsPanelbar_Selecting">  
                    </asp:SqlDataSource> 
              
                    <asp:SqlDataSource  
                        ID="dsGrid" 
                        runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ContentRunner %>"   
                        oninit="dsGrid_Init"   
                        SelectCommand="SELECT * FROM [t_bezoekers]">  
                    </asp:SqlDataSource> 
                              
                <div width="100%"  border="0px" class=workplace>  
                    <telerik:RadToolBar  
                        ID="tbMain" 
                        style="clear:both" 
                        Runat="server" 
                        Width="100%" 
                        BorderStyle="None" 
                        BorderWidth="0px"   
                        onbuttonclick="tbMain_ButtonClick"   
                        Font-Bold="True"   
                        Font-Names="Trebuchet MS" Font-Size="12pt">  
                        <CollapseAnimation  
                            Type="OutQuint" 
                            Duration="200">  
                        </CollapseAnimation> 
                        <Items> 
                            <telerik:RadToolBarButton runat="server" value="tbProfiel"          Text="Hallo, Gebruiker"    CommandName="cmdProfiel"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep1"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNieuw"            Text="Nieuw"               CommandName="cmdNieuw"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbWijzig"           Text="Wijzig"              CommandName="cmdWijzig"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbVerwijder"        Text="Verwijder"           CommandName="cmdVerwijder"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep2"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNaarOrg"          Text="Naar Origineel"      CommandName="cmdNaarOrg"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbNaarArch"         Text="Naar Archief"        CommandName="cmdNaarArch"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" IsSeparator="True"         Text="sep3"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbShowOrg"          Text="Toon Orginelen"      CommandName="cmdToonOrg"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbShowArch"         Text="Toon Archief"        CommandName="cmdToonArch"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" Text="sep4"                IsSeparator="True"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbLogUit"           Text="Log uit"             CommandName="cmdLogUit"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbHelp"             Text="Help"                CommandName="cmdHelp"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" value="tbAbout"            Text="About"               CommandName="cmdAbout"></telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar><div style="clear:both"><!-- --></div>  
                    </div> 
                    <div class=workplace>  
                <telerik:radsplitter  
                    id="splMain" 
                    runat="server" 
                    height="100%" 
                    width="100%"   
                    Skin="Office2007" 
                    style="clear:both" 
                    HeightOffset="30">  
                    <telerik:radpane  
                        id="LeftPane" 
                        runat="server" 
                        height="100%" 
                        width="212">  
                        <telerik:RadPanelBar  
                            ID="pbMain" 
                            Runat="server" 
                            DataFieldID="ID"   
                            DataFieldParentID="ParentID" 
                            DataSourceID="dsPanelbar" 
                            DataTextField="Text"   
                            onitemdatabound="pbMain_ItemDataBound"   
                            width="100%" 
                            Skin="Outlook"   
                            CookieName="ContentRunnerPanelBar"   
                            ExpandMode="FullExpandedItem"   
                            PersistStateInCookie="True"   
                            CollapseDelay="200" ExpandDelay="200" onitemclick="pbMain_ItemClick">  
                            <CollapseAnimation   
                                Duration="220"   
                                Type="InOutElastic" /> 
                            <ExpandAnimation   
                                Duration="220"   
                                Type="InOutElastic" /> 
                        </telerik:RadPanelBar><div style="clear:both"><!-- --></div>  
                    </telerik:radpane> 
                    <telerik:radsplitbar id="RadSplitBar1" runat="server" style="clear:both"></telerik:radsplitbar> 
                    <telerik:radpane id="MainPane" runat="server" style="clear:both">  
                    <telerik:RadAjaxPanel  
                        BackImageUrl="~/Common/Images/AppMain/AppMainToolbarBackGround.jpg"   
                        style="clear:both" 
                        ID="apMain" 
                        runat="server" 
                        height="32px" 
                        width="100%">  
                          <asp:Panel   
                                ID="Panel3"   
                                runat="server"   
                                Height="33px"   
                                Width="100%"   
                                BackImageUrl="~/Common/Images/AppMain/AppMainToolbarBackGround3.jpg" CssClass="GridAltRow_Outlook">  
                                <asp:Panel   
                                    ID="Panel1"   
                                    runat="server"   
                                    Height="4px"   
                                    Width="100%">  
                                </asp:Panel> 
                                <asp:Label  
                                    ID="lblKop" 
                                    runat="server" 
                                    BorderStyle="None"   
                                    BorderWidth="6px" 
                                    Font-Names="Trebuchet MS" 
                                    Font-Size="Medium"   
                                    Text="&amp;nbsp;&amp;nbsp;::BIS ID Content Runner"></asp:Label> 
                            </asp:Panel> 
                    </telerik:RadAjaxPanel> 
                <telerik:RadGrid  
                    ID="grMain" 
                    runat="server" 
                    AllowFilteringByColumn="True"   
                    AllowPaging="True" 
                    AllowSorting="True"   
                    DataSourceID="dsGrid" 
                    GridLines="None"   
                    Height="99%" 
                    Skin="Outlook" 
                    Width="99%"   
                    onitemcommand="grMain_ItemCommand"   
                    onneeddatasource="grMain_NeedDataSource" 
                    oncolumncreated="grMain_ColumnCreated" 
                    AllowAutomaticDeletes="True" 
                    AllowAutomaticInserts="True" 
                    AllowAutomaticUpdates="True"   
                    AllowCustomPaging="True" 
                    onitemdatabound="grMain_ItemDataBound"   
                    onprerender="grMain_PreRender" 
                    ShowFooter="True" 
                    ShowStatusBar="True" PageSize="100" VirtualItemCount="10"   
                            AllowMultiRowSelection="True"   
                            onselectedindexchanged="grMain_SelectedIndexChanged">  
                    <PagerStyle AlwaysVisible="True" EnableSEOPaging="True" /> 
                <MasterTableView   
                    DataSourceID="dsGrid" 
                    allowcustomsorting="True" 
                                    datakeynames="ID"   
                                    CommandItemDisplay="Top">  
                                    <RowIndicatorColumn Visible="False">  
                                        <HeaderStyle Width="20px" /> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn Resizable="False" Visible="False">  
                                        <HeaderStyle Width="20px" /> 
                                    </ExpandCollapseColumn> 
                                    <CommandItemTemplate> 
                                        <img src="Skins/Outlook/Grid/AddRecord.gif" /><a href="#" onclick="return ShowInsertForm();">Nieuw</a> 
                                        <img src="Skins/Outlook/Grid/AddRecord.gif" /><a href="#" onclick="return RefreshGrid(1);">Ververs tabel</a> 
                                    </CommandItemTemplate> 
                                    <Columns> 
                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> 
                                        <telerik:GridButtonColumn  
                                            ButtonType="LinkButton" 
                                            CommandArgument="{0}"   
                                            CommandName="MyEdit" 
                                            HeaderText="" 
                                            Text="Wijzig" 
                                            UniqueName="colEdit">  
                                        </telerik:GridButtonColumn> 
                                        <telerik:GridButtonColumn  
                                            ButtonType="LinkButton" 
                                            CommandArgument="{0}"   
                                            CommandName="MyDelete" 
                                            ConfirmText="Wilt u deze regel verwijderen?"   
                                            HeaderText="" 
                                            Text="Verwijder" 
                                            UniqueName="colDelete">  
                                        </telerik:GridButtonColumn> 
                                    </Columns> 
                                    <EditFormSettings> 
                                        <PopUpSettings ScrollBars="None" /> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                                <ClientSettings  
                                    allowkeyboardnavigation="True">  
                                    <Selecting AllowRowSelect="True" /> 
                                </ClientSettings> 
                            <FilterMenu EnableTheming="True" Skin="Outlook">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 
                        <br /> 
                    </telerik:radpane> 
                </telerik:radsplitter> 
        <telerik:RadWindowManager   
            ID="wmMain"   
            runat="server"   
            Skin="Default"   
            Height="500px"   
            Left="50px"   
            oninit="wmMain_Init"   
            Top="50px"   
            Width="700px">  
            <Windows> 
                <telerik:RadWindow   
                    ID="winEdit"   
                    runat="server"   
                    Height="500px" 
                    Left="100px" 
                    NavigateUrl="Forms\EditRecord.aspx" 
                    style="display:none;" 
                    Top="100px" 
                    Width="700px" 
                    Modal="True"   
                    Behaviors="Close" BorderWidth="0px">  
                </telerik:RadWindow> 
                  
                <telerik:RadWindow   
                    ID="winProfile"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms\Profile.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="Profile"   
                    Behaviors="Move"   
                    Modal="True"   
                    VisibleStatusbar="False">  
                </telerik:RadWindow> 
                  
                <telerik:RadWindow   
                    ID="winHelp"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms\Help.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="help" 
                    Behaviors="Close" 
                    Modal="True"   
                    VisibleStatusbar="False" Behavior="Close">  
                </telerik:RadWindow> 
 
                <telerik:RadWindow   
                    ID="winAbout"   
                    runat="server"   
                    Left="100px"   
                    NavigateUrl="Forms/About.aspx"   
                    style="display:none;"   
                    Top="100px"   
                    width="400" 
                    height="256" 
                    Title="help" 
                    Behaviors="Close" 
                    Modal="True"   
                    VisibleStatusbar="False" Behavior="Close">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
    </form> 
</body> 
</html> 
Tsvetie
Telerik team
 answered on 07 Sep 2009
1 answer
288 views
Hi,

I have a table with a detail table. Is it possible to remove the table header from the detail tables except from the first detail table? (There are soooooo many table headers on the page...)
 


Shinu
Top achievements
Rank 2
 answered on 07 Sep 2009
0 answers
136 views
I have a database that returns values in the following format

Electronics | Television | HDTV | Samsung
Electronics | Music | MP3 player | Ipod
Electronics | Music | MP3 player | Zune

etc etc

I would like to represent this as a tree structure

Electronics
         -  Television
            --       HDTV  
                      --- Samsung
         - Music
            --  MP3 Player
                    --- Ipod
                    --- Zune

I know the separator will be the '|' character.  Is there a way I can populate the TreeView control directly by reading the above string /s .
Manny Khurana
Top achievements
Rank 1
 asked on 07 Sep 2009
3 answers
233 views
I have an auto-generated grid, which is bound to a data table at run time.  The # of columns varies depending on the data table but we're talking about 30 to 50 columns.

All columns are set to width of 50 pixels (for simplicity at this point).

The grid is scrollable with 3 frozen columns so users can scroll horizontally to see all columns...much like using an Excel worksheet.

The grid renders correctly (IE 7.0).  However, when I scroll quickly to the right (by dragging the scroll bar), the columns that come to view don't render correctly,-- they get narrower, sort of squeezed down to 10 to 20 pixels (arbitrarily).  Consequently, the cell contents start to run together as well and the grid is virtually no good to the users at that point.  I can recover by clicking the browser refresh button, which repopulate and reset the grid to the initial position, with scroll bar parked at the left border.

If I click to the right of the scroll bar to move one "page", I get the same problem.

If I drag the scroll bar slowly and steadily to the right, then it's not a problem...but that won't be acceptable to the users.  They are accustomed to navigating Excel worksheets at high speeds.

I should also point out that scrolling to the left quickly does not have any problems.

Has anyone run into this?  Can anyone offer some advise or suggestions?

Thanks.

Barry
Barry
Top achievements
Rank 1
 answered on 07 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?