Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
220 views
I'm having trouble with the controlparameter of a ListBox which points to same RadGrid where the Listbox is used.

I want to populate the Listbox depending on the selected value of the Grid, so I've set a controlparameter in the datasource of the ListBox which points to the selectedItem of the Grid. However, the controlparameter always gets the default value. If I set the controlparameter to another grid (not the grid which is the parent of the ListBox) it works fine.

<GRID id=g1 Datasource = DS1>  
    <VIEW> 
    <EDIT> 
        <LISTBOX Datasource=DS2></LISTBOX> 
      </EDIT> 
</GRID> 
 
<DS1> 
    ...  
</DS1> 
 
<DS2> 
    <selectparameters> 
        <asp:ControlParameter ControlID="g1" DefaultValue="0" Name="id" PropertyName="SelectedValue" Type="Int32" />   
    </selectparameters> 
</ds2> 


Yavor
Telerik team
 answered on 08 Sep 2009
11 answers
932 views
i have 2 comboboxes when an item selects on combo1 i want to disable few items on combobox2. like this

combobox1           combobox2
1                                7
2                                8
3                                9
4                                10
5                                11

so if item 1 is selected combobox 2 only allow user to select 7 or 8. if 2 is selected only 8 or 9 can be selected. thank you for your help.
Shinu
Top achievements
Rank 2
 answered on 08 Sep 2009
3 answers
128 views
Hi,

I'm having an usercontrol(.ascx) where I need to double click on a grid and it needs to open up another usercontrol.

I do the following: in .ascx

<

 

script type="text/javascript">

 

 

function RowDoubleClick(index)

 

{

__doPostBack(

"<%= this.UniqueID %>", "RowDblClicked:" + this.Rows[index].ItemIndex);

 

}
</script>
in client events I do,

 

 

<ClientEvents OnRowDblClick="RowDoubleClick"></ClientEvents>

 

 

 


and in ascx.cs file, I do this,

 

 

public partial class CPackageMainUserControl : BaseUserControl, IPostBackEventHandler
{

 

 

void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)

 

{

 

string[] postBackEventArgumentData = eventArgument.Split(':');

 

 

switch (postBackEventArgumentData[0])

 

{

 

case "RowDblClicked":

 

m_ctlPackageGroupMultiView.SetActiveView(m_ctlPackageSetUpView);

m_ctlPackageSetupUserCtrl.LoadNonDocPredefinedReports();

 

break;

 

}

}
}

(because in my cause when i dbl click on a row in a radgrid , I need to setactiveview to openup another view).

But when i do all this and try to run , I get a javascript message :

Microsoft JScript runtime error: 'this.Rows' is null or not an object.

Pls help me and correct my code and let me know what to do .
Thanks,
ZR


Shinu
Top achievements
Rank 2
 answered on 08 Sep 2009
3 answers
109 views
Hi,

I have upgraded RADControls - RADTreeView from ASP.NET to ASP.NET AJAX v2009.1.527.35.

I get the error "controls collection cannot be modified" when the page loads.
The RADControl declaration and associated code is given below.

<telerik:RadTreeView id="AllControlsTree" Runat="server" Width="99%" OnContextMenuItemClick="Tree_ContextMenuItemClick" 
OnClientContextMenuItemClicking="BeforeClientContextHandler" Height="60%"></telerik:RadTreeView> 
<TABLE cellSpacing="2" cellPadding="0" width="260"> 
<TR> 
  <TD onclick="AddControlsPostBack(<%= AllControlsTree.ClientID %>);" >Cell xxx 
    Add Controls To Version 
  </TD> 
</TR> 
</TABLE> 
 

Already tried
<telerik:RadTreeView id="AllControlsTree" Runat="server" Width="99%" OnContextMenuItemClick="Tree_ContextMenuItemClick" 
OnClientContextMenuItemClicking="BeforeClientContextHandler" Height="60%"></telerik:RadTreeView> 
<TABLE cellSpacing="2" cellPadding="0" width="260"> 
<TR> 
  <TD onclick="AddControlsPostBack($find('<%= AllControlsTree.ClientID %>')" >Cell xxx 
    Add Controls To Version 
  </TD> 
</TR> 
</TABLE> 
 
which gives the same error..

Regards...
Atanas Korchev
Telerik team
 answered on 08 Sep 2009
5 answers
128 views
I need to find a control for an application for work.

List the countries
then state/provinces
then cities/region.

Three dropdownlist.

Vlad
Telerik team
 answered on 08 Sep 2009
3 answers
163 views
Hi,

I have been trying to get RadChart working on Mono but no luck yet.

I am using a virtual machine which I downloaded from mono. For the most part all the controls work fine, just RadChart that doesn't. I get the following error:

The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<addpath="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler,Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral,PublicKeyToken=121fae78165ba3d4" validate="false" />

Then I tried runnig it on another machine with Mono installed on Apache and I get the following:

gdiplus.dll

Description: HTTP 500. Error processing request.

Stack Trace:

System.DllNotFoundException: gdiplus.dll  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)  at System.Drawing.GDIPlus..cctor () [0x00000] 

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433


Has anyone been able to get RadChart working on Mono?




Ves
Telerik team
 answered on 08 Sep 2009
1 answer
122 views
Hi,
 I use the AdvancedInsertTemplate on radscheduler to insert new appointments now my question is, is it possible to show the default recurring controls and saving with the AdvancedInsertTemplate?
If yes how is this be done?

Wim
Axe
Top achievements
Rank 1
 answered on 08 Sep 2009
3 answers
112 views
Hi
I am using the excellent form decorator control in default skin on a page which has a
stone coloured background.
The result is white corners around buttons where the rounding has been done. Is there
any way to set the background colour of the button so that the square corners are effectively invisible?

Thanks

Clive
Martin
Telerik team
 answered on 08 Sep 2009
3 answers
120 views
hi everyone.
my teacher give me a problem. he want me to make a hotkey for radgrid when press this hot key, a radwindow will show up and then this radwindow will return a result for radgird. but a do'nt know how to do that, plz give me away to solve that problem .
thank you .
lang dinh thien
Top achievements
Rank 1
 answered on 08 Sep 2009
3 answers
178 views
Hi,
I'm having fun with the grid and I can make it work fine.
I have a  GridButtonColum with CommandName that I can pick up in MyRadGrid_ItemCommand. Thats good. But the command I'm running is a file download and I need PostBack. I have seached the forum and the documentation but nothing I try seems to work.

So how can I make the button do a full Postback ? If I disable Ajax completely the button works as expected.

Atle
Atle
Top achievements
Rank 1
 answered on 08 Sep 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?