Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
151 views
Hi,
I build an aspx page which contains only one RadTabStrip and its RadMultiPage.

In the page_load event (in the behind code), I build dynamically the RadTabStrip and the RadMultiPage
protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string[] arguments = Session[SessionParameterName.LISTDOCTOVISU] as string[];
            for (int i = 0; i < arguments.Length; i++)
            {
                AddTab(arguments[i]);
                AddPageView(RadTabStripDocView.Tabs[i]);
            }
        }      
    }

For each value the named Session field, i create a RadTab and a PageView, like in the live demo example.
I also implemented the function AddTab and AddPageView
private void AddTab(string codeDoc)
    {
        RadTab tab = new RadTab();
        tab.Text = codeDoc;
        tab.Attributes.Add("CodeDoc", codeDoc);
        tab.Value = codeDoc;
        RadTabStripDocView.Tabs.Add(tab);
    }
 
    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = "PageView_ID_" + tab.Value;
        pageView.Attributes.Add("CodeDoc", tab.Value);
        RadMultiPageDocView.PageViews.Add(pageView);
        tab.PageViewID = pageView.ID;
    }

and the event PageViewCreate on the RadMultiPage
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        string codeDoc = e.PageView.Attributes["CodeDoc"];
        if (!string.IsNullOrEmpty(codeDoc))
        {
            string userControlName = "usercontrol/ViewerDocument.ascx";
            ViewerDocument userControl = Page.LoadControl(userControlName) as ViewerDocument;
            userControl.ID = e.PageView.ID + "_ViewerDocument";
            userControl.CodeDoc = e.PageView.Attributes["CodeDoc"];
            e.PageView.Controls.Add(userControl);
        }
    }


My user control content:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewerDocument.ascx.cs"
    Inherits="Class_iWebAsp.usercontrol.ViewerDocument" %>
<telerik:RadCodeBlock runat="server" ID="PreviewDocumentForMultiDocCodeBlock">
    <script type="text/javascript">       
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadToolBarPaging">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSplitter1" LoadingPanelID="RadAjaxLoadingPanel1"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"
    Orientation="Horizontal">
    <telerik:RadPane ID="RadPaneToolBarPaging" runat="server" Scrolling="None" Height="35px"
        Width="100%">
        <telerik:RadToolBar ID="RadToolBarPaging" runat="server" AutoPostBack="true" OnButtonClick="RadToolBarPaging_buttonClick"
            Width="100%">
            <Items>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_first.gif" Value="first">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_prev.gif" Value="prev">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton PostBack="false" Value="info">
                    <ItemTemplate>
                        <asp:Label ID="LabelInfo" runat="server" Text="Page 1/1"></asp:Label>
                    </ItemTemplate>
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_next.gif" Value="next">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_last.gif" Value="last">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true" />
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/zoom_arriere_16x.png" Value="zoommois"
                    PostBack="false">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/zoom_avant_16x.png" Value="zoomplus"
                    PostBack="false">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Icons/pdf.jpg" Value="saveas" Target="_blank"
                    PostBack="false" ToolTip="Télécharger(version PDF)">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Images/saveas.gif" Value="saveasOri" Target="_blank"
                    PostBack="false" ToolTip="Télécharger(vesion original)">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Images/print.gif" Value="print" PostBack="false"
                    Visible="false" ToolTip="Imprimer">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
    </telerik:RadPane>
    <telerik:RadPane ID="RadPanePreviewDoc" runat="server">
        qsfhklqjfqklsfqklfjqlfjqlkf
    </telerik:RadPane>
</telerik:RadSplitter>
<asp:HiddenField ID="HiddenFieldPageNumber" runat="server" Value="1" />
<asp:HiddenField ID="HiddenFieldPageTotal" runat="server" Value="1" />

So When I click on the RadToolBarButton the ajax Postback is well fired, the second times is a not an ajax postback it's a simple postback, the RadAjaxManager is not on ajaxrequest, and my usercontrols disappear.

Could you help me?
Pavlina
Telerik team
 answered on 08 Aug 2011
5 answers
270 views
Hi - my users are asking me to change the text on the buttons in the upload panel to say "Browse" instead of "Select" - on the RadUpload control this would be a <localization> setting, but this doesn't appear to be the case with the FileExplorer's upload panel - what files/settings do I need to look at to make this change?
Jon Shipman
Top achievements
Rank 1
 answered on 08 Aug 2011
6 answers
334 views
Hello everyone,
I posted few days ago about problem with radmenu: http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenu-issue-after-deploy-on-production-machine.aspx

But really rad components didn't work at all, because they couldn't to load CSS. Every request to WebResource.axd returns 404 error.
I tried all advices from there http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html. But it still doesn't work.
I use IIS 7 on production server, and telerik dll lib located in bin directory. After few hours after deploy all begin work fine, but after every update - we need to wait, so we lost too many time after every fix. Please advise, what I should to do to save this time?
blade230
Top achievements
Rank 2
 answered on 08 Aug 2011
1 answer
49 views
Hello,
is button background image remove in telerik radeditor? Attach files look please.

Thank you..
Rumen
Telerik team
 answered on 08 Aug 2011
4 answers
216 views
Hi,

Many users have asked how to remove NOT AND and NOT OR from the dropdown. I have tried an easy way and it works.

            FilterControl1.Localization.GroupOperationNotAnd = "";
            FilterControl.Localization.GroupOperationNotOr = "";

Don't use Null - it will not work.

The same way can be used to remove the operators (for example: IsEmpty and NotIsEmpty) from the dropdown.

            FilterControl1.Localization.FilterFunctionIsEmpty = "";
            FilterControl1.Localization.FilterFunctionNotIsEmpty = "";

Thanks
Bruce
July
Top achievements
Rank 2
 answered on 08 Aug 2011
4 answers
144 views
Hello Telerik team,

First of all, thank you for bringing web components, to the next level! 

I would like to ask, whether there is a way to remove some boolean operators, e.g. all except for AND, to simplify filter expression? We need to simplify end user experience, hence would like to remove unnecessary options (OR, NOT OR, NOT AND).

Thanks in advance!

Ivan
Pavlina
Telerik team
 answered on 08 Aug 2011
5 answers
83 views
Hi,

I have implemented Radupload in my page. when i move my cursor over the radupload,  it is displaying as in the image attached with this post.

This problem occurs oinly in Internet Explorer Version 7 & 8.

It works fine in Firefox and in Google Crome.

This is code that i have used for rad upload

 

 

<telerik:RadUpload ID="rdupImage1" runat="server" ControlObjectsVisibility="None">

 

 

 

</telerik:RadUpload>

 


Please help me to resolve this issue

Thanks,

Prakash.
Helen
Telerik team
 answered on 08 Aug 2011
6 answers
163 views
Hi all,

I am applying filter for Radgrid.
For example, I have an Email column, and the length of its data is so long.
But the length of filter textbox is still unchanged. It's not good.
Please see the pic for more detailed.
Please help me to fix it.

Thanks.

Andy.
Andy
Top achievements
Rank 1
 answered on 08 Aug 2011
2 answers
97 views
Hi ,
I am new to Telerik Controls.I downloaded the sample Web Email AJAX .I removed Linq datasource and use my own database binding,But when I am clicking for Sort on grid view(e.g. From,Subject,Date) I got following error.I appreciate if someone can help me.

Microsoft JScript runtime error: 'grid.get_masterTableView()' is null or not an object

Thanks,
Amit  
amit
Top achievements
Rank 1
 answered on 08 Aug 2011
1 answer
157 views
Hi,

I have chart having two Y-axis, one on left of the chart and the other on the right. In the attached image i want to hide the labels from the right Y axis which have negative values. (-50% , -100%). Can u please help me with it.


Thanks.
Peshito
Telerik team
 answered on 08 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?