Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
How can I retrieve the value for a slider on the client side?

I've got the index (sender.get_value()).

can you give an exmaple of how to retrieve the value if I know the index?
Tsvetie
Telerik team
 answered on 18 Feb 2009
1 answer
79 views

I am using a Button type of image so I am calling the below functon from my onclientclick event

function

spellCheckDescription()

 

{

 

 

var spell = GetRadSpell('<%= txtDescription.ClientID %>');

 

spell.StartSpellCheck();

 

 

return false;

 

}

This works fine but I would like to pass in the text box control to check instead of hard coding it. I need to check 10 large text fields on my form and do not want to create a function for each, nor check them all at once.

How can I modify the above function so that it is generic to enable the passing of the control?

Thanks.

 

Rumen
Telerik team
 answered on 18 Feb 2009
2 answers
86 views
I'm sure this is a CSS or Javascript problem/bug.

I have an issue with the buttons inside the Image Manager.

I have a page that has a splitter with two panes.  The left pane is 125px wide. 

In the left pane, I have a table with two cells.  The left cell has a treeview with a width around 200px. The right pane is set to fill the remainder of the screen and contains the radeditor.  The radeditor fills the right cell.

Therefore, after padding and widths of the left pane and left cell, the radeditor is approx 365px from the left.

Okay, now that you have a picture in your head (hopefully) of how my page is setup, here's the issue.

Inside the Image Manager, when I click on "Image Editor", "Best Fit", "Actual Size", "Zoom In", or "Zoom Out", the image is manipulated correctly, however, the Image Manager dialog is moved the far left of the screen (0px) along with the entire page's contents.  Therefore, everything to the left of the radeditor (the left pane, the left cell containing the treeview) is "pushed" off the left of the screen.  Basically, it seems that the entire page is shifted to the left until the radeditor is flush with the left of the screen.

Here's the a link to the before and after screenshots: http://rapidshare.com/files/198601969/screenshots.zip.html

One thought, I have two monitors.  VS is opened in the left monitor and IE is opened in the right monitor. So the "shifting" to the left could be a javascript positioning to the middle of the screen (or combined screen in this case).

Also, this does NOT happen in FireFox - everything works great in FireFox. The problem is only in IE.

And I do have the latest build of the controls.

Thanks,
Joshua
Joshua
Top achievements
Rank 1
 answered on 18 Feb 2009
4 answers
192 views
Hi,

I was wondering if anyone could tell me how to do this. I need an image button in a details record of a radgrid to cause a radwindow to open when it's clicked. I think I need to assign the right attibrute to the control in the item created event, but I'm not sure how to do this?

Thanks
William
Top achievements
Rank 1
 answered on 18 Feb 2009
3 answers
144 views
Hi all

I would like to programmatically set the file path and name for upload so the user does not have to browse for the file.  In my application the user goes to a web page and does some image work that generates and image which is saved locally, always to the same path and file.  I would like the user to then simply click Upload rather than having to browse for and select the file. 

If this is not possible due to security issues on the browser, are there other options you can suggest?  Maybe some other kind of upload (http post?) that can be tied to the progress monitor?

Thanks
Mark
Genady Sergeev
Telerik team
 answered on 18 Feb 2009
3 answers
211 views
With two items retrieved from database Open and PastDue, Horizontal Bar Chart, looking at example in PDF documentation Page #47.
What I want as output is something like


TotalOpen =========================================  301
TotalPast ========= 13

Problem is that I can't seem to figure out how to get the YColumn Text, the example below is
like the 10th variation

Thanks!



 

<telerik:RadChart ID="RadChart1" runat="server"

 

 

Skin="WebBlue" AutoLayout="true" Height="350px" Width="680px" SeriesOrientation="Horizontal">

 

 

 

<Series>

 

 

<telerik:ChartSeries DataYColumn="Open" Name="Total Open"></telerik:ChartSeries>

 

 

<telerik:ChartSeries DataYColumn="Past" Name="Total Past"></telerik:ChartSeries>

 

 

</Series>

 

 

 

<PlotArea >

 

 

<XAxis AutoScale="True">

 

 

<Items>

 

 

<telerik:ChartAxisItem TextBlock-Text="Open" />

 

 

<telerik:ChartAxisItem TextBlock-Text="Past TAT" />

 

 

</Items>

 

 

</XAxis>

 

 

</PlotArea>

 

 

 

<Legend Appearance-Position-AlignedPosition="right" Visible="false"></Legend>

 

 

</telerik:RadChart>

 

Velin
Telerik team
 answered on 18 Feb 2009
1 answer
87 views

How can i create a self-hierarchy grid using a DataTable created programatically ?

Iana Tsolova
Telerik team
 answered on 18 Feb 2009
2 answers
120 views

i tried to open a support ticket for this however i kept getting an error from the server telling me oops...
so i figured i would post it here but i can not attach a file to this...so not sure on how to get the file to you guys

i found the post on making a raddock modal. well i am not sure what is going on but i keep getting a javascript error when i implement the code on that post.
the javascript error is "Object Expected" or something like that...
i have attached a project that shows this behavior...
you will need to run the Default.aspx page...

the only difference between this and the one you guys posted is..
i needed it to go into a contentpage...
and needed it to show based on a postback not clientside...
so i used the ScriptManager.RegisterStartupScript etc...
now this all works fine on page by itself with no master page..
but if i add a master page like in the default.aspx i get the error.

thanks in advance for a timely response.
Joshua Gates
Top achievements
Rank 1
 answered on 18 Feb 2009
2 answers
222 views
Hello,

I am using the (latest?) version 2008.3.1125.35 of the Telerik RadControls for ASP.NET Ajax.
In this small example below, I can not make the pushbutton fire the ItemCommand event. With the ImageButton, everything is fine.
It is not a blocking thing but I would rather use a button because I have a css class ready for it.
Can someone please tell me if it is a bug or am I doing something wrong?

Thank you,

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication4._Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!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></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <div> 
      
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"   
            AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"   
            GridLines="None" onitemcommand="RadGrid1_ItemCommand"   
            onitemdatabound="RadGrid1_ItemDataBound">  
<HeaderContextMenu> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView datakeynames="CategoryID" datasourceid="SqlDataSource1">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"   
            HeaderText="CategoryID" ReadOnly="True" SortExpression="CategoryID"   
            UniqueName="CategoryID">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CategoryName" HeaderText="CategoryName"   
            SortExpression="CategoryName" UniqueName="CategoryName">  
        </telerik:GridBoundColumn> 
        <telerik:GridButtonColumn CommandName="DeleteP" UniqueName="DeleteP" Text="Delete" ButtonType="PushButton">  
        </telerik:GridButtonColumn> 
        <telerik:GridButtonColumn CommandName="DeleteL" UniqueName="DeleteL" Text="Delete" ButtonType="LinkButton">  
        </telerik:GridButtonColumn> 
    </Columns> 
</MasterTableView> 
 
<FilterMenu> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"   
            SelectCommand="SELECT [CategoryID], [CategoryName], [Description] FROM [Categories]">  
        </asp:SqlDataSource> 
      
    </div> 
    <telerik:RadAjaxManager runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    </form> 
</body> 
</html> 
 

Default.aspx.cs:
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Telerik.Web.UI;  
 
namespace WebApplication4  
{  
    public partial class _Default : Page  
    {  
        protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            string cmdName = e.CommandName;  
            string cmdArg = e.CommandArgument.ToString();  
        }  
 
        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                var dataBoundItem = e.Item as GridDataItem;  
 
                var btnP = dataBoundItem["DeleteP"].Controls[0] as Button;  
                btnP.OnClientClick = "return confirm('ok " + dataBoundItem["CategoryName"].Text + "?');";  
                btnP.CommandArgument = dataBoundItem["CategoryID"].Text;  
 
                var btnL = dataBoundItem["DeleteL"].Controls[0] as LinkButton;  
                btnL.OnClientClick = btnP.OnClientClick;  
                btnL.CommandArgument = btnP.CommandArgument;  
            }  
        }  
    }  
Samwise
Top achievements
Rank 1
 answered on 18 Feb 2009
1 answer
144 views
Hi,

What properties do I need to set, if I want to show Minimize and Restore buttons while navigating?


for Ex. my code is,

var oWnd = radopen ("http://www.google.com", "WindowNameHere");

oWnd.center();

It displays only close button, how to show minimize and restore buttons?
Georgi Tunev
Telerik team
 answered on 18 Feb 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?