Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
157 views
We are trying to figure out how to get a long title to appear in a relatively small radwindow and have exhausted all of our lines of research on this. The issue is that the title bar is divided into a 3-cell table, with the first cell used for the icon, the second for the title and the third for the control buttons.

Regardless what we try, it appears that the 2nd and 3rd cells always divided the available space 50/50, but our title for this window needs to consume about 80% of the available space.

I am not sure that this can be implemented through the available classes/configuration, but it would be incredibly helpful if it could be or if someone knows of a workaround that we might have missed.

Thank you!
Martin
Telerik team
 answered on 02 Oct 2008
3 answers
215 views
Hello, i am building a web application that contains buttons. since your package does not include radbuttons i used radtoolbar with only one button as an alternate.
I am looking for a way to activate the toolbarbutton when the client press enter. I read you manual which explains how to make the button pressed by two keys combination Alt and another key that i choose. This is really works but does not satisfy my needs, i need it to be only one button - Enter.

I think if the mechanizm inside could track the two keys combinations its must be a way to make it work only for one either.

Please help me.

Thanks,

Ilya Kouperman
Ilya
Top achievements
Rank 2
 answered on 02 Oct 2008
3 answers
85 views
Hello:

I am fairly new to the world of telerik controls. I have already queried the forums and other sources to find an answer to my problem.

I have an hierarchical grid (just one master and one detail).  Whenever I create an ItemCreated event, the expand function to display the detail grid using the plus button fails. I want to use the ItemCreated event to set the width of my filter boxes.  Here is the code:
        GridFilteringItem filteringItem = e.Item as GridFilteringItem;
         //set dimensions for the filter textbox
        TextBox boxStat_Num = filteringItem["Stat_Num"].Controls[0] as TextBox;
        boxStat_Num.Width = Unit.Pixel(50);
As you can, this is pretty standard code.

Is this a known issue and if so, what are the possible solutions or workarounds. The version is 2008.1.415.35.

Thanks for any help in advance.

Michael
Yavor
Telerik team
 answered on 02 Oct 2008
1 answer
171 views
Hi,

I have a RadGrid that I dynamically build at runtime, eg:

templateColumn = new GridTemplateColumn();
                templateColumn.UniqueName = "Column" + (i + 1).ToString();
                pt = new PresentationTemplate(0, "OnValueChanged", templateColumn.UniqueName);
                templateColumn.ItemTemplate = pt;
                templateColumn.FooterTemplate = new LabelTemplate("0", "lblFooter" + (i + 1).ToString());
                templateColumn.DataField =  "Column" + i;
                RadGridGroup.MasterTableView.Columns.Add(templateColumn);



The template columns only allow numeric inputs.

I want to get the values of the template columns textboxes, eg:

 foreach (GridDataItem gridRow in RadGridGroup.MasterTableView.Items)
            {
                RadNumericTextboxExtended textBox = gridRow.FindControl("0Column1") as RadNumericTextboxExtended;



This works when the columns are specified at design time (in the aspx), how can I get the values of these template column cells when I create the columns at runtime??

Thanks in advance



Meaning Of Lights
Top achievements
Rank 2
 answered on 02 Oct 2008
2 answers
102 views

I have been trying to display error handling messages in the GridStatusBarItem following the instructions on page 239 of Section 13.2.1 of RadGrid documentation. But I cannot get it to work.

Using Trace.Write and debugging, I can prove that I can find the GridStatusBarItem in the ItemCreated event, and then with that item use 

lblStatusBar = itmStatusBar.FindControl("StatusLabel")

to find the label control. Then I can prove that I set the lblStatusBar.Text to the error message I want to display. But some other event later on is apparently overwriting or rewriting the text so that the final appearance always goes back to the "Ready" message.

I have temporarily solved the problem by also simultaneously writing the error message to an additional literal control like this

RadGrid1.Controls.Add(

New LiteralControl(String.Format("<span>{0}</span>", theMessage)))

but no matter what I've tried ... I've been unable to display any message in the GridStatusBarItem.

So could you please provide a full complete detailed example demonstrating how to use the GridStatusBarItem for display of error handling messages??? Please do not just write

// Set label properties here

as done in the RadGrid documentation because something is NOT working somewhere. And RadGrid must be overwriting the message somewhere later in the event sequence with the template default message "Ready".

Thanks for your help.

Carl
Top achievements
Rank 1
 answered on 02 Oct 2008
8 answers
195 views
Hello,

I tried moving all of the JavaScript functions out to an external file and reference it like this:

<head id="Head1" runat="server"
... 
<script type="text/javascript" src="MyScriptFile.js"</script> 
</head> 

and none of the functions work. The script file is in my web project directory. When I examine with IE Developer Toolbar, I see error messages with my vars set to null when the functions are called:

for example:
tree is null

However, when I include the script inside my aspx page, everything works.
What am I doing wrong?

Best Regards,
Alex
Alex
Top achievements
Rank 1
 answered on 02 Oct 2008
3 answers
157 views
$0Hi, I am a quite confused about dynamically generating the raddocks and have been working on different approaches, reading your online demos without much success. And I'm not sure your demos are even accurate any more, for the newest version.$0$0$0$0$0I would have thought that setting the StoreLayoutInViewState property would keep the docks in their position after postback? For instance, I build the radDocks during Page Init, only on non-postback I set the docks into their initial Zones, otherwise (on postback) just to the Layout. (I assumed that the Layout would store-in-view-state the changes, and recreate them correctly)$0$0$0$0$0But it doesn't remember the state, if a command is clicked with postback, the states reset back to their original - but shouldn't the postback have sent the new state?$0$0$0$0$0Its obviously remembered something because it reverted back to the original zones, without me specifying them.$0$0$0$0$0Otherwise, what help is the StoreLayoutInViewState property?, which I assume will only work with non-dynamically generated docks? Is that correct?$0$0$0$0$0$0Most of your other controls have been really simple to implement, but this one is driving me crazy.$0$0$0$0$0Has a RadAjaxManager demo been created yet? Hope someone can help! $0$0$0$0$0Thanks!$0
Shaun
Top achievements
Rank 1
 answered on 02 Oct 2008
3 answers
206 views
I am running the sample LoadSaveLayout on this machine with VS 2008 and the SaveDockLayout event fires as expected, but the LoadDockLayout event never fires.  Is this a current issue that is being addressed?

I first saw the problem with a composite control that I am creating which wraps some of the telerik controls and thought I was doing something wrong, but then tested on an XP SP2 machine and all was fine.  So then I tried the LoadSaveLayout sample on my 64-bit Vista machine and still no luck in the firing of the LoadDockLayout event.

Does anyone have a work around for this?  I am assuming that since this event doesn't fire on 64-bit Vista that is most likely won't fire on a 64-bit 2008 server.  I haven't tested this just yet, but plan to do so soon and will try to put my findings on this post to aid in resolving this issue.

Thanks
John
Shaun
Top achievements
Rank 1
 answered on 01 Oct 2008
1 answer
247 views
Hi, I have an interesting problem using Forms authentication mode with the Telerik Window. I'm using ASPNET AJAX Q1 2008:

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 

I'm building a site that starts on Default.aspx. This page uses a MasterPage on which have the link that opens the window:
<id="lnkLogin" href="">Login</a> 

The Window that opens shows login_pop.aspx that performs the user authentication. The Terlerik Window controls on my Master page (which essentially is my Default.aspx page are:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Release"
</telerik:RadScriptManager> 
<telerik:radwindowmanager ID="RadWindowManager1" runat="server"
<windows> 
    <telerik:RadWindow ID="rwWindow" runat="server" Behavior="Default"  
        Height="400px" InitialBehavior="Close" Left="" ReloadOnShow="true" 
        NavigateUrl="login_pop.aspx" OpenerElementID="lnkLogin" 
        style="display:none;" Top="" Width="400px"
    </telerik:RadWindow> 
</windows> 
</telerik:radwindowmanager> 

In the process of building this site, I started without denying anybody. In other words, anyone could access the site and all the pages. And the Window worked exactly as I expected.

I then started adding my security. I want/need to use Forms authentication so in my Web.Config I specify what my default full accessible page is and deny all unauthorized users:
<authentication mode="Forms"
   <forms name=".ASPXAUTH" loginUrl="Default.aspx" protection="All" path="/" /> 
</authentication> 
<authorization> 
  <deny users="?"/> 
</authorization> 

Now here's where you have to pay attention. In testing my authentication, I wanted to ensure I was working from a clean slate so I went into IE and killed all my Temporary Internet Files. I restart my browser to run my App and it bombs! I get:

Microsoft JScript runtime error: 'Telerik' is undefined

And my debugger stops on:
$create(Telerik.Web.UI.RadWindow, {"clientStateFieldID":"ctl00_rwWindow_ClientState","formID":"aspnetForm","height":"400px","iconUrl":"","initialBehaviors":4,"left":"","minimizeIconUrl":"","name":"rwWindow","navigateUrl":"login_pop.aspx","openerElementID":"lnkLogin","reloadOnShow":true,"skin":"Default","top":"","width":"400px"}, null, null, $get("ctl00_rwWindow")); 

So I start Googling away to find out what the problem is, with no luck. Only through trial and error do I discover that if I change my Web.Config to:
<authorization> 
    <allow users="*"/> 
</authorization> 

then run the application - all is well again. And even if I set it back to:
<authorization> 
    <deny users="?"/> 
</authorization> 

It will continue to work fine as long as I don't delete my Temporary Internet files.

One last thing, I have also put in my Web.Config the following code which is supposed to allow any user access to the login_pop.aspx page so it can be called from Default.aspx:
<location path="login_pop.aspx"
   <system.web> 
    <authorization> 
       <allow users="*"/> 
    </authorization> 
   </system.web> 
</location> 

Is there a problem with the way I'm implementing the Telerik Window? Or do I just need to figure out how to open up the Temporary Internet Files folder to Anonymous users? Any suggestions/comments are welcome.

Thanks,
Craig






Craig
Top achievements
Rank 1
 answered on 01 Oct 2008
2 answers
116 views
This is probably a pretty simple answer (and more than likely posted a few times before) so sorry if I missed a previous post. A link would be great :).

I'm curious if there is a way to get the slidingpane in the foreground. heh.

Ex:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testpane.aspx.cs" Inherits="Test_testpane" %> 
 
<%@ 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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server">  
            <telerik:RadPane ID="RadPane1" runat="server">  
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server">  
                    <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server">  
                    </telerik:RadSlidingPane> 
                    <telerik:RadSlidingPane ID="RadSlidingPane2" runat="server">  
                    </telerik:RadSlidingPane> 
                </telerik:RadSlidingZone> 
            </telerik:RadPane> 
            <telerik:RadPane ID="RadPane2" runat="server">  
            </telerik:RadPane> 
        </telerik:RadSplitter> 
        <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" Top="50px" 
            Left="90px">  
        </telerik:RadWindow> 
    </div> 
    </form> 
</body> 
</html> 
 

-Sol
Soko
Top achievements
Rank 2
 answered on 01 Oct 2008
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?