Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
hi

I have a select statement:

Select A, B, C, D, E from TA join TB

Is it possible to do a grid hierachy example

A B C
    C D E

How should i go about it? Thanks
Schlurk
Top achievements
Rank 2
 answered on 12 Nov 2009
1 answer
141 views
Hi,

I have a rad Grid with Grouping Feature. I am binding Group name with image icon next to it dynamically in Item_created event.

i.e I take GroupName and image name separated by some special character ex. '#', split it in Item created event and display it.

All works fine when page is loaded first time but when i try to collapse the group it does not show properly i.e it displays GroupName#ImagePath with ":" added to the start.

Request you to please suggest.

Thanks and regards,
Manish
Schlurk
Top achievements
Rank 2
 answered on 12 Nov 2009
4 answers
412 views
How do you tell if the HTML content of the editor has changed?

is there some sort of hasChanged flag?

i need access to this information via Client Side scripting.
woaksie
Top achievements
Rank 2
 answered on 12 Nov 2009
2 answers
200 views
Hi

I am Using RadSlidingPane for my Application and I should disable the title bar for not to shown in my page.
I look up at it`s property but it didn`t workout , and I just disabled Docking button But I want whole title bar not to shown in my page .

I will be realy happy if someone could help me , or interduce me some control like RadSlidingPane but with no title bar !

Thanks
Best Regards
Amir Ali
amir ali
Top achievements
Rank 1
 answered on 12 Nov 2009
0 answers
117 views
Hi All,

How do we know when the upload is complete. My program takes in a file and converts it into a pdf file after upload and then i need to stream it back to the browser. I am not sure how to track the upload complete on the browser side so that i can initiate another page after the upload to stream the pdf. i would like to do this initiation through a javascript, i am not sure which event i should track on the client side to do this soon after the upload is complete.

thanks
Sunil
Sunil Ramu
Top achievements
Rank 1
 asked on 12 Nov 2009
1 answer
191 views
  • I have a user Control containing this:

 

 

<%@ Register Src="~/uc1.ascx" TagName="test" TagPrefix="uc1" %>   
<%@ Register Src="~/uc2.ascx" TagName="test"TagPrefix="uc2" %> 
<uc1:test ID="uc1" runat="server" />   
<uc2:test ID="uc2" runat="server" />   
 
 

 

 

Code Behind:

 

   protected void Page_Load(object sender, EventArgs e)   
     {  
        RadAjaxManagerProxy AjaxManager = (RadAjaxManagerProxy)this.FindControl("RadAjaxManagerProxy1");   
         AjaxManager.AjaxSettings.AddAjaxSetting(uc1.FindControl("Button1"),uc2.FindControl("TextBox1"));   
   
     }  
 
 
 
   
 

 

 

  • User Control 1 is

    

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc1.ascx.cs" Inherits="App_TelusPHR_uc1" %>   
 
    <asp:Button ID="Button1" runat="server" Text="Button" />   
 

 

 

User Control 2 is

  

  <%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc2.ascx.cs" Inherits="App_TelusPHR_uc2" %>   
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>   
 

 

 

 

 

  code Behind

 

   public static int count = 0;   
 
    protected void Page_Load(object sender, EventArgs e)   
    {  
    count++;  
    TextBox1.Text = count.ToString();  
    }  
 
 

 


User control 2 is never refreshed..... any idea?

 

 

Pavlina
Telerik team
 answered on 12 Nov 2009
1 answer
131 views
Hi, I'm having a problem with a Grid, the thing is that I automatically expand the items and save the expand state when an update is done...but sometimes brings me this error:
Specified argument was out of the range of valid values.
Parameter name: ItemHierachicalIndex
I got the code to keep the state of the grid, from a telerik forum; this is where the page marks me the error

 

Protected Sub RadGrid1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.DataBound

 

 

'Expand all items using our custom storage

 

 

Dim indexes As String() = New String(Me.ExpandedStates.Keys.Count) {}

 

 

Me.ExpandedStates.Keys.CopyTo(indexes, 0)

 

 

Dim arr As New ArrayList(indexes)

 

 

'Sort so we can guarantee that a parent item is expanded before any of

 

 

'its children

 

arr.Sort()

 

For Each key As String In arr

 

 

If key Is Nothing Then

 

 

Else

 

 

Dim value As Boolean = DirectCast(Me.ExpandedStates(key), Boolean)

 

 

If value Then

 

------------------------>>>>>> RadGrid1.Items(key).Expanded =

True  <<<<<<<---------------------

 

 

End If

 

 

End If

 

 

Next

 

 

End Sub

 

Sebastian
Telerik team
 answered on 12 Nov 2009
7 answers
204 views
I'm having an issue with the RadStylesheetManager not combining the css files on AJAX requests.  The RadStylesheetManager works properly on the intial page request, but on AJAX requests I see individual WebResource requests to WebResource.axd and not Telerik.Web.UI.WebResource.axd.  The RadScriptManager residing on the same page works as expected during AJAX requests combining the script files for the controls and using the Telerik handler.  I've tested this with both Fiddler and Firebug and tried this with both IE and FireFox using both Q3 2008 and the latest nightly build of Q2 2009.

Any help would be appreciated.

Thanks
Matt
T. Tsonev
Telerik team
 answered on 12 Nov 2009
1 answer
166 views
Hi,

When predefining content in a TextArea you get an Unspecified error when hitting Enter.
To reproduce this:
  1. Open Internet Explorer 8 (other versions seem to have the same problem, but I cannot confirm. Firefox apparentally does not allow to predefine content in a Textarea inside the RadEditor).
  2. Go to a website with a RadEditor, eg: http://demos.telerik.com/aspnet-ajax/editor/examples/autosave/defaultcs.aspx
  3. Add a Textarea element.
  4. Hit <Enter> (given that the caret is in the Textarea, otherwise doubleclick on the Textarea before hitting <Enter>)
  5. A messagebox pops up stating Unspecified error

I know that using <Shift> + <Enter> does the trick. But is there a way to either accept the <Enter> as a newline or display a custom error message?

Thanks in advance,
Dries
Rumen
Telerik team
 answered on 12 Nov 2009
1 answer
84 views
Hello,
I've been trying to do something that has a problem.

I have a RadGrid with a nestedviewtemplate. Inside this newstedviewtemplate i have 3 tabs with another radgrid (1st tab), several control (2nd tab) and a repeater (3rd tab).

I've been trying by client side, when i change the values in the 2nd tab (several controls) I need to place a checkbox with checked=true. My problem has been trying to do this when changing the selected date in a RadDatePicker.

Mensagem: O objecto não suporta esta propriedade ou método
Linha: 6
Caráct: 29366
Código: 0
URL: http://localhost/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager2_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3apt-PT%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3apt-PT%3ad2d891f5-3533-469c-b9a2-ac7d16eb23ff%3ae330518b%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ac8618e41%3aaa288e2d%3aed16cbdc%3a58366029%3a874f8ea2%3a8bd1850e%3a50790754%3ac01e561a

The line of code of when I try to change the attributes in the server side (when executing the expandall command in the first radgrid) is this:

rDatePickerInicial.ClientEvents.OnDateSelected = "ChangeCheckBox('" + ckChanges.ClientID + "')";

The code for asp.net textbox is:
 

txtDescricaoPt.Attributes.Add(

"onkeypress", "javascript:ChangeCheckBox('" + ckChanges.ClientID + "')");

 txtDescricaoGb.Attributes.Add(

 

"onkeypress", "javascript:ChangeCheckBoxCheckBox('" + ckChanges.ClientID + "')");

 

 

and this works.

My only problem has to do with Telerik controls.

Sebastian
Telerik team
 answered on 12 Nov 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?