Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
119 views
This is my design

<telerik:RadMultiPage ID="rdmpPersonal" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="rdpgSalary" runat="server">
            <telerik:RadAjaxPanel ID="rdpnlSalary" runat="server">
                <telerik:RadPanelBar runat="server" ID="rdpbSalary" ExpandMode="FullExpandedItem"
                    Skin="Vista" EnableEmbeddedSkins="false" Width="550px">
                    <Items>
                        <telerik:RadPanelItem Expanded="true" Text="Employee Salary Information" runat="server"
                            Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="SalaryInformation" runat="server">
                                    <ItemTemplate>
                                        <div class="text" style="background-color: #edf9fe">
                                            <ul class="formList" id="salaryinfo">
                                                <li>
                                                    <asp:Label Width="150px" runat="server" ID="lblSalaryPayRate" AssociatedControlID="rdbtnlstPayRate">What is the Pay Rate?</asp:Label>
                                                    <asp:RadioButtonList ID="rdbtnlstPayRate" runat="server" AutoPostBack="true" RepeatDirection="Horizontal"
                                                        OnSelectedIndexChanged="rdbtnlstPayRate_SelectedIndexChanged" Style="width: 155px"
                                                        ValidationGroup="salaryValidation">
                                                        <asp:ListItem Value="S">Salary</asp:ListItem>
                                                        <asp:ListItem Value="H">Hourly</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                    <asp:RequiredFieldValidator ID="rfvsalaryTypeID" runat="server" ControlToValidate="rdbtnlstPayRate"
                                                        ErrorMessage="Please Select One Pay Rate" ValidationGroup="salaryValidation"></asp:RequiredFieldValidator>
                                                </li>
                                                 
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelBar>
            </telerik:RadAjaxPanel>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

This my code
protected void rdbtnlstPayRate_SelectedIndexChanged(object sender, EventArgs e)
    {
RadioButton rdbtnlstPayRate = (RadioButton)rdpbSalary.FindItemByValue("SalaryInformation").FindControl("rdbtnlstPayRate");
          
      Unable to access rdbtnlstPayRate .SelectedValue can some one tell where I went wrong
    }
Peter
Telerik team
 answered on 28 May 2012
10 answers
356 views
  • ASP.net 2010/4.0
  • OS: Wiindows XP Pro
  • IE9
  • newest version of Telerik as of Jan 2012 (dont have that here with me now)
  • vb.net

I have a Radlistbox that is taller than the table that contains it.  I was tasked with creating up and down buttons that the user can use to scroll the Radlistbox up and down.  I created that and I able to scroll up and down a div with no issue  however when I try to do this with the Telerik RadListbox it does not work, using "getElementByID("MyListBox"), that does not work.

I researched the Radlistbox and found that it includes a div so what I did was look in the source code ("view source") of the page and found the name of that div and then tried using that exact name to scroll but nothing happens there.  It appears that the javascript finds the control because it does not error but it is simply  not moving that but the same code works good for a normal div.
Does anyone know  how to solve this? 

In the source code I see that Radlistbox uses 3 different stylesheets that are all online.  I was able to look at one of them last night and wondering if one of the stylesheets for the Radlistbox has some kind of setting that keeps the Radlistbox from being able to be manually scrolled by using a button.

so the question I have is  how can  you use buttons (ex:  UpButton and DownButton) to scroll a RadListBox?

I apologize that I do not have the exact javascript that I'm using here but when I get home later I can update this post with that.

thanks

MC

Ivana
Telerik team
 answered on 28 May 2012
1 answer
59 views
We are still on an older version of the controls for .net 2.0 and cannot upgrade for another month or two.  We need to implement the filtering that ConvertInlineStylesToAttributes does now though.  Could you provide some javascript that would allow us to run this type of cleanup now? 
Rumen
Telerik team
 answered on 28 May 2012
2 answers
104 views
Hi there

I have a total column on one of my grid columns, by using the following code:
applicationValueTotal += Double.Parse(dataItem["ApplicationValue"].Text);
.
.
.
GridFooterItem footerItem = (GridFooterItem)e.Item;           
footerItem["ApplicationValue"].Text = "R " + applicationValueTotal;
This works great, but it only gives me the total of the current "visible" records.

I want it to show me the results of the whole dataset at that point and then a sub total for the current visible records.
I also use filters so basically I would like the following:

for example a total of 50 records, 10 per page
full dataset on first page load: sub total = applicationValueTotal Grand Total = 50 records' applicationValue

filter applied: sub total = applicationValueTotal Grand Total = x records returned' applicationValue

I can't query this directly out of the database as client side filters might be applied.

Any ideas?

Jako
Top achievements
Rank 1
 answered on 28 May 2012
4 answers
217 views
Hello.
I seem to not be able to find a client side method that resizes/re-set's the TreeList's height.

the example code is pretty straight forward :

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
            <script type="text/javascript">

                Sys.Application.add_load(LoadValues);

                function LoadValues() {
                    var tl = $find("<%=tlHierarchy.ClientID %>");                 
                }

            </script>
</telerik:RadScriptBlock>

So basically .. how can i set a treelist's height from client side ?
Thank you.
bogdan
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
192 views
I have a page with two raddatepickers. Both have ClientIDMode="Static".

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="datepicker.aspx.vb" Inherits="tests_datepicker" %>
 
<!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>
            <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
            <telerik:RadDatePicker runat="server" ID="RadDatePicker1" ClientIDMode="Static" />
            <telerik:RadDatePicker runat="server" ID="RadDatePicker2" ClientIDMode="Static" />
 
        </div>
        </form>
</body>
</html>

Clicking the calendar icon next to RadDatePicker1 pops up the calendar aligned to RadDatePicker2 and if a date is selected RadDatePicker2 is filled in. The calendar never pops up when clicking the calendar icon next to 
RadDatePicker2.

I'm I doing something wrong?



Kevin
Top achievements
Rank 2
 answered on 28 May 2012
1 answer
235 views
Hi ,
I have blow scenario where i have 3 inputs for radwindow.

 Can i set the default path  for radupload ?? or is there any other way ?

Regards,
Akki


Princy
Top achievements
Rank 2
 answered on 28 May 2012
0 answers
108 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
0 answers
81 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
1 answer
118 views
Does anyone have any examples of doing client-side databinding on a RadGrid where one of the columns is a custom AJAX control?

I've been using a GridTemplateColumn for my custom control, but am unsure how to bind the data to the control at the client level.

Thanks,
Jason
Tsvetina
Telerik team
 answered on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?