Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
183 views
Hello,

I've noticed a buggy behaviour using Telerik RadTabStrip inside ASP.NET FormView. First of all, I tried to create an example without FormView and everything worked fine. Then I put RadTabStrip and RadMultiPage inside EditItemTemplate of FormView and a problem occured.

I have 3 tabs, and when I set one of them Visible to false in Page.PreRender event, for the first time, the tab is not rendered. But after postback, even though the value is correctly loaded from viewstate and the Visible property is false (according to debugger), the tab is unexpectably rendered.

Here is the code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestTabStrip.Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:FormView ID="fvSystemConfig" DefaultMode="Edit" DataSourceID="odsDS" RenderOuterTable="false" runat="server">
            <EditItemTemplate>
                <telerik:RadTabStrip ID="rts" runat="server" MultiPageID="rmp">
                    <Tabs>
                        <telerik:RadTab Text="Core" PageViewID="rpv1" />
                        <telerik:RadTab Text="UI" PageViewID="rpv2" />
                        <telerik:RadTab Text="Export" PageViewID="rpv3" />
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="rmp" SelectedIndex="0" CssClass="RadTabStripMultipage" runat="server">
                    <telerik:RadPageView ID="rpv1" runat="server">
                        <asp:TextBox ID="tb" Text='<%# Bind("Name") %>' runat="server" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="rpv2" runat="server">
                        B
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="rpv3" runat="server">
                        C
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
                <asp:Button ID="Button1" CommandName="Update" Text="Save" runat="server" />
            </EditItemTemplate>
        </asp:FormView>
        <asp:ObjectDataSource ID="odsDS" runat="server" SelectMethod="GetData" TypeName="TestTabStrip.Default" UpdateMethod="UpdateData" />
    </div>
    </form>
</body>
</html>

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;
using System.Collections;
 
namespace TestTabStrip
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected override void OnPreRender(EventArgs e)
        {
            ((RadTabStrip)fvSystemConfig.Row.FindControl("rts")).Tabs[1].Visible = false;
            base.OnPreRender(e);
        }
 
        public IEnumerable GetData()
        {
            return new List<object> { new { Name = "testing text" } };
        }
 
        public void UpdateData(string name)
        {
        }
    }
}

The version that I am using is 2010 Q3. Please let me know, if the bug has been repaired in the newer version, but in the very moment, I cannot test it in newer one.

Thank you for your response.

Best regards,
    LeoÅ¡
Leoš
Top achievements
Rank 1
 answered on 04 Aug 2011
11 answers
105 views
I have downloaded IE9 and recently installed the latest version of Telerik ASP.NET Ajax controls. I have found that when the ajax spinner is spinning the screen behind it is now turning white when it should be grayed out just like before. However when in compatability view the ajax does work correctly.

Thanks,
Trevor
Pavel
Telerik team
 answered on 04 Aug 2011
1 answer
176 views
I have a treeview defined like this:

<telerik:RadTreeView ID="tvHierarchy" runat="server" CheckBoxes="True" LoadingStatusPosition="BeforeNodeText" OnClientNodeChecked="tv_Check" OnClientNodeClicking="tv_Clk">
   <CollapseAnimation Duration="100" Type="None" />
    <ExpandAnimation Duration="100" />
</telerik:RadTreeView>

I want to populate the tree with multiple root nodes, so I'm trying this way:

For Each rootNode As dbo_BASE_NODE In rootNodes
   Dim node As New RadTreeNode()
   node.Text = rootNode.BN_ID & " " & rootNode.BN_NAME
   node.Value = rootNode.HN_RID
   tvHierarchy.Nodes.Add(node)
Next

But everything is aligning to the right like this (Please see attachment radtreeview.jpg).

I need all root nodes to align to the left with as little "whitespace" as possible.  There is no whitespace in the data.

Thanks,
Rob
Princy
Top achievements
Rank 2
 answered on 04 Aug 2011
4 answers
206 views
Hi, I have an issue. When i click on Radbutton1, i want a prompt to tell me that i have successfully uploaded the picture. How can i do it?

I tried ways like -

 RadWindowManager1.RadAlert("Event's picture changed!", 200, 100, "Change Image", "callBackFn")

but it doesnt seems to work too.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2011
1 answer
84 views
Hi there, I have an issue right now. I have a button(Radbutton1), & when i click on the button , i want it to alert me that i have successfully update. I have tried a few ways but it doesnt seems to work.

-  RadWindowManager1.RadAlert("Event's picture changed!", 200, 100, "Change Image", "callBackFn")

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2011
3 answers
125 views
Hello!

At this moment i have a table on my database which data are populated on a RadGrid.

Now I need to create a aspx page with a control to show a resume of the data showed on the RadGrid (total of records on my table "Docs" (database)).

I need a control to show a message with some data from my database table "Docs" on a aspx page.

Example:

"At this moment exist 33 docs with priority 1,(column from table Docs) Stage S(column from table Docs), 21 docs with priority 1 Stage SP, 31 docs with priority 2 Stage S, 1 doc with priority 2 Stage SP........"


My "Docs" table has a column for doc id, Stage (two values possible: S or SP) and Priority(1 to 9). I'm already showing that info on my RadGrid in a different page, but now before showing the RadGrid page i want to show another page with that Resume...

What control i must use and how can i put on the message the correct values for the regists??
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Aug 2011
3 answers
166 views
Hi,

I see in the html code generated for my project that both Telerik.Web.UI.WebResource.axd and WebResource.axd (I'm assuming this is the asp.net one) are refered.

How do I prevent this and make sure all access to resources are made using the same webresource handler (the Telerik one for instance)?

Thanks.

P
Patrice Boissonneault
Top achievements
Rank 1
 answered on 04 Aug 2011
3 answers
142 views
Hi,

Can you tell me if there is a way to select a row in a grid with javascript? For instance, lets say I did a rebind on the client and immediately following the rebind I wanted to have row 3 of the grid selected and highlighted. Is that possible?

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 04 Aug 2011
3 answers
187 views
Hi Everyone,

Version of Telerik.Web.Ui DLL (2010.3.1109.35)
I have an issue where RadCompression is somehow related.  When viewing a PDF File (Generated by Reporting Services) it comes back with "File does not begin with %PDF-".  When I disable RadCompression in the Web.Config it works.
So then I attempted to exclude the pages that call the Reporting Services like this

<telerik.web.ui>
    <radCompression>
      <excludeHandlers>
        <add handlerPath="LaunchLink.aspx" matchExact="false"/>
        <add handlerPath="LaunchExternalSite.aspx" matchExact="false/>
      </excludeHandlers>
    </radCompression>
  </telerik.web.ui>

It does not seem to be making any difference.

Any info will be greatly appreciated.

Thanks

Bran
Brandon
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
130 views
I've dynamically created Header/Content templates for use in the panelbar, but I'm unable to access the dropdownlist, checkbox, and textbox controls that I've placed within the panelbar templates. I think I've hit every article that I could find here, but still not haveing any success. I've tried using findcontrol at both the page and item levels, I've also used a recurrsive function to hit every control at the page and item levels. Any help or pointers would be greatly appreciated.
Kate
Telerik team
 answered on 03 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?