Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
120 views
In a login screen I have two RadTextBox, for the Name and Password, with the same width defined (Width="200px"). As soon as I set TextMode to "password" the textbox width decreases... (without TextMode both textboxes have the same width)
Milena
Telerik team
 answered on 27 Mar 2012
1 answer
97 views
Hi guys,

I have multiple treeview controls created dynamically. On dragging n dropping each node, i have to open a pop up window. Iam using the following line of code to hook a javascript event handler to the OnClientNodeDropped event of the tree node from c# code behind.

tree.trvEvents.OnClientNodeDropped = "ClientNodeDropped();return false;";

But the above line givess me the following error in mozilla.

missing } after property list
..., {"nodeDropped":ClientNodeDropped();return false;},


Iam stuck with this issue for the past 2 days. Please help me with a solution.


Girish
Dimitar Terziev
Telerik team
 answered on 27 Mar 2012
5 answers
489 views
Even if AutoPostback is set to false on a RADTabstrip ASP.Net AJAX control, the post back is not prevented and the control does a postback. Stepping thru the code, the Tabstrip client side javascript code looks for a property named "postback" and because it does not find it, forces a postback.

The previous version of RADTabStrip control did not do this.

Any ideas?
Dimitar Terziev
Telerik team
 answered on 27 Mar 2012
5 answers
185 views
Hi,

I got a ridiculous problem trying to set a predefined width of a RadSlidingPane, containing a RadPanelBar. To do this, I set Width of the RadSlidingBar, the RadPanelBar and all its RadPaneItems. Under IE, FF or Opera it works fine. But under Chrome and Safari it (I mean: whether it works or not) depends on.... the length of the RadSlidingPane's Title. If it is short - all is OK. But when it is longer - the RadPanelBar becomes narrow and gets horizontal scrollbars. When the title is "Pane" - it is OK. when the title is just "RadSlidingPane", it starts with scrollbars but after undocking / docking sequence the scrollbars disappear. When it is "RadSlidingPane ext." - it behaves as described (but after docking / undocking the RadPanelBar is wider but not wide enough).

The simplest markup is as follows:
  <telerik:RadSplitter ID="splitterMain" runat="server" Width="100%">  
    <telerik:RadPane ID="paneLeft" runat="server" Width="22px">  
      <telerik:RadSlidingZone ID="slzoneLeft" runat="server" Width="22px" DockedPaneId="slpaneLeft">  
        <telerik:RadSlidingPane ID="slpaneLeft" runat="server" Title="RadSlidingPane ext." Width="155px">  
          <telerik:RadPanelBar runat="server" ID="pbarLeftNavigator" Width="152px">  
            <Items> 
              <telerik:RadPanelItem Text="Group 1" Width="150px">  
                <Items> 
                  <telerik:RadPanelItem Text="Action 1" Width="150px" /> 
                  <telerik:RadPanelItem Text="Action 2" Width="150px" /> 
                </Items> 
              </telerik:RadPanelItem> 
            </Items> 
          </telerik:RadPanelBar> 
        </telerik:RadSlidingPane> 
      </telerik:RadSlidingZone> 
    </telerik:RadPane> 
    <telerik:RadPane ID="paneContent" runat="server" BorderStyle="Solid" BorderWidth="1">  
      The content  
    </telerik:RadPane> 
  </telerik:RadSplitter> 
 

Is it my fault, your fault - or the browser's fault?

Regards
Tomasz
Dobromir
Telerik team
 answered on 27 Mar 2012
4 answers
134 views
Hi,

I have telerik rad datepicker and rad textbox  in my page, I have set width to this controls, and when using telerik version 2009, it works fine, I have changed telerik version to Q1 2012 and now when rendering page in IE (8.0) it shows width less than the width specified, but when focusing on this controls, the width change to the specified width. In other browsers it rendering correctly,
How can i solve this issue.

thanks in advance
Jiju
Richard
Top achievements
Rank 1
 answered on 27 Mar 2012
8 answers
432 views
I want to validate a RadDateTimePicker so a value like '4/213/2010 3:45 PM' will make the page invalid. If I manually type this value, I get a little triangle with an exclamation mark inside the textbox and the border turns red. However, when I respond to a button click in javascript and I call
            Page_ClientValidate();
            if (Page_IsValid) {
             //do stuff
           }
the Page_IsValid evaluates to true.
I see no examples in the documentation on RadDateTimePicker and how it works with the ASP .NET validators.

This is how I define my RadDateTimePicker:
                        <telerik:RadDateTimePicker ID="StartDateTextBox" runat="server" Skin="WebBlue" MaxDate=""
                            Culture="English (United States)" FocusedDate="">
                            <TimePopupButton CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton>
                            <TimeView Skin="WebBlue" Interval="00:30:00">
                            </TimeView>
                            <DateInput InvalidStyleDuration="100" runat="server" LabelCssClass="radLabelCss_WebBlue"
                                Skin="WebBlue" >
                            </DateInput>
                            <Calendar Skin="WebBlue" ShowRowHeaders="False">
                            </Calendar>
                            <DatePopupButton CssClass="" ImageUrl="" HoverImageUrl="" />
                            <ClientEvents OnDateSelected="dateChanged" />
                        </telerik:RadDateTimePicker>

Mark Kucera
Top achievements
Rank 1
 answered on 27 Mar 2012
5 answers
84 views
Hi,

 I don't want to load the second tab when there is error in the first tab.

Below is my sample code


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SIPlugInRCRAAIPermitContent.ascx.cs"
    Inherits="CGI.ESG.TEMPO.Web.ContentControls.SubjectItemDetails.SIPlugInRCRAAIPermitContent" %>
<%@ Register Src="~/ContentControls/SubjectItemDetails/RCRAAIPermitBaseOpContent.ascx"
    TagPrefix="OperationDatesandWasteStreams" TagName="RCRAAIPermitBaseOpContentControl" %>
<%@ Register Src="~/ContentControls/SubjectItemDetails/RCRAAIPermitBasePerContent.ascx"
    TagPrefix="ExistingPermitsandComments" TagName="RCRAAIPermitBasePerContentControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadTabStrip ID="rtsRCRAAIPermit" runat="server" Align="Left" MultiPageID="RadMultiPagertsRCRAAIPermit"
    SelectedIndex="0" AutoPostBack="true" OnTabClick="rtsRCRAAIPermit_TabClick">
    <Tabs>
        <telerik:RadTab Text="Operation Dates and Waste Streams" runat="server">
        </telerik:RadTab>
        <telerik:RadTab Text="Existing Permits and Comments" runat="server">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPagertsRCRAAIPermit" runat="server" SelectedIndex="0">
    <telerik:RadPageView ID="OperationDatesandWasteStreamsPage" runat="server">
        <OperationDatesandWasteStreams:RCRAAIPermitBaseOpContentControl ID="RCRAAIPermitBaseOpContentControl"
            runat="server" />
    </telerik:RadPageView>
    <telerik:RadPageView ID="ExistingPermitsandCommentsPage" runat="server">
        <ExistingPermitsandComments:RCRAAIPermitBasePerContentControl ID="RCRAAIPermitBasePerContentControl"
            runat="server" />
    </telerik:RadPageView>
</telerik:RadMultiPage> 

Code Behind Code :

protected void rtsRCRAAIPermit_TabClick(object sender, RadTabStripEventArgs e)
        {            
            switch (PrevTabText)
            {
                case "Operation Dates and Waste Streams":                    
                    this.Page.SavePage();                   
                    break;

                case "Existing Permits and Comments":                   
                    this.Page.SavePage();                 
                    break;

                default:
                    break;
            }            
        }

When  this.Page.SavePage();  even is successful. I want to load the second tab otherwise i don't want to load the second tab.

Can any please help me how to solve this.           

Thanks
Gopinath  
















Dimitar Terziev
Telerik team
 answered on 27 Mar 2012
8 answers
230 views
I have installed Q3 2011 Ajax controls, and am using the RadUpload in my website.  The control itself works great, but I cannot seem to preview the images.  I have tried doing it serverside, which is ok, but the radupload loses it's selected file on the postback, so I cannot then do an Upload on the image.  I then tried doing it with a client click of a preview button, but I cannot find where the filename is stored in the control.  I am accessing it with jquery by using the following:  $telerik.$('.ruImageUploader').  

I guess what my question is, how do I access the Files in the Upload control from jquery. 
Danny
Top achievements
Rank 2
 answered on 27 Mar 2012
8 answers
272 views
Hi there.

I have got a display problem with RadDatePicker in IE9. I am using the Q1 2012 release. The declarative part is:

<asp:Panel runat="server" ID="PanelTime" Visible="false" CssClass="panels">
 
<table>
<tr>
    <td valign="top">Erstelldatum</td>
    <td>
        <div class="timeControl"><table><tr>
            <td>
                Zeitraum<br />
                <telerik:RadComboBox ID="ComboBoxCreateTimeIntervall" runat="server" Skin="Office2007" Width="150"
                    OnSelectedIndexChanged="ComboBoxCreateTimeIntervall_SelectedIndexChanged" AutoPostBack="true" />
            </td>
            <td>
                Beginn<br />
                <telerik:raddatepicker ID="DatePickerCreateTimeBegin" Runat="server" Skin="Office2007" Width="120"
                    Calendar-FastNavigationStep="12" Calendar-DayNameFormat="FirstTwoLetters" Calendar-CultureInfo="de-DE"
                    DateInput-MaxLength="10" DateInput-DateFormat="dd.MM.yyyy" >
                    <DatePopupButton ImageUrl="~/images/btn_off_Cal.gif" HoverImageUrl="~/images/btn_on_Cal.gif"/>
                </telerik:raddatepicker>
            </td>
            <td>
                Ende<br />
                <telerik:raddatepicker ID="DatePickerCreateTimeEnd" Runat="server" Skin="Office2007" Width="120"
                    Calendar-FastNavigationStep="12">
                    <DatePopupButton ImageUrl="~/images/btn_off_Cal.gif" HoverImageUrl="~/images/btn_on_Cal.gif"/>
                </telerik:raddatepicker>
            </td>
        </tr></table></div>
    </td>
</tr>
When setting the SelectedDate and Enabled=false the Page reload and displays the date in default format as well as the defined DisplayDateFormat atop overlaying (cf. attachment 1).
This only occurs when the page is displaid inside an IFrame in IE9 default mode (in compatibility mode it's OK but the widht is ignored).
Another issue is that the defined width is ignored once the page is reloaded in IE 8. (cf. attachment 2).

As stated above the pages are loaded inside an IFrame. The IFrame resides on an embedded page of Microsoft Dynamics CRM 4.0 - maybe that's another point you need to know.

Can you give advice who we could get the display corrected in our environment?

Kind regards,
Markus


Jun
Top achievements
Rank 1
 answered on 27 Mar 2012
1 answer
126 views
I have a RadGrid which takes as its datasource a programmatically generated DataTable, using LINQ to SQL. When I "Decline" a "Request", the record should be deleted, however, it doesn't disappear from the grid. To clarify, the record is deleted in the database, just not in the grid itself. Here's part of the code in the ItemCommand event:

if (e.CommandName == "Decline") {
    WellnessTeamRequest wtr = WellnessTeamRequest.FindByUserId(e.CommandArgument.ToString());
    wtr.Delete();
    requestsRadGrid.MasterTableView.ClearEditItems();
    requestsRadGrid.DataSource = GetRequestsDS();
    requestsRadGrid.DataBind();
     
 
}

Here's the helper method for the DataSource:

protected DataTable GetRequestsDS() {           
            DataTable dt = createEmptyDataSet(new string[] {"UserID", "Name", "Requested Team"});
            List<WellnessTeamRequest> requests = WellnessTeamRequest.GetAllRequests();
            foreach (WellnessTeamRequest request in requests) {
                DataRow newRow = dt.NewRow();
                newRow["UserID"] = request.UserId;
                newRow["Name"] = request.WellnessUser.User.FullName();
                newRow["Requested Team"] = request.WellnessTeam.TeamName;
                dt.Rows.Add(newRow);
            }
            return dt;
        }




I've tried it using both Rebind() and DataBind(). I can't just refresh the page, as the page actually has three grids on it, the one that is shown is decided using a dropdown and if I refresh the page the previously selected grid disappears. 
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?