Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 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
121 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
121 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
195 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
62 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
200 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
1 answer
126 views
we are using Rad AsyncUpload control to upload files.we have limit on file size that is to be uploaded.when we try to upload a file whose size is more than the limit,we need to show alert message and stop uploading file progress on client side.We tried this using OnClientProgressUpdating event.Using this event we are able to show alert but could not stop uploading progress.how can we cancel the progress?
Plamen
Telerik team
 answered on 06 Apr 2012
3 answers
205 views
I think a demo about the RadListBox in RadGrid,included the add,delete,update function. front code have a control,and behind code have bound data and command.that's all.But I donot find the demo.who have a demo,please give me,Thanks a lot!!
Vasil
Telerik team
 answered on 06 Apr 2012
1 answer
133 views
Hello,
i have two ComboBoxes in my EditItemTemplate. The comboboxes are to be interdependent. The key to the first combobox should be the selection criterion for the second combobox.
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" Culture="de-DE"
DataSourceID="SqlDataSource1" GridLines="None">
 
 
<MasterTableView autogeneratecolumns="False" datasourceid="SqlDataSource1" CommandItemDisplay="TopAndBottom">
 
 
<Columns>
<telerik:GridBoundColumn DataField="LayoutID" DataType="System.Int64"
FilterControlAltText="Filter LayoutID column" HeaderText="LayoutID"
SortExpression="LayoutID" UniqueName="LayoutID">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="LayoutTypeID" DataType="System.Int32"
FilterControlAltText="Filter LayoutTypeID column" HeaderText="LayoutTypeID"
SortExpression="LayoutTypeID" UniqueName="LayoutTypeID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox1" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceTypes" DataTextField="TypeName"
    DataValueField="TypeID"  >
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="LayoutTypeIDLabel" runat="server"
    Text='<%# Eval("LayoutTypeID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="PlayerID" DataType="System.Int64"
FilterControlAltText="Filter PlayerID column" HeaderText="PlayerID"
SortExpression="PlayerID" UniqueName="PlayerID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox2" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceLayout" DataTextField="LayoutName"
    DataValueField="LayoutID">
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="PlayerIDLabel" runat="server" Text='<%# Eval("PlayerID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
 
SelectCommand="SELECT LayoutID, LayoutTypeID, PlayerID FROM cms_player_layout WHERE (PlayerID = @playerID)"
InsertCommand="INSERT INTO cms_player_layout(PlayerID, LayoutID, LayoutTypeID) VALUES (@playerID, @layoutID, @layoutTypeID)">
<InsertParameters>
<asp:Parameter Name="playerID" />
<asp:Parameter Name="layoutID" />
<asp:Parameter Name="layoutTypeID" />
</InsertParameters>
<SelectParameters>
<asp:Parameter Name="playerID" DefaultValue="1" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceTypes" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT TypeID, TypeName, TypeText, TypeObjectTypes, TypeMenu, TypePriority, ProjectID FROM cms_layouttypes ORDER BY TypeName">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceLayout" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT LayoutID, ParentID, LayoutName, LayoutArt, LayoutBgColor, LayoutBgImage, LayoutSize, LayoutWidth, LayoutHeight, LayoutType FROM cms_layouts WHERE (LayoutType = @layoutType)">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="layoutType" />
    </SelectParameters>
</asp:SqlDataSource>

How can I do that?

Best regards
Reiner


Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
1 answer
366 views
Hi,
Trying to find a way to hide the
 <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Notes"></telerik:GridEditCommandColumn>
if a person doe snot have admin privledges, I see lots of examples for other buttons and controls but so far not this way.

Protected Sub myRadGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            Dim EditFormcmdItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
  
            If checkAdmin() = False Then
                EditFormcmdItem.FindControl("EditCommandColumn").Visible = False
            End If
        End If
    End Sub
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?