Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 views
Hi, i am trying to style our radButtons in the same way our asp buttons are styled.  Here is our current css class for our asp buttons:

.button {
    height: 21px;
    background-image: url('/Common/Images/button.png');
    background-repeat: repeat-x;
     
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
     
     
    border-left: 1px solid #666;
    border-right: 1px solid #666;
    border-top: 0px;
    border-bottom: 0px;
    color: white;
    padding-left: 12px;
    padding-right: 12px;
    cursor: pointer;
         
}


I have tried a few different ways but i get some weird things happening.  For instance, it also styles our rad toggle buttons which is very weird.  Im sure it's going to be quite simple for you guys but im just struggling to get it right.

Some css i tried:
.RadButton {
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
    border-radius: 4px !important;
    -moz-border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
     
     
     
    border-left: 1px solid #666 !important;
    border-right: 1px solid #666 !important;
    border-top: 1px solid #666 !important;
    border-bottom: 1px solid #666 !important;
    color: white !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    cursor: pointer !important;
}
.rbDecorated {
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}
.rbSkinnedButton {
  height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}
.rbSkinnedButton:hover
{
    background-position: initial !important;
    height: 21px !important;
    background-image: url('/Common/Images/button.png') !important;
    background-repeat: repeat-x !important;
     
  
   
    border: 0px !important;
    color: white !important;
    cursor: pointer !important;
}

Any help you can provide is greatly appreciated.

Thanks,
Michael
Bozhidar
Telerik team
 answered on 06 Apr 2012
4 answers
165 views
How to copy data from parent level to child level (see in attached file). For example, If I need to edit price of all rooms on the 1st floor according to 1st floor price. Firstly, I need to change the price from 200 to 210 of 1st floor price. Then I do not need to edit row by row at child level. Does telerik provide a function to copy price from 1st floor price to all rooms price on the 1st floor? or I have to program with another technic?
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
2 answers
103 views
Hi all

Helpme pls.

I've a page
which contains a tabstrip
which contains usercontrols for each tab
one of these contains a radgrid with
*** EditMode="EditForms"
*** autogeneratecolumns="false" and binded on a list of objects via needdatasource
which displays an insert form with just this: <asp:Button ID="btnTemp" runat="server" Text="Hallo" />
(no events handler in this form and no javascript scripts are in)

The radgrid has 3 columns defined in ascx. The others columns must be added at runtime by the user with his preferences

Columns are added through a button at runtime. User select a combovalue and press "ADD" to add the new column.
ADD button just add the new columns in a session variable with the list of current columns added and create the column.

Starts the Page_Init event where I (re)add the columns added by the user.

All works. Viewstate is consistent. I like it.

I click on InsertItemCommand on the grid and my forms appears with just its sad "Hallo" button.
This button has no onclick event handler.
If I click it... no exceptions are thrown but the postback starts and the form gets closed.

And I'm being just crazy to understand WHY :)

I've tried

EnableColumnsViewState="false"/"true"
EnableViewState="true/false"


Using the form in popup mode the same happens! The ADD button doesn't fire any ItemCommand. Just Page_Init and Page_load of the usercontrol contained.

PLS HELP
Vincenzo
Top achievements
Rank 1
 answered on 06 Apr 2012
4 answers
89 views
Hi all,

i am using "RadControls for ASP.NET AJAX Q1 2012" with visual studio 2010 and when i am clicking on the "New recurring appointment" following error occurs


Selection out of range
Parameter name: value

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +173
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +489
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1254
   Telerik.Web.UI.RadComboBox.PerformSelect() +37
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +70
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +1311
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1     



I have also downloaded the demo projects "RadControls for ASP.NET AJAX Q1 2012" and facing same error on all 4 samples of "Rad Scheduler"
 
Kate
Telerik team
 answered on 06 Apr 2012
1 answer
128 views
I have issue with Radchart zoom in option. could help me out please?
I designed the radchart with below code and able to see the results from the database.

I would like to use the zoom in option on x and y axis at code behind. Am not having the properties to achive this requirement.
As I didn't use chart area on below code, am using zoom option on Plotarea, Thats way its not giving the option.

I don't want use this code (<ClientSettings EnableZoom="True" ScrollMode="Both"/>)due to some performance issues.
and I would like to maintain the zoom in range from code behind file.        
Please could you suggest How Could I design the radchart to get zoom option?


<

 

 

telerik:RadChart AutoLayout="True" Height="450px" ID="CapacityRadChart"

 

 

 

runat="server" Skin="WebBlue" Width="935px" OnClick="CapacityRadchartClick">

 

<%

 

--<ClientSettings EnableZoom="True" ScrollMode="Both"/>--%>

 

 

 

<Appearance>

 

 

 

<FillStyle MainColor="249, 250, 251">

 

 

 

</FillStyle>

 

 

 

<Border Color="160, 170, 182" />

 

 

 

</Appearance>

 

 

 

<Legend>

 

 

 

<Appearance Dimensions-Margins="1%, 1%, 1px, 1px"

 

 

 

Dimensions-Paddings="1px, 1px, 1px, 1px"

 

 

 

Position-AlignedPosition="Top">

 

 

 

<ItemTextAppearance TextProperties-Color="102, 102, 102">

 

 

 

</ItemTextAppearance>

 

 

 

<FillStyle MainColor="216, 222, 227">

 

 

 

</FillStyle>

 

 

 

<Border Color="160, 170, 182" />

 

 

 

</Appearance>

 

 

 

</Legend>

 

 

 

<PlotArea>

 

 

 

<YAxis AutoScale="True" AxisMode="Extended">

 

 

 

<Appearance>

 

 

 

<MajorGridLines Color="227, 227, 227" />

 

 

 

<MinorGridLines Color="227, 227, 227" />

 

 

 

<TextAppearance AutoTextWrap="False"/>

 

 

 

</Appearance>

 

 

 

<AxisLabel>

 

 

 

<TextBlock>

 

 

 

<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="TopLeft">

 

 

 

</Appearance>

 

 

 

</TextBlock>

 

 

 

</AxisLabel>

 

 

 

</YAxis>

 

 

 

<XAxis AutoScale="True" DataLabelsColumn="RIID's" MaxValue="0" Step="0">

 

 

 

<Appearance>

 

 

 

<MajorGridLines Color="227, 227, 227" Width="0" />

 

 

 

<TextAppearance AutoTextWrap="True" />

 

 

 

</Appearance>

 

 

 

<AxisLabel>

 

 

 

<TextBlock>

 

 

 

<Appearance TextProperties-Color="140, 140, 140" Position-AlignedPosition="BottomRight">

 

 

 

</Appearance>

 

 

 

</TextBlock>

 

 

 

</AxisLabel>

 

 

 

</XAxis>

 

 

 

<Appearance>

 

 

 

<FillStyle FillType="Solid" MainColor="">

 

 

 

</FillStyle>

 

 

 

</Appearance>

 

 

 

</PlotArea>

 

 

 

<ChartTitle>

 

 

 

<Appearance>

 

 

 

<FillStyle MainColor = "">

 

 

 

</FillStyle>

 

 

 

</Appearance>

 

 

 

<TextBlock Text="Capacity Delay" >

 

 

 

<Appearance TextProperties-Color="102, 102, 102"

 

 

 

TextProperties-Font="Arial, 7pt" Position-AlignedPosition="Bottom">

 

 

 

</Appearance>

 

 

 

</TextBlock>

 

 

 

</ChartTitle>

 

 

 

</telerik:RadChart>

 

Peshito
Telerik team
 answered on 06 Apr 2012
2 answers
117 views
I'm trying to run the self-hierarchy example on a WSS display form.
I use basically the same xml and c# code, only with a different data binding.
There are no other scripts registered on the page currently.
On the page load I got JS error from the telerik webresource -
var c=a._events[f]||[];
on line 421 - _events is undefined.
Next error is on line 7986:
},_buildNode:function(i,h){var g=this._getEntityByName(i.Name),j=this,k={name:i.Name,type:i.EntityType,entity:g,child:h.apply(j,[g.NavigationProperty])};
again undefined variables.
so when i try to collapse the hierarchy in the grid the $find method returns null - when provided with the proper id of the grid.
further debugging showed that the grid does not exist in the sys.application.components collection.
I'm using Q3 2011 SP1 version of the components.
Please advice what can be wrong.
Shruti B
Top achievements
Rank 1
 answered on 06 Apr 2012
1 answer
116 views
I need to recreate the title of this graph http://www.cnppid.com/Assets/Elwood_Last_5_Years.jpg . Two things, how do I increase the size of the title area, and how do I create a multi line title. I've been bouncing around your forums and examples, but I can't seem to find what I'm looking for.
Peshito
Telerik team
 answered on 06 Apr 2012
1 answer
192 views
Hi there,  I'm experiencing quite a strange problem between web browsers.
If you view the attached image, it will show that when I add a table cell and enter text into the cell... In IE the editor control automatically sets the font size to 12pt but in Chrome it is automatically set to 12px resulting in different text sizes across browsers.

I'm using the latest Telerik .dll  (2012.1.215.40)

Any suggestions ?

Thanks  !!




         
Rumen
Telerik team
 answered on 06 Apr 2012
2 answers
60 views
Hello,

I created a composite control containing a RadGrid and several buttons for the user to configure the Grid (e.g. the columns).
The composite control also adds a loading panel which is used for ajaxifying the Grid.
I'm using the RadGrid on the page itself, and the other Grid is used in the FormTemplate of the first Grid. Everything works so far, but the LoadingPanel. It works fine for the first Grid, but doesn't for the Grid in the FormTemplate.

As I've seen in the markup, the loading panel is displayed, but it's height and width are both 0px. What could be the cause that the first RadGrid has it's LoadingPanel work correctly but the second one doesn't? What could be the cause for that behavior?

Thanks for your help!
Maria Ilieva
Telerik team
 answered on 06 Apr 2012
3 answers
190 views
Hi Telerik Team,

                       We are Explore all Telerik controls but currently in our system we use asp grid with customizes control in that grid there is option of Menu in Grid because we use grid data for multiple operation but in Telerik Grid have not option for display Menu in Grid Header.So how we achieve Menu option in Telerik Grid. If we have not option of "Menu" then we have to use Multiple Buttons to perform operation in Grid.Please Give Us solution that Grid have option for menus and in each menu there would be event on server side.



Please see our attach file of Menu Option Grid.
           
Tsvetina
Telerik team
 answered on 06 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?