Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
306 views

I've tested under IE6, 7, 8, without issues.
However under current Windows releases of Chrome and Safari, the radWindow title appears for a moment when the window is created and then immediately disappears after the passed form is loaded.

The simplest example:

var wnd = radopen("MyDialog.aspx?", null);  
wnd.set_title("My RadWindow Caption");  
 
I've also tested with RadWindow using:
var oWnd = $find("<%= RadWindow1.ClientID %>");  
oWnd.set_title("My Dialog Title"); 

with same results.
However, if I pass a URL (http://www.telerik.com) vs a relative webform, the caption is not cleared.
Karen
Top achievements
Rank 1
 answered on 09 Oct 2009
3 answers
106 views
I have an issue with the Upload progress monitor. It works fine when I leave out my tracking information from the global.asax file.

If I put the following in my global.asax, I get the error asking if I registered the RadUploadProgressHandler in the web.config.

Why????   If I comment out everything from my PreRequestHandler, the progress monitor works fine...

In my global asax...

Protected Sub Application_PreRequestHandlerExecute()
 If HttpContext.Current.User.Identity.IsAuthenticated Then
    Dim MyConnection As SqlConnection
   
       MyConnection = New SqlConnection("server=kkkkkkk;" _
       & "database=kkkkkk;User ID=kkkk;Password=kkkkkkkkkkkk;")
     
       Dim myCommand As SqlCommand
       Dim insertCmd As String
     
       insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
   
       myCommand = New SqlCommand(insertCmd, MyConnection)
       myCommand.Connection.Open()
       myCommand.ExecuteNonQuery()
       myCommand.Connection.Close()
 End If
End Sub
Rumen
Telerik team
 answered on 09 Oct 2009
2 answers
69 views
At first, I created (as VS defines) an ASP.NET web application.  I added the controls to my pages and defined custom CSS for the controls.

Now, however, as the applcation has grown, I created (again as VS defines) an ASP.NET web site.  I, then, created an additional project for my classes.  I compile the classes, of course, and place the dll in the bin folder.  My pages use the compiled classes as the code-behind.  However, now, the Telerik controls don't use the CSS.

I've tried two different ways: 1)Placed the css files in the actual web site itself and referenced them through literal paths within the page headers. 2) I've also tried using them as Embedded resources and referenced them in the page headers as a WebResource.  Neither works.

What do I have to do to get the controls to find/use the CSS.  If I type the CSS path or WebResource URL in my browser, then the CSS shows fine.

Thanks,
Joshua
Iana Tsolova
Telerik team
 answered on 09 Oct 2009
1 answer
589 views
Hi, I try to use the RadMaskedTextbox, but I run into several issues. Because I use several RadMaskedTextboxes in one user control and this user control is rendered 4 times on my page, I have quit a view of these TextBoxes. But for starters, I try to add a onClientside Blur event. This I do in the codebehind (page_Load event):

 tbxWachttijdEind.ClientEvents.OnBlur = "CalcWachtBlokken('" + tbxWachttijdStart.ClientID + "','" + tbxWerkTijdEind.ClientID + "')"

Oh, BTW, I use these textboxes to have the user only input a valid time between 0 and 23 and 15,30 or45 minutes. This is working perfectly.
So what I try to do is calculate the time difference between two times. The problem is the onblur event does not fire when I leave the textbox, but i fires on page_load. 

An other thing is, I cannot get the values of the controls in my js-code. I tried the get_value() method, but I just get an js-errormessage.

Any suggestions?

Never mind about the get_value issue. I used the $get(objectId) function, where I should use the $find(objectId) function. But the main problem still exists. OnBlur firing when the page load instead of when leaving the textbox.
Tsvetoslav
Telerik team
 answered on 09 Oct 2009
2 answers
101 views
Hello,
I have several tabs. On each tab I placed my control. When I change date on first tab I would like to refresh grid on second tab. Is is possible?
Code looks like:
    <telerik:RadTabStrip ID="CtrlTabStripAccount" CausesValidation="false"  OnClientTabSelecting="onTabSelecting"
        runat="server" MultiPageID="CtrlPageMultiAccount" ShowBaseLine="true"  Skin="Vista"
        AutoPostBack="true">
        <Tabs>
            <telerik:RadTab runat="server" Text="KanaÅ‚y dostÄ™py" Selected="true" ImageUrl="~/App_Themes/EcodTheme/Icons/inbox.gif" />
            <telerik:RadTab runat="server" Text="Zmiana hasÅ‚a" ImageUrl="~/App_Themes/EcodTheme/Icons/outbox.gif" />
            <telerik:RadTab runat="server" Text="ZarzÄ…dzanie adresami" ImageUrl="~/App_Themes/EcodTheme/Icons/relations.gif" />
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="CtrlPageMultiAccount" runat="server" SelectedIndex="0"
        RenderSelectedPageOnly="true">
        <!-- my control 1 -->
        <telerik:RadPageView ID="CtrlAccessChannels" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Channels ID="CtrlChannels" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 2-->
        <telerik:RadPageView ID="CtrlPassword" runat="server" Selected="true">
            <div class="BoxOutermost">
                <ecod:Password ID="ChPassword" runat="server" />
            </div>
        </telerik:RadPageView>
        <!-- my control 3-->
        <telerik:RadPageView ID="CtrlAddresses" runat="server" Selected="true">
            <div class="BoxOutermostBig">
                <ecod:Addresses ID="Addresses" runat="server" />
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Paul
Telerik team
 answered on 09 Oct 2009
1 answer
166 views
Hi everybody,

I trying to find a way to bind my rad menu with a siteMapPath but I can't find a way to do it.

On my master page I hate a menu item

<

 

telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista">

that i dinamically populated non my code behind page in the following way

 

RadMenu1.DataTextField =

"Name";

 

RadMenu1.DataFieldID =

"Id";

 

RadMenu1.DataFieldParentID =

"ParentId";

 

RadMenu1.DataNavigateUrlField =

"NavigateURL";

 

RadMenu1.DataSource = GetMenu(Context.User.Identity.Name.ToString());

RadMenu1.DataBind();

Is there a way tu use the asp:SiteMapPath? Or is there a better way?

Thanx a lot for the Help

Raphael

PS: I still use the telerik 2008 Q1

 

Princy
Top achievements
Rank 2
 answered on 09 Oct 2009
4 answers
126 views
I'm have the RadWindowManager and a RadWindow object in my aspx page and I set the NaviagteUrl, OpenerElementId and OffsetElementId proeprties in the code-behind of my page for the RadWindow. Now on the first page load every this works correctly. Now if a postback occurs on the page, the RadWindow loses all those properties I set.

I've overcome this problem by setting those properties on every postback, but it becomes difficult to do on certain forms I use, since its not possible for me to do that.

So I just wanted to know if this is this a bug or something?

Thanks.
Georgi Tunev
Telerik team
 answered on 09 Oct 2009
3 answers
86 views
I am using the Rad MOSS Editor for my custom pages in a sharepoint application. The pages contain many textboxes apart from the Editor. I need to have a single spell checker on the page for all these textboxes and the Moss Editor. Is that possible? I tried using the RadSpell Control on the page but it did not work well for the Editor. Am i missing something here. Can i achieve this functionality? Please guide.


Thanks in Advance
Stanimir
Telerik team
 answered on 09 Oct 2009
1 answer
92 views
Hi Support Team,

I am using RadControls for ASP.Net AJAX (v. 2009.2.826.35).  I have a RadSplitter control that is nested inside of a RadMultiPage control used by a RadTabStrip.  The splitter controls has two panes - a left pane, that has a fixed width in pixels, and a right pane that I want to fill all of the remaining area.  I have tried to set the height and width of the right pane in two ways: 1) by setting both the height and width to 100%, and 2) using the "Free Size" method, where the height and width are not specified in the RadPane and the splitter calculates the pane size based on what space is remaining after allocating space to absolutely-sized or percent-sized panes.

Either method works fine in Firefox (v3.0.14) and Chrome (v3.0.195.25).  However, in both IE6 and IE8, I get a javascript error, and the content in the right pane only occupies a small fraction of the total available space.  If I specify the height and width in pixels in IE, instead of percent, it works fine.

The markup for the page, specifying the width and height by percent is listed below:

<body style="height:100%;margin:0px;width:100%;" > 
    <form id="Form1" runat="server" style="height:100%;margin:0px" > 
        <asp:ScriptManager ID="ScriptManager1" runat="server"/> 
         
        <div style="height:100%;margin:0px;width:100%;" > 
         
            <telerik:RadTabStrip ID="radTapStripMain" MultiPageID="radMultiPageMain" AutoPostBack="false" Width="100%" runat="server"
                <Tabs> 
                    <telerik:RadTab Value="tabAdmin" Text="Admin" PageViewID="pvAdmin" Visible="true" runat="server" /> 
                </Tabs> 
            </telerik:RadTabStrip> 
 
            <telerik:RadMultiPage id="radMultiPageMain" runat="server" Height="100%" Width="100%"
               <telerik:RadPageView  id="pvAdmin" runat="server" Visible="true" Height="100%" Width="100%"
                    <telerik:radsplitter id="splitterLinksIndex" orientation="Vertical" Width="100%" Height="100%" HeightOffset="30" runat="server" > 
                      <telerik:radpane id="LeftPane" Width="200" MinWidth="100" MaxWidth="500" runat="server"
                           <href="http://www.telerik.com" target="<%= RightPane.ClientID %>">link</a> 
                      </telerik:radpane> 
                      <telerik:radsplitbar id="RadSplitBar1" collapsemode="Forward" runat="server"/> 
                      <telerik:radpane Scrolling="Y" id="RightPane" Width="100%" Height="100%" ContentUrl="http://www.microsoft.com" runat="server"></telerik:radpane> 
                    </telerik:radsplitter>      
                 </telerik:RadPageView >   
            </telerik:RadMultiPage> 
             
        </div> 
    </form> 
</body> 

If I look at the IFRAME that is generated by the page, it has a specified height and width in Firefox but not in IE:

 
Firefox 
<iframe id="RAD_SPLITTER_PANE_EXT_CONTENT_RightPane" frameborder="0" scrolling="auto" name="RightPane" src="http://www.microsoft.com" style="border: 0px none ; height: 825px; width: 1055px;"
 
IE6 
<IFRAME id=RAD_SPLITTER_PANE_EXT_CONTENT_RightPane style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" name=RightPane src="http://www.microsoft.com" frameBorder=0></IFRAME> 

The javascript error that gets thrown in IE occurs in the line marked with asteriks in the following javascript function:
function(g,f) 
 { 
    if(f<=0||f==""){ 
        g.style.width="" 
    }    
    else 
    { 
**      g.style.width=f+"px"
        var h=g.offsetWidth-f; 
        var e=f-h; 
        if(e>0) 
        { 
            g.style.width=e+"px" 
        } 
        else 
        { 
            g.style.width="" 
        } 
    } 
  } 

The error states that the variable "f" is NaN.  I get the same error if I specify the height and width by percent or by the "free size" method.

As an aside, if I remove the splitter from the RadMultiPage and RadTabStrip and put it by itself on the page, the IE javascript error disappears and I can set the width and height by percent with no problems.

Thank you for your assistance.  Please let me know if you need any further information.

Paul
Telerik team
 answered on 09 Oct 2009
1 answer
454 views
Hi,
I have below requirement
on page load I have set the Maxdate of the datepicker to today.. and I have some special days which are added when page load itself.
that was fine..
when i click on one button i need to do some changes to date picker at client side..
The main inportant thing is the Selected date must be today + 10 days ..which i am unable to with below code
        var datpick1 = <%= datpick1.ClientID %>;  
        var datpick2 = <%= datpick2.ClientID %>;  
        var calendar2 = <%= datpick2.ClientID %>.GetCalendar();  
        calendar2.SpecialDays.Clear();  
        calendar2.SetMaxDate(datpick1.GetMaxDate());//datpick1.GetMaxDate() is 10 days greater than datpick2 max date  
        var da = new Date(datpick1.GetMaxDate());  
        da.setDate(da.getDate());  
        calendar2.SetDate(da); 

1. Clear the special Days (working fine)
2.Set the MaxDate() which also seems to be working fine
3.Set the date using SetDate() which seems to be not working (with the max date greater than the max date defined on page load)
if i give SetDate as less than or equal to the Pageload the Maxdate it is working fine.

Please help me to set the date at client side ..
Please let me know if i am missing any thingelse

Thanks
-Krishna
Veli
Telerik team
 answered on 09 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?