Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views
I am custom loading the tools in the editor.
how can I hide the html tab and preview tab at the bottom of the editor
Tervel
Telerik team
 answered on 25 Mar 2009
1 answer
161 views

With this code:

 

chart.PlotArea.XAxis.AutoScale =

false;

 

chart.PlotArea.XAxis.MinValue = 0.0;

chart.PlotArea.XAxis.MaxValue =2.53;

chart.PlotArea.XAxis.Step = 1000;

// (maximum.Value - minimum.Value) / 10.0;

Whatever the step - 1, 10, 1000, 10th of difference, the x-axis draws so many labels and ticks that the x-axis becomes a complete mush. Why?

The only reason I am turning off autoscaling on this line chart is that autoscaling puts the first point on the axis some way in from the left, and the last point some way in from the right. So an alternative solution would be if you could tell me how to make autoscale put the first and last points on the extreme left and right

cheers

 

Dessy
Telerik team
 answered on 25 Mar 2009
1 answer
238 views
So, I need to change position of NumericTextBox. I put CssClass, but it doesnt affect on SpinButtons. I tried to put the same CssClass on SpinUpCssClass and SpinDownCssClass and also on ButtonCssClass, but they are still on the same place. How I can move them?
Princy
Top achievements
Rank 2
 answered on 25 Mar 2009
2 answers
61 views
With the Editor 2008.03-1125.20 how can I do the following:

I wish to have helpfull text in the Editor on load, lets say "Please remember to upload your files...". When the user types in the Editor or the Editor get focus the HelpFull text will be removed. I saw there is a Set_HTML method clientside, but what event should I use to get this functionality, and how do I control that this event is not firing more than once?.

Kind regards
Henrik Stensgaard
Henrik Stensgaard
Top achievements
Rank 1
 answered on 25 Mar 2009
4 answers
129 views
When I try to insert an image fromt he ImageManager, it comes back with <p><a href...></p> around it.  I would like to make this always come back as a <div style="float:right"><a href...></div>. 

Is there a way to make this happen?

Thanks!
Stacy
Stanimir
Telerik team
 answered on 25 Mar 2009
3 answers
1.0K+ views
I am looking for a way to clear a selected date in a RadDatePicker in the code-behind (C#).  It appears that the Clear method is not available.


Thanks for the help!
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2009
3 answers
106 views
After performing the steps specified in your instructions for resolving this ticket  RE: Support ID:141792 -- Skin not showing in grid when deployed

I receive an error when trying to create a RadChart. 

Control cannot be created because Visual Studio cannot find the control's specified type in the control assembly

For existing charts I see Unknown Server tag  "telerik:RadChart"

The fix you provided did repair the Skin not being displayed issue, however, this RadChart issue is now preventing the use of charts.  I'm not sure if it affects any other controls as well. 


Damon Zak
Ves
Telerik team
 answered on 25 Mar 2009
1 answer
174 views
Hi There,

I am working on telerik grid. I am trying to resize my grid according to window size, And i am able to resize my grid according to window size but The problem i am facing is here, that in my grid i am using ten column, but in grid only three column is visible, and also i am unable to get horizontal scroll bar, so i can't scroll and can see the rest column.  The coding which i am using for this is given below:
Masterpage.master 
------------------------- 
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Masterpage.master.cs" Inherits="Masterpage" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
    <style type="text/css"
 
html 
    overflow:auto; 
 
html, 
body, 
form 
    margin:0; 
    height:100%; 
 
</style> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <table style="height: 90%; width: 100%;" cellpadding="0" cellspacing="0"
            <tr> 
                <td style="height:90%;"
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"
                        </asp:ContentPlaceHolder> 
                </td> 
            </tr> 
        </table> 
    </form> 
</body> 
</html> 
 
GridResize.aspx 
------------------- 
<%@ Page Language="C#" MasterPageFile="~/Masterpage.master" AutoEventWireup="true" CodeFile="GridResize.aspx.cs" 
    Inherits="GridResize" Title="Untitled Page" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    <table style="height: 90%; width: 90%;"
        <tr> 
            <td style="height: 90%; width: 90%;" valign="top"
                <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="XmlDataSource1" AllowPaging="true" 
                    PageSize="40" Width="90%" Height="100%" Style="border: 0; outline: none"
                    <MasterTableView TableLayout="Auto" AutoGenerateColumns="false"
                        <Columns> 
                            <telerik:GridBoundColumn DataField="id" HeaderText="Issue" SortExpression="id" 
                                UniqueName="id" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>                              
                             <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname1" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname2" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname3" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname4" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>   
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname5" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname6" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname7" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname8" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname9" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname10" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname11" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>     
                            <telerik:GridBoundColumn DataField="firstname" HeaderText="firstname12" SortExpression="firstname" 
                                UniqueName="firstname" HeaderStyle-Width="40%" ItemStyle-Width="40%"
                            </telerik:GridBoundColumn>                            
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings EnableRowHoverStyle="true"
                        <Selecting AllowRowSelect="true" /> 
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                    </ClientSettings> 
                    <PagerStyle Mode="NextPrevAndNumeric" /> 
                </telerik:RadGrid> 
                <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/datasource.xml" /> 
            </td> 
        </tr> 
    </table> 
</asp:Content> 
 
Can any body help me to come out of this problem...

Regards:
Vimal Kumar Srivastava
Madhepura, Bihar
Email Id: vimaltech04@gmail.com


Tsvetoslav
Telerik team
 answered on 25 Mar 2009
1 answer
103 views
Hi,

I'd like to add a javascript function to the links of the menu items, for the onClick event.  The problem is I cannot find the the appropriate controls in the control hierarchy.  Here is what I've done so far :

private

 

void myFunction(GridFilteringItem item)
{

 

    foreach (TableCell cell in item.Cells)

    {

 

        foreach (Control c in cell.Controls)

        {

 

            if (c is GridFilterMenu)

            {

 

                GridFilterMenu gridFilterMenu = c as GridFilterMenu;

 

                // Find the links in the gridFilterMenu
                // Add javascript to the onClick event

            }

        }

    }

}

Using the debugger, I found out that the GridFilterMenu is not contained in the cell.  Where should I look for it?

Thank you very much!

M.

 

Princy
Top achievements
Rank 2
 answered on 25 Mar 2009
1 answer
136 views
Hi;

I need to be able to override the style for inline editting on one of my grids.  This grid is a batch update where all the rows are changed to edit mode in PreRender.

My skin shows the grid as a green row when selected by default. 

Is there anyway to change it so it will look like the gridrow is not in edit mode?

Here is my preRender code:  But it does not change the style.

 // change all rows into edit mode.
            bool altRow = false;
            foreach (GridItem item in this.RadGridThematicLayer.MasterTableView.Items)
            {
                if (item is GridEditableItem)
                {
                    // Here is where we add the style to make it look like everything else.
                    GridEditableItem editableItem = item as GridDataItem;
                    if (editableItem != null)
                    {
                        editableItem.Edit = true;
                        editableItem.CssClass = altRow ?  "GridAltRow_Telerik" : "GridRow_Telerik";
                        altRow = !altRow;
                    }
                }
            }
            RadGridThematicLayer.Rebind();
Princy
Top achievements
Rank 2
 answered on 25 Mar 2009
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?