Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
hi,

i have some controls in advanced form of scheduler. i want to access those controls from code. any example of how to perform that?

thanks.
Benjamin
Top achievements
Rank 1
 answered on 27 Dec 2009
0 answers
111 views
Dear All,
i have two update panels in my aspx page. in first updatepanel(i use microsoft update panel & script manager) i have 4 radcomboboxes. data was reading from sql database and next combobox data depends on previous combobox selected value.

in second updatepanel, i have a repeater and a LinkButton in the item template of the repeater. the LinkButton opens a new blank page with response.redirect and shows some details.

The problem:
For first time when my page loads, i can use the combo boxes and everything is normal. when i press the LinkButton, the details page opens. now when i want to change radcombobox valuse and i press the dropdown button, i see "Loading..." message and no data loads. it seems that the connection to the database is lost.
 Please help me. i use Q1.
Armen Markarian
Top achievements
Rank 1
 asked on 27 Dec 2009
3 answers
374 views
Hello,

I want to remove up and down arrow from right hand side of panelbar. Can you please help me.

Thanks & Regards,
Ravish Malhotra
Mohamed Salah Al-Din
Top achievements
Rank 1
 answered on 27 Dec 2009
9 answers
980 views
Hi,

I have two related comboboxes (copied the code from
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultvb.aspx).
The problem is that I have another button on the page that invokes a 'save' function where I want to extract the selectedvalue to save in the DB.
In this function, I get RadComboBoxGeneralField.SelectedValue=-1 (the first item in the combobox), when actually on the page another item is selected!!
When I get RadComboBoxGeneralField.Text it shows the item text (as in the page for example "Mathematics"),
but RadComboBoxGeneralField.SelectedItem.Text shows the first item in the list!
It looks as if the control just doesn't do the select.

Code attached below:

The first shows a list of Broad Fields:

 

 

telerik:RadComboBox ID="RadComboBoxBroadField" runat="server" OnClientSelectedIndexChanged="fnLoadGeneralField" telerik:RadComboBox>

 

The second shows a list of General Fields:

 

<telerik:RadComboBox ID="RadComboBoxGeneralField" runat="server" OnItemsRequested="RadComboBoxGeneralField_ItemsRequested" OnClientItemsRequested="ItemsLoaded" OnClientSelectedIndexChanged="fnLoadSpecificField" ></telerik:RadComboBox>

JavaScript:

 

<

 

script type="text/javascript">

 

 

 

 

 

//global variables for the general and specific comboboxes

 

 

var generalfieldCombo;

 

 

var specificfieldCombo;

 

 

function pageLoad()

 

{

 

// initialize the global variables

 

 

 

// in this event all client objects are already created and initialized

 

 

 

generalfieldCombo = $find("<%= RadComboBoxGeneralField.ClientID %>");

 

specificfieldCombo = $find(

"<%= RadComboBoxSpecificField.ClientID %>");

 

}

 

 

 

 

function

 

fnLoadGeneralField(combo, eventArqs)

 

{

 

    var item = eventArqs.get_item();

 

    generalfieldCombo.clearItems();

    generalfieldCombo.set_text(

"Loading...");

 

 

 

 

 

 

 

 

    // if a broad field is selected

 

 

 

    if (item.get_index() > 0)

 

    {

 

    // this will fire the ItemsRequested event of the

 

 

 

    // general field combobox passing the broadfieldID as a parameter

 

 

 

    generalfieldCombo.requestItems(item.get_value(), false);

 

}

 

else

 

 

 

{

 

 

    // the <Choose> item was chosen

 

 

 

    generalfieldCombo.set_text("N/A");

 

    generalfieldCombo.clearItems();

 

}

}

 

function ItemsLoaded(combo, eventArqs)

 

{

 

if (combo.get_items().get_count() > 0)

 

{

 

    // pre-select the first item

 

 

 

    combo.set_text(combo.get_items().getItem(0).get_text());

 

    combo.get_items().getItem(0).highlight();

}

 

else

 

 

 

    combo.set_text("N/A");

 

}

 

</script>

 

 

 

Server Code (VB.NET)
The BroadField is loaded through the code on page load using DataBind().

 

Protected

 

Sub RadComboBoxGeneralField_ItemsRequested(ByVal o As System.Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles RadComboBoxGeneralField.ItemsRequested

 

        LoadGeneralField(

CInt(e.Text))

 

 

End Sub

 

 

 

 

 

Public

 

Sub LoadGeneralField(ByVal intBroadFieldId As Integer)

 

 

Dim dsDB As New DataSet

 

' Filling the dataset (code ommitted)

 

 

 

If dsDB.Tables(0).Rows.Count > 0 Then

 

    RadComboBoxGeneralField.DataTextField =

"GF_Desc"

 

 

 

    RadComboBoxGeneralField.DataValueField = "GF_Id"

 

 

 

    RadComboBoxGeneralField.DataSource = dsDB.Tables(0)

 

    RadComboBoxGeneralField.DataBind()

 

End If

 

 

 

 

 

 

End Sub

 

 

 

 

Lynda Golomb
Top achievements
Rank 1
 answered on 27 Dec 2009
3 answers
157 views
Hi all, good day. I am wondering if its possible to create a radeditor in a class (not in a codebehind) and call the function that holds it in aspx. It will be helpful if I can cut my way through setting up all the editors in different pages when most of them have the same settings. I know I can use user control but I am trying to avoid creating multiple ascx files for different reasons. Consider the following code that works (Unfortunately, this is inside a codebehind not a class ): 

namespace UserControlTest 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            createGenericEditor(); 
        } 
 
        private void createGenericEditor() 
        { 
            RadEditor loadEditor = new RadEditor(); 
            loadEditor.ID = "RadEditor1"
            this.Controls.Add(loadEditor); 
        } 
    } 

how do i do this in a class then call it in ASPX say <%# Class1.createGenericEditor() %>

thanks in advance.

John Guinto
Top achievements
Rank 1
 answered on 26 Dec 2009
2 answers
112 views
New to RAD. So just getting that out there.

Now, I have been working with this for two days with no luck.

I have VS2008 installed and VS2010 Beta.

In both versions this is happening. I can load a new project ad the intelisense stuff works until I build/debug and then it dies in 2010. But no matter what I do in either version I get this error when trying to use databinding as explained here : http://www.telerik.com/help/winforms/using_a_data_provider.html

Now, for some reason I have a project in 2008 VS that is working fine but any new projects I create I have this error:
IMAGE

I am using the latest trial version of RadControls for ASP.NET Q3 2009. I have searched these forums for two days with no luck, can someone please assist me in this issue?

Thanks in advance,

Challon
Challon Holt
Top achievements
Rank 1
 answered on 26 Dec 2009
0 answers
87 views
solved.
james paulson
Top achievements
Rank 1
 asked on 26 Dec 2009
1 answer
230 views
Hi All,
I've got a problem I'm trying to solve and I can't figure out the right way to do it.

I have a list of data and I need to have a user select one of the items from the list.  I have a lot of data and it is already categorized so what I would like to do is basically have a combobox that when it expands, it shows a treeview so it will allow the user to dig down into the item that they want.

Does anyone have any suggestions on how to do this?

Thanks!
Peter
Telerik team
 answered on 25 Dec 2009
3 answers
212 views
I want to add an icons to select/desect all items in the ListBox on the client side. Can you provide an example how to do this?
Genady Sergeev
Telerik team
 answered on 25 Dec 2009
3 answers
481 views
Hello Sir/ Madam

         i have  master.aspx page and details.aspx page

     on master page 2 PANEL ---- ADMIN PANEL AND DETAILS PANEL. Now only admin panel shown admin visible - TRUE AND DETAILS PANEL = FALSE, on that panel one button, clicking on that button called details page In radwindow , In that details page one cancel button(Canel button on Details.aspx) after clicking on that button, i want to visible DETAILS panel on master page. HOW  to archive this ? using javascirpt or ?????


Urgent !!!!!!!!!!!!!!!!

Thanks Regards
Rahul


Fiko
Telerik team
 answered on 25 Dec 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?