Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
248 views
For consideration in a future release the RadDataPager should allow registration to an OnPageSizeChanged event. I am handling the databinding and paging in code behind going through a WCF tier; however, I had to remove the change PageSize functionality from the end user because this event doesn't exist.

The Functionality should be like this to mirror the PageIndexChanged event:

ASPX:

                <telerik:RadDataPager ID="RadDataPager1" runat="server" OnPageIndexChanged="RadDataPager1_PageIndexChanged"
                    OnTotalRowCountRequest="RadDataPager1_TotalRowCountRequest"
    OnPageSizeChanged="RadDataPager1_PageSizeChanged" Skin="Windows7">
                   ...
                </telerik:RadDataPager>

Code Behind:

    protected void RadDataPager1_PageSizeChanged(object sender, RadDataPagerPageSizeChangeEventArgs e)
    {
        int NewPageSize = e.NewPageSize;
...
    }

Cheers,
Andrew.


   
Michael
Top achievements
Rank 1
 answered on 14 Oct 2013
3 answers
127 views
Hi,

I have a RadTabStrip linked with a RadMultiPage.

ASPX:
<telerik:RadTabStrip ID="tsConfig" runat="server" MultiPageID="mpConfig" SelectedIndex="0"
        Width="100%" Skin="Office2010Silver" OnClientTabSelecting="OnTabSelecting_CheckPageView">
        <Tabs>
            <telerik:RadTab Text="Tab 1" PageViewID="rpvGeneral" Width="150px">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab 2" PageViewID="rpvPhoto">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab 3" PageViewID="rpvListePatients">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab 4" PageViewID="rpvListesPrescriptions">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab 5" PageViewID="rpvPrescripteur">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="mpConfig" runat="server" SelectedIndex="0" Width="100%"
        BackColor="White" Height="500px" BorderColor="Silver" Style="overflow: hidden;">
        <telerik:RadPageView runat="server" ID="rpvGeneral">
            <cgsi:ConfigGeneral runat="server" ID="ucConfigGeneral" />
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="rpvPhoto" Visible="false">
            <cgsi:ConfigPhoto runat="server" ID="ucConfigPhoto" />
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="rpvListePatients" Visible="false">
            <cgsi:ConfigListePatients runat="server" ID="ucConfigListePatients" />
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="rpvListesPrescriptions" Visible="false">
            <cgsi:ConfigListesPrescriptions runat="server" ID="ucConfigListesPrescriptions" />
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="rpvPrescripteur" Visible="false">
            <cgsi:ConfigPrescripteur runat="server" ID="ucConfigPrescripteur" />
        </telerik:RadPageView>
    </telerik:RadMultiPage>

VB:
Private Sub tsConfig_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles tsConfig.TabClick
        e.Tab.PageView.Visible = True
    End Sub

My problem is that in the ascx named "ucConfigPrescripteur" I have a RadComboBox that I set the width to 160px. But for some reason, on the page, the combobox is set to 260px until I do a postback it will set it to 160px.

This is only happenning with RadMultiPage.

Thanks.
Kate
Telerik team
 answered on 14 Oct 2013
1 answer
141 views
Hello,

Is there a way to have events, such as RadDatePicker.ClientEvents.OnDateSelected or RadListBox.OnClientSelectedIndexChanged, handle functions with arguments, apart from "sender" and "eventArgs"?
The following code doesn't do it completely right:

RadListBox rlb = new RadListBox();
rlb.OnClientSelectedIndexChanged = "ToSomething('Aaa', 'Bbb', 'Ccc')";
function DoSomething(a, b, c)
{
   //code
}

Thanks in advance.
Laurens
Top achievements
Rank 1
 answered on 14 Oct 2013
13 answers
238 views
Hello,

How would i be able to switch from using regular text boxes which uses
boundColumn = new GridBoundColumn();

When creating a radgrid dynamically to using Radautocomplete text boxes?

Brad
Top achievements
Rank 1
 answered on 14 Oct 2013
3 answers
123 views
Hi Friends,
I'm new to telerik code
Can you please tell me how to modify tool tip  instead of "Go to root " i want to change it to "Go to Top" ? Can you please suggest me.

 Thanks,

Peter Filipov
Telerik team
 answered on 14 Oct 2013
1 answer
105 views

Below is my code, all of it.  When I click the button, the RadAlert only appears for an instant. Why?

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm10.aspx.vb" Inherits="Easiest_Way.WebForm10" %>
  
<!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">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
        <div>
            <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="ClientClicked" />
        </div>
    </form>
</body>
<script type="text/javascript">
    function ClientClicked(sender, e) {
        radalert("Hi!");
        return false;
    }
</script>
</html>

 

Marin Bratanov
Telerik team
 answered on 14 Oct 2013
1 answer
197 views
Is it possible to put an entire radgrid within modalpopupextender? If so, does anyone have a simple example on how to do this?
Konstantin Dikov
Telerik team
 answered on 14 Oct 2013
1 answer
94 views
We have a RadScheduler using a web service binding with ResourcePopulationMode="ServerSide".  The GetResources method is as per the documentation:
[WebMethod]
public static IEnumerable<ResourceData> GetResources(MySchedulerInfo schedulerInfo)
{
    return Controller.GetResources(schedulerInfo);
}
If we call RadScheduler1.Rebind() in the code behind then GetResources is called but the resources are added to the RadScheduler rather than replacing them, with the result that duplicate resources appear.

Is this the expected behaviour?  Are we supposed to be rebinding the scheduler differently?
Plamen
Telerik team
 answered on 14 Oct 2013
1 answer
100 views

I have an Question, about standard Legend for RadChart.

How can I change it (Color: Blue from Anzahl Gesamt: 438) that’s the Column from my DataTable. I want to have my custom legend but I can’t remove the standard Legend Item

 

Can you help me ?

 

Petar Kirov
Telerik team
 answered on 14 Oct 2013
6 answers
249 views
I am using export to excel of RadGrid with html format.

When I export the RadGird to Excel, I want Grid Header rows to repeat across pages when the content exceeds more than one page in exported file.
Same is needed when I use Format= "ExcelML"

Please help me.
 
Kostadin
Telerik team
 answered on 14 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?