Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
Since our project uses the sharepoint masterpage we cannot add the ajaxmanager to the masterpage. We have a main composite page that contains a tabstrip and 10 user controls. Right now im trying to get the user controls to use ajax and put one of user controls inside a RadAjaxPanel. this works fine on the first attempt (hit a refresh button) but after that the control is locked down and no other requests work on it.

What would the recommended approach be for using a sharepoint master page with ajax? I couldnt find any examples that really deal with it.
Rosen
Telerik team
 answered on 06 Oct 2008
0 answers
97 views
Hi all ,

I have a problem with RadUpload v2008.1.515.20 ,

I want to change text on AddButton by following :

http://www.telerik.com/help/aspnet-ajax/localizing-radupload.html

But , I can not find Localization property on this version .

And then , I try to create path ~/RadControls/Upload/Localization/en-US/RadUpload.xml

But I do not know what property will be assigned that path .

I create RadUpload control in codebehind .

Pls help me !

Thanks ,

Phong Dang.
Phong
Top achievements
Rank 1
 asked on 06 Oct 2008
1 answer
86 views
I'm having issues with dependent drop down menus. I have 2 dropdowns, Category and SubCategory. In a straight ASP.NET control page I have it working perfectly with OnSelectedIndexChanged.

With the telerik version though I have to assume something to do with xhtml output (the produced code is an <li> instead of an< option>)or xhtml page (the example on the website has simply Xhtmlpage instead of System.Web.UI.Page) or even the change from selected index to select value (as in LoadSubCategories(e.Value.ToString())) is causing the the first dropdown menu to not load. As you might expect, the second menu can not load unless the first loads.

Here's is the code...any help would be appreciated. Thanks!

ASPX PAGE 
... 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
... 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
 
    <telerik:RadComboBox ID="Categories" runat="server"  
        OnClientSelectedIndexChanged="Categories_SelectedIndexChanged" 
        OnItemsRequested="RadComboBox1_ItemsRequested" /> 
         
    <telerik:RadComboBox ID="SubCategories" runat="server"  
        OnItemsRequested="RadComboBox2_ItemsRequested" /> 
 
C# CODE-BEHIND 
using System; 
using System.Data; 
using System.Data.SqlClient; 
using System.Configuration; 
using System.Web; 
using System.Web.Security; 
 
using Telerik.Web.UI; 
 
 
public partial class tests_Default : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        // pre-populate Categories 
        if (!Page.IsPostBack) 
        { 
            LoadCategories(); 
        } 
    } 
    protected void LoadCategories() 
    { 
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); 
        conn.Open(); 
        SqlDataAdapter adapter = new SqlDataAdapter("SELECT id, category_name, sort_order FROM Categories", conn); 
        DataTable dt = new DataTable(); 
        adapter.Fill(dt); 
        conn.Close(); 
 
        Categories.DataTextField = "category_name"
        Categories.DataValueField = "id"
        Categories.DataSource = dt
         
        // if datatable is null  
        // do not bind dropdown 
        if(dt.Rows.Count != 0) { 
            Categories.DataBind(); 
        } 
    } 
    protected void LoadSubCategories(string categoryID) 
    { 
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); 
        conn.Open(); 
        SqlDataAdapter adapter = new SqlDataAdapter("SELECT id AS subcategoryID, subcategory_name FROM SubCategories WHERE category_id =" + categoryID, conn); 
        DataTable dt = new DataTable(); 
        adapter.Fill(dt); 
        conn.Close(); 
 
        SubCategories.DataTextField = "subcategory_name"
        SubCategories.DataValueField = "subcategoryID"
        SubCategories.DataSource = dt
        SubCategories.DataBind(); 
    } 
    protected void Categories_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        //Response.Write("e.Text = " + e.Text + "<br>e.Value = " + e.Value); 
        LoadSubCategories(e.Value.ToString()); 
    } 
 
    protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
    { 
        LoadCategories(); 
    } 
    protected void RadComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) 
    { 
        Response.Write("e.Text = " + e.Text + "<br>e.Value = " + e.Value); 
        LoadSubCategories(e.Value.ToString()); 
    } 
 
 

Yana
Telerik team
 answered on 06 Oct 2008
6 answers
163 views
Hi,

I tired to implement Outlook Navigation demo in master page. But I found the following JS doesn't work.
var multipage=$find("RadMultiPage1");

The error message is that multipage is null.

Who can guide me to solve this problem?

Thanks
Grissom
Paul
Telerik team
 answered on 06 Oct 2008
3 answers
230 views
I have never used a loading panel, and I do have an situation where
on a click it takes a few seconds and I would like a loading panel to appear.

I put this code in my aspx and nothing happens. Is there anything else I can do?

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
       onajaxrequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="form1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
    </telerik:RadAjaxManager>
  
  
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
       height="75px" width="75px" MinDisplayTime="50">
         <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>'
                style="border: 0;"/>
   </telerik:RadAjaxLoadingPanel>
Daniel
Telerik team
 answered on 06 Oct 2008
1 answer
92 views
Is there a way to have the tab strip goto the next tab when a user hits the tab key on the last control on the current tab? From a heads down data entry perspective, it would be nice to be able to just tab from one tab to the next.

Thanks!
Veselin Vasilev
Telerik team
 answered on 06 Oct 2008
5 answers
172 views
Hi,

I have a DetailTables in my grid, and each row in the DetailTables has a checkbox.  I am strugging to loop through each row to see if the checkbox is selected or not.  I have tried looking for a suitable example but could not find any.  Here is my code:

protected void btnClientAccounts_Click(object sender, EventArgs e)
{
   foreach (GridDataItem item in rgResults.MasterTableView.DetailTables[0].Items)
   {
      CheckBox chkSelectAccount = (CheckBox)item.FindControl("chkSelectAccount");
   }
}

The item coun stays 0.  I'm not sure.

Please can some one help me?

Thanks
Brendan
Shinu
Top achievements
Rank 2
 answered on 06 Oct 2008
1 answer
116 views
The example of the RadGrid with Related Grids is excellent. See http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/SelectedValue/DefaultCS.aspx 

Couple of questions:
1. Is there an example using Linq? Having some troubles making this work with Linq.
2. Can this be used for updating? Assume yes but just checking.

Thanks
Brad
Rosen
Telerik team
 answered on 06 Oct 2008
1 answer
132 views
I am having an issue with an ajax site scrolling...

i have a tree menu that updates a user control.. the user control houses 2 datalists that have images as the items....

when you click on an item.. it opens a detail panel for that item..

only thing is... if you scroll down and click on it, in ie... the detail window comes up but you have to scroll up to see the whole thing.

http://maximlrg.com/uomo/search

click on Men, and then click on cotton... scroll down to the bottom of the list and click on an item...

you will see the behavior...

i only notice it in ie7 on a laptop that doesnt have a lot of vertical screen space...

I placed a javascript routine that brings the scroll window to the top... but i was only able to attach it to the item command for the datalist... and that brings the items to the top and then displays the detail window.. that works.. but it is quirky...

Is there another solution?

thanks and regards,

jeff
Sebastian
Telerik team
 answered on 06 Oct 2008
1 answer
98 views
I am trying to edit the markup returned from the Set Image Properties context menu (I am trying to append an additional style on the img tag).  I have added the below to my tools file:

<contextMenu forElement="IMG">

<tool name="SetImageProperties1" iconurl="~/RadControls/Editor/Skins/Default/Img/imageProperties.gif" />

</contextMenu>


and the following javascript beneath the RadEditor on the page:


RadEditorCommandList["SetImageProperties1"] =
function(commandName, editor, oTool)
{
    editor.Fire('SetImageProperties', callBackFn);
    function callBackFn(result)
    {
        if (result)
        {
          alert(result);
        };
    }
};

This is currently giving me a js error Object does not support this property or method.  Also the icon URL is not displaying in the context menu even though it is valid and how would I put custom text in the context menu text?  I was trying to use this approach which is similar to the following thread: http://www.telerik.com/community/forums/thread/b311D-taged.aspx

Thank you for your help.

Rumen
Telerik team
 answered on 06 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?