Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
123 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
288 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
315 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
160 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
1 answer
100 views
Hi,
We are facing UI issue with Rad Grid Google search ie. filters is giving issue In Google chrome.

Scenario is: When Width of Content in a column exceed drop down width it is giving scrollbar and it is hiding the content.

To reproduce this issue use Google chrome with one row in grid.

Please find the attached image for the same,

Please let us provide solution ASAP.

thanks in advance.
Pavlina
Telerik team
 answered on 27 Mar 2012
1 answer
207 views
Hi,
I am using the list box with check boxes inside it. I am encountring a control issue where the checkboxes are getting automatically unchecked after the post back.
Scenerio : Problem occur when there is scrollig , if we scroll to the end ,after clicking the down arrow button of the scroll and now if the page is PostBack the check boxes gets unchecked..If its not generated for first time then repeat the same procedure for second time this time the checkbox gets unchecked.

Can Anybody help me out with this...
Princy
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
208 views
Hi

mastertableview item count is showing zero at needdatasource event. I wanted to get the checked checkbox count at this step. But the item count is zero which prevents looping.

thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
168 views
I have a masterpage in which I am loading a page.Masterpage contains RadScriptManager.
In the page,I have a listbox and and radtabstrip, whcih again has grid on 1 page and a label on another page.
When I click on listbox, I want to apply loadingpanel on radtabstrip.

<
asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel runat="server" ID="pnlMain" ScrollBars="Horizontal">
                <telerik:radlistbox id="lstTables" runat="server" selectionmode="Single" onselectedindexchanged="lstTables_OnSelectedIndexChanged"
                    autopostback="true">
                            </telerik:radlistbox>
                <asp:Panel ID="Panel1" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                    >
                    <telerik:radajaxpanel id="RadAjaxPanel1" runat="server" loadingpanelid="RadAjaxLoadingPanel1">
                            <Telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="MultiplePages"
                                AutoPostBack="true" SelectedIndex="0">
                                <Tabs>
                                    <Telerik:RadTab PageViewID="pgEmployee" Text="Employee">
                                    </Telerik:RadTab>
                                    <Telerik:RadTab PageViewID="pgHomeAddress" Text="HomeAddress">
                                    </Telerik:RadTab>
                                     
                                </Tabs>
                            </Telerik:RadTabStrip>
  
                            <Telerik:RadMultiPage ID="MultiplePages" runat="server" AutoPostBack="true" RenderSelectedPageOnly="false" SelectedIndex="0">
                              <Telerik:RadPageView ID="pgEmployee" runat="server">
                                    <Telerik:RadGrid runat="server" ID="grdEmployee" EnableAJAX="True" EnableNoRecordsTemplate="True"
                                        GroupingEnabled="false" GridLines="Both" AllowSorting="True" ShowStatusBar="true">
                                        <ClientSettings Scrolling-AllowScroll="true">
                                        </ClientSettings>
                                        <ItemStyle Wrap="false" />
                                    </Telerik:RadGrid>
                                </Telerik:RadPageView>
                                 <Telerik:RadPageView ID="pgHomeAddress" runat="server">
                                    <asp:Label ID="lblAddress" runat="server" Font-Size="Medium"></asp:Label>
                                </Telerik:RadPageView>
                                
                            </Telerik:RadMultiPage>
                            </telerik:radajaxpanel>
                </asp:Panel>
            </asp:Panel>
            <telerik:radajaxloadingpanel id="RadAjaxLoadingPanel1" runat="server" initialdelaytime="0"></telerik:radajaxloadingpanel>
            <telerik:radajaxmanagerproxy id="AjaxManagerProxy2" runat="server">
          
         <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="grdEmployee">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdEmployee" />
            </UpdatedControls>
        </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="lstTables">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="MultiplePages" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
  
          
          
    </AjaxSettings>
  
    </telerik:radajaxmanagerproxy>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

So the problems are
1> For the first time when I click on list item, it doesnt show loading panel.
2>When I click on second tab in strip it shows the loading panel, which doesnt disappear.
3>Still if I change the tab, page hangs, showing 3 loading panels.

I referred following links

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/firstlook/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx



Any idea why it is happening?
Eyup
Telerik team
 answered on 27 Mar 2012
9 answers
508 views
I have been perusing the forum for nearly 2 days but have not found a solution. I have a Telerik Grid placed within a user control. After a Postback, the client side events do not fire, neither a row click javascript or my own custom "alert('Hi')" javascript. But when i place the same code within a .aspx page, it works perfectly. Could the support team please throw some light on this. My entire application runs on user controls so I cannot avoid using it!!!
Maria Ilieva
Telerik team
 answered on 27 Mar 2012
3 answers
102 views
I am using a Usercontrol to edit records in an Ajaxified RadGrid. I have used javascript code to force fullpostback when the RadUpload is used. However, on the server side, the control is always empty. Is this scenario possible and supported?

Jean
Andrey
Telerik team
 answered on 27 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?