Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
350 views
My radgrid has three levels. When I expand through to the bottom level detailtable I want to add a button in the footer area of the GridTableView to perform some tasks that use the 3rd level data. Is this possible? thanks in advance
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2010
0 answers
133 views
############## Closed this item, after figuring it out.  ##############################



I have a page with three RadComboBoxes and a submit button.  The submit is inside a RadAjaxPanel, with a textbox for the results of the click.

The functionality I want is to Textclick the button, and the value of the selected items in the combo boxes is displayed in the textbox.

It seems whatever item I select in combo 1 and 3, I get null as the selected item, even though the Text property of the combobox correctly identifies the item selected. Combo 2 works correctly.

I used Firefox to see what was being posted to the server. 
For combo 1
{"logEntries":[],"value":"zr4","text":"Medium Density Residential Area","enabled":true}
For combo 3

{"logEntries":[],"value":"5","text":"Code Purpose","enabled":true}

For combo 2 
{"logEntries":[{"Type":1,"Index":0,"Data":{"text":"Please Select","value":"0","selected":true}},{"Type":1,"Index":1,"Data":{"text":"Centre Activities (except Amusement Arcade, Child ...","value":"uc1843"}},{"Type":1,"Index":2,"Data":{"text":"Centre Activities (except Amusement Arcade, Child ...","value":"uc1890"}},{"Type":1,"Index":3,"Data":{"text":"Centre Activities where not involving building wor...","value":"uc1919"}},{"Type":1,"Index":4,"Data":{"text":"Centre Activities (except Display and Sales Activi...","value":"uc1932"}},{"Type":1,"Index":5,"Data":{"text":"Building work involving alterations to the facade ...","value":"wb1951"}},{"Type":1,"Index":6,"Data":{"text":"Centre Activities (except Display and Sales Activi...","value":"uc1996","selected":true}},{"Type":1,"Index":7,"Data":{"text":"Centre Activities whether or not involving buildin...","value":"uc2022"}},{"Type":1,"Index":8,"Data":{"text":"Demolition or removal of a Multi–unit Dwelling (wh...","value":"wd2046"}}],"value":"wd2046","text":"Demolition or removal of a Multi–unit Dwelling (wh...","enabled":true}

How do I access the value variables for combos 1, 2 and 3 - because the SelectedValue, SelectedItem, SelectedText properties arent working for me in this case?

Also, why is it that the Firefox post seems to identify the first item as selected whatever item I choose, but in fact its the only one that returns the correct item when I use SelectedValue, SelectedItem, SelectedText.  The other two are atleast sending the correct items to the server!

Very confused.

Ive posted the page code and code behind below.  Really appreciate your advice.

<%

@ Page Language="C#" MasterPageFile="~/Masterpages/MasterPage.master" AutoEventWireup="true" CodeFile="Slice2.aspx.cs" Inherits="Slice2" Title="Untitled Page" %>

 

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

 

 

 

<title>Slice: thePlanBox</title>

 

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

var pgs = new Array('Find','Review','Navigate','Read');

 

DoSetup(pgs);

 

 

</script>

 

 

 

</telerik:RadScriptBlock>

 

 

 

 

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

function OnRC1ClientSelectedIndexChanged(sender, args)

 

{

 

 

var value = args.get_item().get_value();

 

 

 

if (value != "0") {

 

 

 

var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");

 

panel.set_value(value);

}

 

else {

 

 

 

var combo = $find('<%=rc2.ClientID %>');

 

combo.clearItems();

combo.clearSelection();

}

}

 

 

function OnClientResponseEnding(panel, args) {

 

 

 

var count = args.get_content().length;

 

 

 

var combo = $find('<%=rc2.ClientID %>');

 

combo.clearItems();

combo.clearSelection();

 

 

var selectItem = new Telerik.Web.UI.RadComboBoxItem();

 

selectItem.set_text(

 

"Please Select");

 

selectItem.set_value(

 

"0");

 

combo.trackChanges();

combo.get_items().add(selectItem);

selectItem.select();

combo.commitChanges();

 

 

for (var i = 0; i < count; i++) {

 

 

 

var item = args.get_content()[i];

 

 

 

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(item.Name);

comboItem.set_value(item.ID);

combo.trackChanges();

combo.get_items().add(comboItem);

combo.commitChanges();

}

args.set_cancel(

 

true);

 

}

 

 

 

</script>

 

 

 

</telerik:RadScriptBlock>

 

 

 

 

</

 

asp:Content>

 

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

<

 

 

div id="tpb_default_pagecontrols">

 

<

 

 

telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server"

 

 

 

WebMethodPath="WebService.asmx"

 

 

 

WebMethodName="GetActivitiesForPlace"

 

 

 

EnableClientScriptEvaluation="true"

 

 

 

OnClientResponseEnding="OnClientResponseEnding" LoadingPanelID="LoadingPanel1">

 

 

 

</telerik:RadXmlHttpPanel>

 

 

 

 

 

 

<div id="tpb_clientdocumentcombos">

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Places</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc1" runat="server"

 

 

 

OnClientSelectedIndexChanged="OnRC1ClientSelectedIndexChanged" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="DDImage1" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Activities</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc2" Runat="server" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="Image1" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Choose criteria types</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc3" Runat="server" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="Image2" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

<div class="tpb_loadingmsg">

 

 

 

<telerik:RadAjaxLoadingPanel id="LoadingPanel1" Runat="server">

 

 

 

<asp:Image id="Image3" runat="server" ImageUrl="Images/ajax-loader.gif" >

 

 

 

</asp:Image>

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

</div>

 

 

 

</div>

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"

 

 

 

Width="600px" LoadingPanelID="LoadingPanel1">

 

 

 

 

<asp:Button ID="Button1" runat="server" Text="Show Me" onclick="Button1_Click" />

 

 

 

<asp:Literal ID="xml1" runat="server" Mode="PassThrough" EnableViewState="false"></asp:Literal>

 

 

 

 

</telerik:RadAjaxPanel>

 

 

 

</div>

 

 

 

</

 

 

asp:Content>

 

 









chrispo
Top achievements
Rank 1
 asked on 16 Apr 2010
19 answers
413 views
I am trying to create the RadDateTimePicker control dynamically in my code. i am getting expected ':'
I am able to add the textbox control , RadDateInput, RadTimePicker controls easily without an error but i am not able to add RadDatePicker and RadDateTimePicker.
 here is my code

 Case "datetimeend"
               Dim cal2 As New Telerik.Web.UI.RadDateTimePicker
                cal2.ID = parameterid

                ctrls.Add(cal2)

i have <asp:ScriptManager ID="ScriptManager1" runat="server" /> on the aspx page.

Beth Wetherbee
Top achievements
Rank 1
 answered on 16 Apr 2010
8 answers
269 views
Greetings,
    The Radopen function does not seem to work with relative paths, so for now I have been moving the views to the root directory.  is there a way to use relative paths with the Radopen function?  For example, the path ../View/Account/login.aspx does not work.  It appears that the leading periods are stripped off of the path.

Thanks in advance,
Eugene
Eugene
Top achievements
Rank 1
 answered on 15 Apr 2010
1 answer
130 views
Hi All,

I just got zip of Latest Version: 2010.1 415 (Apr 15, 2010).

What do I do different than when installing using the MSI?

Do I just copy it a folder and run the toolbox installer?

Thanks
Matt
Daniel
Telerik team
 answered on 15 Apr 2010
8 answers
308 views
when I try to open the exported pdf file, it prompts me to type in the password.

I don't think I have set the password anywhere. 
Should it be local setting problems?
Daniel
Telerik team
 answered on 15 Apr 2010
1 answer
144 views

Hi,

We are binding the dataset to grid whose columns are auto generated (AutoGenerateColumns="true")

Column data format string can be either "$" or "%" which is depedent on combo selection format string is bound on column created event.

Initally data is shown with "%", changed the combo selection "$" on click of button format string is not changed to "$".

protected void radMainGrid_ColumnCreated(object sender, Telerik.Web.UI.GridColumnCreatedEventArgs e)  
        {  
            if (e.Column is GridBoundColumn)  
            {  
                GridBoundColumn boundColumn = e.Column as GridBoundColumn;  
                if (boundColumn.DataField.Equals("Name"))  
                {  
                    if(radView.SelectedValue != "0")  
                        boundColumn.FooterText = "Grand Total";  
                }  
                else if(!boundColumn.DataField.Equals("ID"))  
                {  
                    if (radView.SelectedValue != "0")  
                    {  
                        boundColumn.Aggregate = GridAggregateFunction.Sum;  
                        boundColumn.DataFormatString = "{0:C0}";  
                    }  
                    else  
                    {  
                        boundColumn.DataFormatString = "{0:P0}";  
                    }  
                }  
            }  
        }  
 

Please help me to resolve this issue.

Thanks, Mulagundla

Please help me to resolve this issue.Thanks, Mulagundla
Daniel
Telerik team
 answered on 15 Apr 2010
1 answer
172 views
Hi,

I was using free telerik version 2009  in my project and recently purchased telerik version 2010. I did not change any web.config setting and it was working fine on my local machine.
But  on the server it is giving me following error in we. config

Parser Error Message: Could not load file or assembly 'Telerik.Web.Design, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

on the following line

<add assembly="Telerik.Web.Design, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

wht all changes I need to make in web.config file.(FYI: I'm using .net 3.5 frame work)

Thanks.
Daniel
Telerik team
 answered on 15 Apr 2010
1 answer
129 views
I am using RadWindow as a security challenge when users attempt to access premium content links within the site without being first logged in.  Once the user logs in, they will be redirected to the appropriate page.  One requirement is that the user be able to close the modal dialog and go back to previewing the site.  The problem is that I don't want the RadWindow to force the parent page to reload when the RadWindow is closed. 
 
I am passing arguments into the radwindow when the parent page calls it through the client-side showdialog function. Tthe problem is that if I don't allow the radwindow to refresh the home page when it's closed, the radwindow appends the argument to its querystring on every successive call. I'm wondering if there's a way to force this querystring to empty out between calls to the radwindow without forcing the parent page to reload and without setting the DestroyOnClose property to false for the RadWindow. 

Does anyone know of a clean way to dispose of the RadWindow on the client-side and to reconstitute when the user next opens it?  This is probably much more of a general javascript type of question but hopefully someone can help out.

Thanks
-Charlie
Charlie Davies
Top achievements
Rank 1
 answered on 15 Apr 2010
0 answers
91 views
Is it possible to have the panel expand "on top of" other items on the page? Perhaps with some kind of "transparency" setting? The reason I ask is that I have some panels in a table, and I don''t want that row of the table expanding to the same height as the panel when the user opens it.

Thanks
Paul Nascimento
Top achievements
Rank 1
 asked on 15 Apr 2010
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?