Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hello using the same graph template, the YAxis AxisLabel seems to be displayed in a different places on a bar graph.
Please look at the image, to see what I mean.
http://i839.photobucket.com/albums/zz316/dev2009_2009/y_axis_align_problem.jpg

As you can see from the code Position-Auto is set to false.

<

 

telerik:RadChart ID="rctGraph" runat="server" DefaultType="Bar" Width="500px" Height="300px">

 

 

<PlotArea>

 

 

<EmptySeriesMessage Visible="True" TextBlock-Text="No Information Found!" Appearance-FillStyle-MainColor="ControlLight">

 

 

<Appearance Visible="True">

 

 

</Appearance>

 

 

</EmptySeriesMessage>

 

 

<XAxis>

 

 

<AxisLabel>

 

 

<Appearance Position-X="225" Position-Y="275" Position-Auto="false" />

 

 

<TextBlock>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</XAxis>

 

 

<YAxis>

 

 

<AxisLabel>

 

 

<Appearance Position-X="-10" Position-Y="200" Position-Auto="false" />

 

 

<TextBlock>

 

 

</TextBlock>

 

 

</AxisLabel>

 

 

</YAxis>

 

 

<Appearance Dimensions-Margins="30%, 10px, 60px, 80px">

 

 

</Appearance>

 

 

</PlotArea>

 

 

<ChartTitle>

 

 

<Appearance Dimensions-Margins="4%, 10px, 14px, 6%">

 

 

</Appearance>

 

 

<TextBlock>

 

 

</TextBlock>

 

 

</ChartTitle>

 

 

<Legend>

 

 

<Appearance

 

 

Dimensions-Margins="5px, 5px, 12%, 1px">

 

 

</Appearance>

 

 

<TextBlock>

 

 

<Appearance Position-AlignedPosition="Top">

 

 

</Appearance>

 

 

</TextBlock>

 

 

</Legend>

 

</

 

telerik:RadChart>

 




Ves
Telerik team
 answered on 27 Jul 2009
1 answer
169 views
I have a linkbutton in which I need to add a radconfirm to it.  The behavior of the LinkButton is the postback is triggered and the page is refreshed and adding a return false with customizing the radconfirm resolves this and works great.

The issue I am having is if you need to customize the LinkButton with CSS such as having a link button with the tags <b> used.  (My real example uses more css to create a css compliant button) this causes an issue with RadConfirm.

I followed the example from the link attachment and just added the tag "<b>"
http://www.telerik.com/community/forums/aspnet-ajax/window/radconfirm-closes-immediately-after-popup.aspx

asp:LinkButton ID="linkBtn" runat="Server" OnClientClick="return radconfirm('Are you sure?', event, 400, 200,'','Custom title');" Text="Delete Item" OnClick="linkBtn_Click"><b>This does not</b></asp:LinkButton>

Taking the attachment and just adding the tags <b> in the example causes the RadConfirm to not work.  The issue is the caller object being sent to the radconfirm is not the LinkButton "<A>" tag but the "<b>" tag so this results in no post back via the href call.

How can this be fixed or what's a work around with the javascript radconfirm function?
Georgi Tunev
Telerik team
 answered on 27 Jul 2009
1 answer
182 views
Hi
 I used the DataList. herewith i used the pageindex using panel container... It is working fine.. Herewith i used the dynamic controls (link button) for paging. I dont know how can i bind the Ajax for this dynamic control. Herewith i have attached the sample paging coding here...



        private void bindDataWithPaging(DataList bindControl, DataTable propertyDataTable) //you can pass either DatList or Repeater to this function
        {
            if (propertyDataTable.Rows.Count > 0) // if the datset contains data
            {
                DataView dv = propertyDataTable.DefaultView;

                PagedDataSource dsP = new PagedDataSource();
                dsP.AllowPaging = true;
                dsP.DataSource = dv;
                dsP.CurrentPageIndex = CurrentPageIndex;
                dsP.PageSize = PageSize;

                //Binding data to the controls
                if (bindControl is DataList)
                {
                    ((DataList)bindControl).DataSource = dsP;
                    ((DataList)bindControl).DataBind();
                }

                //saving the total page count in Viewstate for later use
                PageCount = dsP.PageCount;

                //create the linkbuttons for pagination
                BuildPagination();
            }
        }

        private int CurrentPageIndex //to store the current page index
        {
            get { return ViewState["CurrentPageIndex"] == null ? 0 : int.Parse(ViewState["CurrentPageIndex"].ToString()); }
            set { ViewState["CurrentPageIndex"] = value; }
        }
        private int PageCount  //total number of pages needed to display the data
        {
            get { return ViewState["PageCount"] == null ? 0 : int.Parse(ViewState["PageCount"].ToString()); }
            set { ViewState["PageCount"] = value; }
        }

        private LinkButton createButton(string title, int index)
        {
            LinkButton lnk = new LinkButton();
            lnk.ID = index.ToString();
            lnk.Text = title;
            lnk.CommandArgument = index.ToString();
            lnk.Click += new EventHandler(lnkPager_Click);
            return lnk;
        }

        //Top Create Button
        private LinkButton topcreateButton(string title, int index)
        {
            LinkButton toplnk = new LinkButton();
            toplnk.ID = "toplink"+index.ToString();
            toplnk.Text = title;
            toplnk.CommandArgument = index.ToString();
            toplnk.Click += new EventHandler(toplnkPager_Click);
            return toplnk;
        }


        //create the linkbuttons for pagination
        protected void BuildPagination()
        {
            pnlPager.Controls.Clear(); //
            pnlTopPager.Controls.Clear();

            if (PageCount <= 1) return; // at least two pages should be there to show the pagination

            //finding the first linkbutton to be shown in the current display
            int start = CurrentPageIndex - (CurrentPageIndex % ButtonsCount);

            //finding the last linkbutton to be shown in the current display
            int end = CurrentPageIndex + (ButtonsCount - (CurrentPageIndex % ButtonsCount));

            //if the start button is more than the number of buttons. If the start button is 11 we have to show the <<First link
            if (start > ButtonsCount - 1)
            {
                pnlPager.Controls.Add(createButton(propertyDetailData.FirstPageText, 0));
                pnlPager.Controls.Add(createButton("..", start - 1));

                //Top View
                pnlTopPager.Controls.Add(topcreateButton(propertyDetailData.FirstPageText, 0));
                pnlTopPager.Controls.Add(topcreateButton("..", start - 1));
            }

            int i = 0, j = 0;

            for (i = start; i < end; i++)
            {
                LinkButton lnk;
                if (i < PageCount)
                {
                    if (i == CurrentPageIndex) //if its the current page
                    {
                        Label lbl = new Label();
                        Label lbltop = new Label();
                        //  lbl.Text = (i + 1).ToString();

                        if (i == 0)
                        {
                            lbl.Text = (i + 1).ToString() + "-" + (((i + 1) * PageSize));
                            lbltop.Text = (i + 1).ToString() + "-" + (((i + 1) * PageSize));
                        }
                        else
                        {
                            lbl.Text = (((i) * (PageSize)) + 1 + "-" + (((i + 1) * PageSize)));                            
                            lbltop.Text = (((i) * (PageSize)) + 1 + "-" + (((i + 1) * PageSize)));
                        }

                        pnlPager.Controls.Add(lbl);
                        pnlTopPager.Controls.Add(lbltop);
                    }
                    else
                    {
                        if (i == 0)
                        {
                            pnlPager.Controls.Add(createButton((i + 1).ToString() + "-" + (((i + 1) * PageSize)), i));                            
                            pnlTopPager.Controls.Add(topcreateButton((i + 1).ToString() + "-" + (((i + 1) * PageSize)), i));
                        }
                        else
                        {
                            pnlPager.Controls.Add(createButton((i) * (PageSize) + 1 + "-" + (((i + 1) * PageSize)), i));
                            pnlTopPager.Controls.Add(topcreateButton((i) * (PageSize) + 1 + "-" + (((i + 1) * PageSize)), i));
                        }
                    }
                }
                j++;
            }

            //If the total number of pages are greaer than the end page we have to show Last>> link
            if (PageCount > end)
            {
                pnlPager.Controls.Add(createButton("..", i));
                pnlPager.Controls.Add(createButton("&gt;&gt;", PageCount - 1));

                pnlTopPager.Controls.Add(topcreateButton("..", i));
                pnlTopPager.Controls.Add(topcreateButton("&gt;&gt;", PageCount - 1));
            }


        }


        // DataList Page Size Changed

        protected void cmbDataListPageSizeChange_OnSelectedIndexChanged(object sender, EventArgs e)
        {
            
            PageSize = Convert.ToInt32(cmbDataListPageSizeChange.SelectedValue);
            DataTable propertyDataTable = (DataTable)JSSessionHandler.GetSessionValue("propertyData");
            bindDataWithPaging(imageAreaLanding, propertyDataTable);
            cmbTopDataListPageSizeChange.SelectedValue = cmbDataListPageSizeChange.SelectedValue;
        }

        protected void cmbTopDataListPageSizeChange_OnSelectedIndexChanged(object sender, EventArgs e)
        {

            PageSize = Convert.ToInt32(cmbTopDataListPageSizeChange.SelectedValue);
            DataTable propertyDataTable = (DataTable)JSSessionHandler.GetSessionValue("propertyData");
            cmbDataListPageSizeChange.SelectedValue = cmbTopDataListPageSizeChange.SelectedValue;
            bindDataWithPaging(imageAreaLanding, propertyDataTable);
        }
 

<JetSoft:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="cmbPropertySearchDestination">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="cmbPropertySearchArea" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
         <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="cmbPropertySearchArea">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="cmbPropertySearchLocation" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
          <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="cmbDataListPageSizeChange">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="imageAreaLanding" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
            
             <JetSoft:AjaxSetting AjaxControlID="cmbDataListPageSizeChange">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="cmbTopDataListPageSizeChange" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
          <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="cmbTopDataListPageSizeChange">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="imageAreaLanding" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
             <JetSoft:AjaxSetting AjaxControlID="cmbTopDataListPageSizeChange">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="cmbDataListPageSizeChange" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>            
        </AjaxSettings>
        
         <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="cmbPropertySearchArea">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="cmbPropertySearchLocation" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
          <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="pnlTopPager">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="imageAreaLanding" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
        <AjaxSettings>
            <JetSoft:AjaxSetting AjaxControlID="pnlPager">
                <UpdatedControls>
                    <JetSoft:AjaxUpdatedControl ControlID="imageAreaLanding" LoadingPanelID="loadingPanelDetails" />
                </UpdatedControls>
            </JetSoft:AjaxSetting>
        </AjaxSettings>
        
</JetSoft:RadAjaxManager>


Let me know how can i solved this problem

Regards
G. Manikandan




Pavlina
Telerik team
 answered on 27 Jul 2009
3 answers
211 views
After following settings listed here : http://www.telerik.com/help/aspnet-ajax/radcompression.html , only ScriptResource.axd files are being compressed by RadCompression .
Please let me know if there is something missing. Thanks. Regards.
Sebastian
Telerik team
 answered on 27 Jul 2009
1 answer
86 views

Hi Guys,

Wonderful controls but, what I have to do if i want delete only image content from my record ?

Any ideas?

Sebastian
Telerik team
 answered on 27 Jul 2009
2 answers
93 views
Is it possible to restyle a radcomboxbox if it doesn't pass custom validators? Ideally we wanted to put a red border around the outside of the combobox. We have managed to do this with a radtextbox but the combobox is proving to be a little bit tricker? Any suggestions? 
James
Top achievements
Rank 2
 answered on 27 Jul 2009
4 answers
309 views
Hi there

Since I could not find any recent doc about how to install radEditor in dnn, I did it like this: http://www.telerik.com/help/aspnet-ajax/dnn-radeditor-provider.html
But now none of the dialogs (image manager, document manager etc) works. I only get a message that says, the system couldn't find the specified file.

what did I do wrong, and where can I see what I need to do instead?

Greets from sunny switzerland :)

edit: I am working with dnn 5.1 and the latest telerik controls (downloaded two weeks ago)
Lini
Telerik team
 answered on 27 Jul 2009
2 answers
233 views
Hi all,
I need to create a C# composite control (ASP.NET 3.5) which contains a radToolBar, radSplitter and radGrid.

Is there an example of 'best practice' of how to go about implementing such a control?

Thanks,

James
James
Top achievements
Rank 1
 answered on 27 Jul 2009
3 answers
104 views
Hello,

My site after a payment under https secured pages should return to http from links inserted in a radMenu.
I am building radmenuItems from code behind and I checked that the navigateUrl contains a full url with scheme like http://MyDom/myPage.aspx but still Radmenu post https://MyDom/MyPage.aspx when the containing page is https

Am I missing something or is it a bug ?

Thanks

CS.
CSurieux
Top achievements
Rank 2
 answered on 27 Jul 2009
1 answer
119 views
Hi,

I have .aspx page, CreateData.aspx, which has  .net gridview, named gridViw1, in which i have a linkbutton. On clicking the linkbutton, I need to redirect to a httphandler class, which would open a filedownload popup. During this time, till the download box appears, the previous page should be in callbacl, or show the "Loading" image, and once the dialog box appears, the previous page should be visible in the backgroud.

I have the following code on this page

<

 

radA:RadAjaxManager ID="radAjaxManager" runat="server">

<

 

radA:AjaxSetting AjaxControlID="linkButton1" >

 

 

<UpdatedControls >

 

 

<radA:AjaxUpdatedControl ControlID="grid" LoadingPanelID="LoadingPanel1" />

 

 

<radA:AjaxUpdatedControl ControlID="divGrid" LoadingPanelID="LoadingPanel1" />

 

 

<radA:AjaxUpdatedControl ControlID="ValidationMessagePanel" />

 

 

</UpdatedControls>

 

 

</radA:AjaxSetting>

 

 

</ajaxsettings>
</
radA:RadAjaxManager>

The follwoing code is executed on clicking the linkbutton1

 

Response.Redirect(

"DataHandler.aspx", false);

 

 


My problem is once the httphandler finishes execution, the page CreateData.aspx is still shows "Laoding".
But if i remove ajaxmamanager from this page, it works as expected. But ajaxmanager is required due to some other requirements on the page.

Please suggest how this can be managed.

Thanks in advance

Yavor
Telerik team
 answered on 27 Jul 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?