Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views

I think I encountered a bug with the image manager for the 2009 Q3 radeditor. It works fine in 2009 Q1.

I am using the RadEditor in DotNetNuke 5.2. When inserting an image, the image has a url which looks like this:
 src="/portals%09estt/images/logo.gif" or  src="/portalstestt/images/logo.gif. Notice the '%09' in the first case and the missing '/' in the second. This is for a parent portal for a site which looks like testt.example.com. This site has a portal folder called 'testt' under DNN's portals folder.
I did several tests and I think I found a pattern.

The image manager works fine if the url is a domain name like example.com. If the site is for a subdomain like sub1.example.com then the path to the images are broken as mentioned above and the image manager doesn't show any image previews.

When I did the same tests for 2009 Q1 version, everything worked fine. The Q3 version I used was 2009.3.1104.35.

Rumen
Telerik team
 answered on 28 Dec 2009
1 answer
152 views

Hi All,
I have a RadGrid and a lable as shown below.

<telerik:AjaxSetting AjaxControlID="grdOverdue">  
        <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="grdOverdue"/>              
            <telerik:AjaxUpdatedControl ControlID="lblError"/>    
        </UpdatedControls> 
</telerik:AjaxSetting>     
<asp:Label ID="lblError" runat="server" Text="" Visible="false" SkinID="Error"></asp:Label>    
    <telerik:RadGrid ID="grdOverdue" runat="server"   
            ....  
            <CommandItemTemplate> 
                    <span style="float:left;margin-left:5px;">  
                        <asp:Label ID="lblJobCount" runat="server" Text=""></asp:Label> 
                    </span> 
                    <span style="float:right;margin-right:5px;">                          
                       <asp:LinkButton ID="lbExportAll" runat="server" CommandName="ExportToExcel">Export All</asp:LinkButton>&nbsp;&nbsp;  | &nbsp;&nbsp;  
                       <asp:LinkButton ID="lbExportSelected" runat="server" CommandName="ExportSelectedToExcel">  Export Selected</asp:LinkButton>                     
                   </span> 
               </CommandItemTemplate> 
               ....  
</telerik:RadGrid> 

and in the grdOverdue_ItemCommand event I am displaying error message if the user has not selected atleast one item in the grid.
protected void grdOverdue_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)  
    {  
      
        if (e.CommandName == "ExportSelectedToExcel")  
        {  
            if (selectedJobs.Count == 0)  
            {  
                lblError.Visible = true;  
                lblError.Text = "Please select atleast one job to export.";        
            }  
            else{  
                lblError.Visible = false; // this is not working.  
            }  
          
        }  
    } 

Please suggest how to clear the error message and make the label invisible? Thank you.
Princy
Top achievements
Rank 2
 answered on 28 Dec 2009
1 answer
124 views
hi,

is there any property to set for treeview for reordering/sorting the nodes according to values? how can i accomplish this.

thanks
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2009
1 answer
141 views
Hi,

My find control is always return  null value.

 </Columns>            
              <EditFormSettings EditFormType="Template">                  
              <EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton">                
                </EditColumn>                  
                    <FormTemplate>                    
                    <table id="Table2" cellspacing="2" cellpadding="1"  border="0" rules="none"
                            style="border-collapse: collapse; background: white;">
                        
                        <tr>
                             <td>
                                    <table >
                                         
                                                <tr>
                                                <td>
                                                 <b>MaxTickets</b>
                                                </td>                                                
                                                <td>
                                                
                                                         <asp:TextBox ID="txtMaxTickets" Text='<%# Bind("MaxTickets") %>' runat="server"></asp:TextBox>

                                                </td>
                                            </tr>
                                            
             

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
    {
        
            if (e.CommandName == "cmdTicket")
            {
              
                GridDataItem item = (GridDataItem)e.Item;
                TextBox txtMaxTickets = (TextBox)item.FindControl("txtMaxTickets");  


                DbConnection Con = new DbConnection();
                SqlConnection Conn = new SqlConnection();
                Conn = Con.SQLConnection();
                Conn.Open();
                string sqlStr = "CreateTicket";
                SqlCommand cmd = new SqlCommand(sqlStr, Conn);
    

How can i use findcontrol?

lakmal
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Dec 2009
2 answers
109 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
113 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
378 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
989 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
161 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
114 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?