Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views
I have a DetailsView control that I'm adding RadTextBox's via the EditTemplate. An DataBinding event handler is added to each rtb.

Everything works fine except when I go to Update or Insert a new record. When it comes time to grab the data values from the textboxes, they either have their default values from the databind or their empty. Because Templates need to be created on every post back, I'm struggling on finding  a solution for persisting the values that were in the textboxes prior to the post back. Any assistance would be greatly appreciated.

Thanks
Alex
Nikolay Rusev
Telerik team
 answered on 26 Jan 2009
10 answers
267 views
Hi,

After the page has loaded there is period in which IE, both 6 and 7, locks up. The page has already loaded but there is some kind of pre-processing taking place.

If this were to happen on the first load of the site only and subsequent loads were unaffected then it would be acceptable. Firefox has a delay but it is tiny and acceptable.

I have been trawling through the documentation but can find no mention of this,  how can this delay be removed or contained to first load only?

Here is a video demonstrating the problem.

Thanks,

Leon.



Neeraj Jain
Top achievements
Rank 1
 answered on 26 Jan 2009
1 answer
110 views
Hi,
I have a master page that has a RadSplitter on it with 2 panes ... left and right. On the left pane I have a RadTreeView. On the right pane I have the content.

Most of the time I use a RadAjaxPanel or the RadAjaxManager. However, on the page I am having a problem with, I am using a FileUpload control which means no ajax.

As a result any postback and the tree disappears. If I remove the FileUpload and just have a button on the content page with no RadAjaxPanel the tree still disappears.

Any ideas?
Thanks ... Ed
Atanas Korchev
Telerik team
 answered on 26 Jan 2009
3 answers
451 views
We have a situation where a lot of RadComboBox's are being rendered in panels that are closed during the loading of the page. I am not sure why this is happening, but making those tables hidden initially drastically reduces the page load time.

Now we want to be able to make the table in a panel that is clicked on visible again when it is expanded and hidden when it is collapsed. We are doing this client side since server side makes the whole page refresh which then kills the load times again as you open all the panels.

I have tried many different ways to get this work using examples on the site and through other post and can't seem to get the right combination. Any help would be appreciated on how to do this or how to make the panels not try to render the combobox's when they are visible to begin with. Thanks!

    function OnExpand(sender, eventArgs) {  
 
        var panelbar = $find("<%= RadPanelBar1.ClientID %>");  
        var item = panelbar.findControl("opt1item");  
        //item.style.display = 'block';  
        item.style.visibility = 'visible';  
    }  
 
    function OnCollapse(sender, eventArgs) {  
        var panelbar = $find("<%= RadPanelBar1.ClientID %>");  
        var item = panelbar.findControl("opt1item");  
        //item.style.display = 'none';  
        item.style.visibility = 'hidden';  
    } 

<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Width="100%" onclientitemcollapse="OnCollapse" onclientitemexpand="OnExpand" > 
    <CollapseAnimation Duration="100" Type="None" /> 
    <Items> 
          <telerik:RadPanelItem ID="rpiOpt1" runat="server" Text="(+) Optional Fields">  
            <Items> 
                <telerik:RadPanelItem Value="valuestring">  
                    <ItemTemplate> 
                        <table id="opt1item" visible="false" runat="server" width="100%">  
                            <tr> 
                                <td align="right">  
                                    <asp:Label ID="LabelCS" runat="server" Text="Customer Solicitation #: " TabIndex="-1"></asp:Label> 
                                </td> 

Atanas Korchev
Telerik team
 answered on 26 Jan 2009
7 answers
309 views
Is there any way to validate the text that is entered either in the filter or when editing a record?(for example a datetime field generates error if the user enters something else).
Thank you.
Daniel
Telerik team
 answered on 26 Jan 2009
2 answers
155 views
I have two panels set up that toggle their visiblility.  The first panel contains a splitter with two panes and a split bar in between.  If the first panel is visible, i can expand/collapse my pane's without a problem (initially).  If i collapse the a pane, then make the first panel visible=false....then make it visible=true, the panes are "stuck" in collapse mode.  I cannot resize or expand.  any ideas?
<asp:Panel ID="BudgetPnl" runat="server"> 
                                    <table width="100%"> 
                                        <tr> 
                                            <td colspan="2"> 
                                                <telerik:RadSplitter ID="ScheduleBudgetSplitter" runat="server" Height="450" Width="100%"> 
                                                    <telerik:RadPane ID="SchedulePane" Scrolling="Both" Width="50%" PersistScrollPosition="true" runat="server"> 
                                                        <des:popupcalendar id="ScheduleCalendar" runat="server" /> 
                                                        <asp:Panel ID="ProjectBudgetProjectsPanel" runat="server"> 
                                                            <telerik:RadGrid ID="ProjectGrid" runat="server"> 
                                                                <ClientSettings AllowRowsDragDrop="true" > 
                                                                    <Selecting AllowRowSelect="true" /> 
                                                                    <Scrolling AllowScroll="false" /> 
                                                                    <ClientEvents OnRowDropping="onProjectRowDropping"/> 
                                                                </ClientSettings> 
                                                                <MasterTableView Width="100%" AutoGenerateColumns="false" ClientDataKeyNames="Level,BaseID,StateMode" DataKeyNames="ID" HeaderStyle-Wrap="false"> 
                                                                    <Columns> 
                                                                        <telerik:GridTemplateColumn HeaderText="&nbsp;" UniqueName="ControlColumn" ItemStyle-Wrap="false"> 
                                                                            <ItemTemplate> 
                                                                                <asp:imagebutton id="AddProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_add.gif" OnCommand="AddProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Add A Child Task" runat="server" /> 
                                                                                <asp:imagebutton id="DeleteProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_delete.gif" OnCommand="DeleteProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Delete Task" runat="server" /> 
                                                                                <asp:imagebutton id="CancelDeleteProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_reject.gif" OnCommand="CancelDeleteProjectBtn_Command" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Cancel Delete Task" runat="server" />                                                                                 
                                                                                <asp:imagebutton id="OutdentProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_left.gif" OnCommand="DentProjectBtn_Command" CommandName="outdent" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Outdent Task" runat="server" /> 
                                                                                <asp:imagebutton id="IndentProjectBtn" CausesValidation="true" ImageUrl="~/images/buttons/btn_right.gif" OnCommand="DentProjectBtn_Command" CommandName="indent" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' ToolTip="Indent Task" runat="server" /> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                        <telerik:GridTemplateColumn HeaderText="&nbsp;" UniqueName="ProjectColumn" ItemStyle-Wrap="false"> 
                                                                            <ItemTemplate> 
                                                                                <input type="hidden" id="ID" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.ID")%>'> 
                                                                                <input type="hidden" id="ParentID" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.ParentID")%>'> 
                                                                                <input type="hidden" id="Level" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.Level")%>'> 
                                                                                <input type="hidden" id="Lineage" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.Lineage")%>'> 
                                                                                <input type="hidden" id="HasChildren" runat="server" value='<%# DataBinder.Eval(Container,"DataItem.HasChildren")%>'> 
                                                                                <span style="text-decoration:none;"><%#DataBinder.Eval(Container, "DataItem.Padding")%></span> 
                                                                                <asp:ImageButton ID="OpenCloseBtn" OnCommand="ProjectOpenCloseBtn_OnCommand" CommandName='<%# DataBinder.Eval(Container,"DataItem.ID")%>' CausesValidation="true" runat="server" /> 
                                                                                <asp:LinkButton ID="ProjectSelectBtn" OnCommand="ProjectSelectBtn_OnCommand" Text='<%# "(" & DataBinder.Eval(Container,"DataItem.Code") & ")"%>' CommandArgument='<%# DataBinder.Eval(Container,"DataItem.ID")%>' CausesValidation="true" runat="server"></asp:LinkButton> 
                                                                                <des:LabelTextBox ID="ProjectNameTxt" Text='<%#DataBinder.Eval(Container, "DataItem.Name")%>' Columns="60" runat="server"></des:LabelTextBox> 
                                                                                <des:DSRequiredFieldValidator ID="ReqProjectNameTxt" ControlToValidate="ProjectNameTxt"  runat="server"></des:DSRequiredFieldValidator> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                        <telerik:GridTemplateColumn HeaderText="Start Date" UniqueName="StartDateColumn" ItemStyle-Wrap="false"> 
                                                                            <ItemTemplate> 
                                                                                <des:LabelDateBox ID="StartDateTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.StartDate","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                <des:DSRegularExpressionValidator ID="RegStartDateTxt" ControlToValidate="StartDateTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                        <telerik:GridTemplateColumn HeaderText="End Date" UniqueName="EndDateColumn" ItemStyle-Wrap="false"> 
                                                                            <ItemTemplate> 
                                                                                <des:LabelDateBox ID="EndDateTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.EndDate","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                <des:DSRegularExpressionValidator ID="RegEndDateTxt" ControlToValidate="EndDateTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                        <telerik:GridTemplateColumn HeaderText="Start Date (Actual)" UniqueName="StartDateActualColumn" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="center"> 
                                                                            <ItemTemplate> 
                                                                                <des:LabelDateBox ID="StartDateActualTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.StartDateActual","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                <des:DSRegularExpressionValidator ID="RegStartDateActualTxt" ControlToValidate="StartDateActualTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                        <telerik:GridTemplateColumn HeaderText="End Date (Actual)" UniqueName="EndDateActualColumn" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="center"> 
                                                                            <ItemTemplate> 
                                                                                <des:LabelDateBox ID="EndDateActualTxt" SharedCalendarID="ScheduleCalendar" Columns="9" Text='<%# DataBinder.Eval(Container,"DataItem.EndDateActual","{0:d}")%>' runat="server"></des:LabelDateBox> 
                                                                                <des:DSRegularExpressionValidator ID="RegEndDateActualTxt" ControlToValidate="EndDateActualTxt" ValidationExpressionType="DateType" runat="server"></des:DSRegularExpressionValidator> 
                                                                            </ItemTemplate> 
                                                                        </telerik:GridTemplateColumn> 
                                                                    </Columns> 
                                                                </MasterTableView> 
                                                            </telerik:RadGrid> 
                                                        </asp:Panel> 
                                                    </telerik:RadPane> 
                                                    <telerik:RadSplitBar ID="ScheduleBudgetSplitBar" CollapseMode="Both" EnableResize="True" runat="server" /> 
                                                    <telerik:RadPane ID="BudgetPane" Scrolling="X" Width="50%" PersistScrollPosition="true" runat="server"> 
                                                        <table width="100%"> 
                                                            <tr> 
                                                                <td class="NormalBold">Budget Summary</td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td class="DisplayPanel"> 
                                                                    <asp:Panel ID="ProjectBudgetSummaryPanel" runat="server"> 
                                                                        
                                </asp:Panel> 

Dave Myers
Top achievements
Rank 1
 answered on 26 Jan 2009
3 answers
119 views
Does anyone know if it is possible to enable some type of color coding of the HTML code in the editor.  Something that would help distinguish HTML elements from actual content.  Something like what is used by VS.NET and many other popular HTML editors.

Thanks!
-Mark
Tervel
Telerik team
 answered on 26 Jan 2009
1 answer
127 views
Hi guys can you please help me to find out this issues:
i am using radgrid with a webuserForm but when i click on Update button i can't get the values of the control of the row that i've already selected

on the radgrid  itemCommand event I have this code

 

protected void lstCompetitions_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

    switch (e.CommandName.ToString())

 

    {

 

        case "Update":

 

        {

 

        GridEditableItem editedItem = e.Item as GridEditableItem; 

 

 

        string cell = (editedItem["txtdescription"].Controls[0] as TextBox).Text;

 

 

 

 

        break;

 

    }

 

 

}

and this is the  error
base {Telerik.Web.UI.GridException} = {"The current EditFormType does not support the requested editing capabilities."}

what's wronge?

Daniel
Telerik team
 answered on 26 Jan 2009
3 answers
100 views
I am using PageAdminTreeview in my DNN 4.9 installation as a site map and it is working fine. When I upgrade the site to DNN 5.0, then I get the following error:

Error: Intranet Site Map is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: C:\My Webs\HOME5\DesktopModules\PageAdminTreeview\PageAdminTreeview.ascx.vb(305): error BC30456: 'UpdatePortalTabOrder' is not a member of 'DotNetNuke.Entities.Tabs.TabController'. ---> System.Web.HttpCompileException: C:\My Webs\HOME5\DesktopModules\PageAdminTreeview\PageAdminTreeview.ascx.vb(305): error BC30456: 'UpdatePortalTabOrder' is not a member of 'DotNetNuke.Entities.Tabs.TabController'. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilites.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
Jerry Jansen
Top achievements
Rank 1
 answered on 26 Jan 2009
0 answers
131 views
Hi

I have a webform that uses masterpage. I want to register my custom skin for use in the webform. I have a contentplaceholder in my masterpage within the html head. In my webform, i place my skin registration (link) in the content for the contentplaceholder. The skin doesnt seem to get loaded. If I put the skin reg directly in the masterpage html head, the skin is loaded properly. Is this a limitation or am I doing something wrong?

Thanks in advance

--- DOESNT LOAD
--- master page 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head id="pageHead" runat="server">

 

 

 

<asp:ContentPlaceHolder ID="head" runat="server">

 

 

</asp:ContentPlaceHolder>

 

</

 

head>

 

--- end master page
--- web form

<

 

asp:Content ID="ContentHeader" ContentPlaceHolderID="head" runat="server">

 

 

<link id="cssTabStrip" runat="server" href="~/Skins/MySkin/TabStrip.MySkin.css" rel="stylesheet" type="text/css" />

 

 

 

</

 

asp:Content>
--- end web form
--- END DOESNT LOAD

--- LOADS PROPERLY
--- master page 
<html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head id="pageHead" runat="server">

 

 

 

<link id="cssTabStrip" runat="server" href="~/Skins/MySkin/TabStrip.MySkin.css" rel="stylesheet" type="text/css" />

 

 

 

 

<

 

asp:ContentPlaceHolder ID="head" runat="server">

 

 

 

 

</asp:ContentPlaceHolder>

 

</

 

head>

 

 

 

--- end master page
--- web form
<asp:Content ID="ContentHeader" ContentPlaceHolderID="head" runat="server">
</
asp:Content>
--- end web form
--- END LOADS PROPERLY

 

 

 

 

Darryl
Top achievements
Rank 1
 asked on 26 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?