Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
48 views
I cannot seem to find an simple explanation as to how to reference a GridDropDownColumn and set its datasource in the ItemDataBound event.  I cannot figure out how to not get 'null' back for this:

GridDataItem dataItem = (GridDataItem)e.Item;
DropDownList ddl = (DropDownList)dataItem.FindControl("Status"); 
OR
DropDownList ddl = (DropDownList)dataItem["Status"].Controls[0]
ddl.DataSource = _WhatEver; <=== ddl is null

J
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2011
1 answer
72 views
Dear Team

         I want reporting telerik dll for downloding.

Please help me.

Thanks.
Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
2 answers
74 views
Hi,

I want to create a Scheduler with a color and location picker. The location list comes from my DB with an inline sql call to the DB. Also the RadScheduler has some inline sql calls to CRUD the calendar appointments. So I followed the example found at: http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

I added my own datasource to the Room dropdown by altering the contents of ResourceControl.ascx to:

<asp:Label runat="server" ID="ResourceLabel" AssociatedControlID="ResourceValue" Text='<%# Label %>' CssClass="rsAdvResourceLabel" /><!--
--><telerik:RadComboBox runat="server" ID="ResourceValue" DataValueField="LCode" DataTextField="Location_Detail"
    CssClass="rsAdvResourceValue" Skin='<%# Skin %>'
    DataSourceID="SqlDataSource1" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:computershareConnectionString %>"
    SelectCommand="SELECT * FROM [LocationsTable]">
</asp:SqlDataSource>

My RadScheduler control in the Default.aspx looks like this:
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" Height="680px"
                TimeZoneOffset="03:00:00"
                OnDataBound="RadScheduler1_DataBound"
                OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                OnClientFormCreated="schedulerFormCreated"
                CustomAttributeNames="AppointmentColor"
                EnableDescriptionField="True"
                AppointmentStyleMode="Default" DataDescriptionField="Description"
                DataEndField="EndTime" DataKeyField="ID" DataSourceID="SqlDataSource1"
                DataStartField="StartTime" DataSubjectField="Subject">
                <AdvancedForm Modal="true" />
                <AppointmentTemplate>
                    <div class="rsAptSubject">
                        <%# Eval("Subject") %>
                    </div>
                    <%# Eval("Description") %>
                </AppointmentTemplate>
                <AdvancedEditTemplate>
                    <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                        Subject='<%# Bind("Subject") %>'
                        Start='<%# Bind("StartTime") %>'
                        End='<%# Bind("End") %>'
                        Description='<%# Bind("Description") %>'
                        AppointmentColor='<%# Bind("AppointmentColor") %>'
                        RoomID='<%# Bind("Location_Code") %>' />
                </AdvancedEditTemplate>
                <AdvancedInsertTemplate>
                    <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
                        Subject='<%# Bind("Subject") %>'
                        Start='<%# Bind("StartTime") %>'
                        End='<%# Bind("End") %>'
                        Description='<%# Bind("Description") %>'
                        AppointmentColor='<%# Bind("AppointmentColor") %>'
                        RoomID='<%# Bind("Location_Code") %>' />
                </AdvancedInsertTemplate>
                <TimelineView UserSelectable="false" />
                <TimeSlotContextMenuSettings EnableDefault="true" />
                <AppointmentContextMenuSettings EnableDefault="true" />                    
            </telerik:RadScheduler>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                ConnectionString="<%$ ConnectionStrings:computershareConnectionString %>"
                SelectCommand="SELECT * FROM [MyTable]"
                DeleteCommand="DELETE FROM [MyTable] WHERE [ID] = @ID"
                InsertCommand="INSERT INTO [MyTable] ([StartTime], [EndTime], [Subject], [Description], [Location_Code], [AppointmentColor]) VALUES (@StartTime, @EndTime, @Subject, @Description, @Location_Code, @AppointmentColor)"
                UpdateCommand="UPDATE [MyTable] SET [StartTime] = @StartTime, [EndTime] = @EndTime, [Subject] = @Subject, [Description] = @Description, [Location_Code] = @Location_Code, [AppointmentColor] = @AppointmentColor WHERE [ID] = @ID">
                <DeleteParameters>
                    <asp:Parameter Name="ID" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="StartTime" Type="String" />
                    <asp:Parameter Name="EndTime" Type="String" />
                    <asp:Parameter Name="Subject" Type="String" />
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="Location_Code" Type="String" />
                    <asp:Parameter Name="AppointmentColor" Type="String" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="StartTime" Type="String" />
                    <asp:Parameter Name="EndTime" Type="String" />
                    <asp:Parameter Name="Subject" Type="String" />
                    <asp:Parameter Name="Description" Type="String" />
                    <asp:Parameter Name="Location_Code" Type="String" />
                    <asp:Parameter Name="AppointmentColor" Type="String" />
                    <asp:Parameter Name="ID" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>

If I remove the RoomID from AdvancedEditTemplate and AdvancedInsertTemplate the whole process works just fine but I'm missing the location. What is the problem? What am I doing wrong?

I also have to mention that LCode from [LocationTable] is the same as Location_Code from [MyTable].

Thanks.
Adrian
Top achievements
Rank 1
 answered on 04 Dec 2011
1 answer
62 views
Hello,
I want that this color will be the same as color of chart background (that is "the outermost rectangle that encloses all other elements of the chart").  I made it as

(Telerik.Charting.Styles.

StyleTextBlockTitle)radChart.ChartTitle.TextBlock.Appearance).FillStyle.MainColor =

 

radChart.Appearance.FillStyle.MainColor;

May be there is more simple way but I didn't find it.  Yet I see that around the title there is some white rectangle. It seems that it is the border of TextBlock but I didn't find this property. Any help?
 
Evgenia
Telerik team
 answered on 04 Dec 2011
2 answers
7.2K+ views
Prior to radgrid i used to be able to loop through all the rows in my grid using "RowDataBound" and get the cell value using "e.Row.Cells(4).Text" but that option is not available with radrid.  what i need to do is loop through each row of the radgrid and retrieve the cell values in the rows and do validation.  i have grouping, filtering, paging and scroll bars enabled.  any ideas.  i am new to radgrid.

thanks.
Shawn
Top achievements
Rank 1
 answered on 04 Dec 2011
4 answers
162 views
 protected void RadGrid1_ItemDataBound(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        { 
            /*if(e.Item is GridDataItem)
            {
                GridDataItem dataBoundItem = e.Item as GridDataItem;
                DataRowView dataRowView = e.Item.DataItem as DataRowView;
                HtmlAnchor editLink = dataBoundItem["Title"].FindControl("editLink") as HtmlAnchor;
                editLink.Disabled = false;
            }*/ 
        } 
<
telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="8" OnItemUpdated="RadGrid1_ItemUpdated" 
                                    ShowStatusBar="true" AllowSorting="true" OnUpdateCommand="RadGrid1_UpdateCommand" 
                                    OnDeleteCommand="RadGrid1_DeleteCommand" OnEditCommand="RadGrid1_EditCommand" 
                                    OnInsertCommand="RadGrid1_InsertCommand" EnableViewState="true" OnPageIndexChanged="RadGrid1_PageIndexChanged" 
                                    OnPageSizeChanged="RadGrid1_PageSizeChanged" OnSortCommand="RadGrid1_SortCommand" 
                                    OnCancelCommand="RadGrid1_CancelCommand" OnItemDataBound="RadGrid1_ItemDataBound"
Hi,
I have implemented 'telerik:RadGrid' on SharePoint ASPX page. When i attach 'OnItemDataBound' event on RadGrid, SharePoint ASPX page throws COMException:

Server Error in '/' Application.

Cannot complete this action.

Please try again.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Cannot complete this action.

Please try again.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80004005): Cannot complete this action.

Please try again.]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +0
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +625

[SPException: Cannot complete this action.

Please try again.]
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocId, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +748
Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId) +2578
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) +2081
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetFileForRequest(HttpContext context, SPWeb web, Boolean exclusion, String virtualPath) +727
Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.InitContextWeb(HttpContext context, SPWeb web) +164
Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context) +665
Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context) +41
Microsoft.SharePoint.WebControls.SPControl.GetContextSite(HttpContext context) +49
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetSiteForRequestFile() +51
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) +1824
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData) +475
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) +1559
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String virtualPath, Boolean fetchContent) +148
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String virtualPath) +43
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String virtualPath) +290
System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String virtualPath) +31
System.Web.FormatterWithFileInfo.GetSourceFileLines(String fileName, Encoding encoding, String sourceCode, Int32 lineNumber) +205
System.Web.DynamicCompileErrorFormatter.get_MiscSectionContent() +766
System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean dontShowSensitiveInfo) +998
System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean dontShowSensitiveErrors) +11056428
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +461


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.492




While if remove the "OnItemDataBound" event then RadGrid just works fine.

Pratik
Top achievements
Rank 1
 answered on 04 Dec 2011
1 answer
135 views
Hi
i am using the latest version of radeditor , but in web.config file i have the following error ,
"
Assembly 'Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
would you please help me.

Thanks

My web.config file is
---------------------------------
<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="Miron.web">
      <section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection" />
    </sectionGroup>
  </configSections>
  <appSettings>
    <add key="DBNAME" value="Data Source=pserver;Initial Catalog=Olom_Pezeshki;User ID=sa;Password=Qwe123" />
    <!--<add key="DBNAME" value="Data Source=server;Initial Catalog=tbzmed;User ID=sa;Password=Qwe1234"/>-->
    <add key="ExternalDBNAME" value="Data Source=192.168.1.1;Initial Catalog=Externalelib;User ID=sa;Password=1234" />
    <add key="SiteUrl" value="http://itshams.ir" />
    <add key="email" value="info@itshams.ir" />
    <add key="Hejri" value="-1" />
    <add key="SSlEmail" value="false" />
  </appSettings>
  <system.net>
    <mailSettings>
      <smtp>
        <network host="mail.itshams.ir" port="25" userName="site@itshams.ir" password="t@123_it" />
      </smtp>
    </mailSettings>
  </system.net>
  <system.web>
    <httpRuntime maxRequestLength="10240" executionTimeout="300" />
    <customErrors mode="On" defaultRedirect="Error.aspx?ErrorType=customErrors" />
    <compilation debug="true" urlLinePragmas="true">
      <assemblies>
        <!--<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>-->
      </assemblies>
    </compilation>
    <httpHandlers>
      <add verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler" validate="true" />
      <add verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler" validate="false" />
      <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha" />
      <add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler,ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd" />
      <add verb="*" path="*js.axd" type="JavaScriptHandler" />
      <!--<remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add type="ComponentArt.Web.UI.UploadModule,ComponentArt.Web.UI" name="ComponentArtUploadModule" />
      <add type="CompressWebResource" name="CompressWebResource" />
    </httpModules>
    <authentication mode="Windows" />
  </system.web>
  <Miron.web>
    <CompressorSettings reflectionAlloweded="false" optimizeHtml="true" daysInCahe="30" compressCSS="true" compressJavaScript="true" compressPage="false" compressWebResource="false" compressThirdParityScripts="false">
      <excludeTypes>
        <add key="image/gif" />
        <add key="image/jpeg" />
      </excludeTypes>
      <excludePaths>
        <!--<add key="~/DontCompressMe.aspx" />-->
      </excludePaths>
    </CompressorSettings>
  </Miron.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="JsHandler" verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" preCondition="integratedMode" />
      <add name="CssHandler" verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
   
  </system.webServer>
</configuration>
---------------------------------------------------

Neda
Top achievements
Rank 1
 answered on 03 Dec 2011
2 answers
67 views
In my application I am using Master-contain Page model. In this model some controls are in master and some controls are in content page.
I am using RadAjaxManager in both Master and content page to avoid complete page post back on control event. But is gives me an error. If there is any solution to mention AjaxUpdatedControlId on both master and content page so that i can avoid complete page postback.
Sarang
Top achievements
Rank 1
 answered on 03 Dec 2011
1 answer
143 views
I have a scenario where I have two RadSlidingPanes side by side.  In point of fact, they're nested in the sense that one is on the parent Web Content Form and the other is inside a User Control that is loaded into the form.

    <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None" MaxWidth="200"><br>      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" Height="0" ClickToOpen="true" DockedPaneId="radSlidingPane"><br>        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" BackColor="#F0F8FF" CssClass="slidingPane" TabView="TextAndImage" IconUrl="~/Images/hierarchy.gif" DockOnOpen="true"><br>          <telerik:RadListBox ID="radListBoxStopes" runat="server" Width="100%" Height="100%" AutoPostBack="true" OnItemCreated="radListBoxStopes_ItemCreated" OnSelectedIndexChanged="radListBoxStopes_SelectedIndexChanged"><br>            <ItemTemplate><br>              <asp:Panel runat="server"><br>                <asp:Label ID="labelStope" runat="server" Text='<%# Eval("Description") %>' CssClass="muckListPrimary" /><br /><br>                <asp:Label ID="labelUnits" runat="server" Text='<%# Eval("Units", "{0:0 units}") %>' CssClass="muckListSecondary" /><br>                <asp:HiddenField ID="hidFieldMaterial" runat="server" Value='<%# Eval("Material").ToString() %>' /><br>              </asp:Panel><br>            </ItemTemplate><br>          </telerik:RadListBox><br>        </telerik:RadSlidingPane><br>      </telerik:RadSlidingZone><br>    </telerik:RadPane><br>

Please take a look at the first screen capture.  That's the way everything appears when the left sliding pane is collapsed.  Note how the RadListBox displays with a nice width.  But when I expand the left sliding pane the width of the right sliding pane (and the listbox within it) are shrunk down in width.

I've tried several things but cannot figure out how to maintain a suitable width for the right sliding pane and its child listbox.

Any advice on what to do?

Robert



Robert
Top achievements
Rank 1
 answered on 03 Dec 2011
5 answers
221 views
Hi,

How to selected the first child tab when I click the parent tab?

For example (please refer to coding below),

When page load, the ParentTab1, ChildTab1 and pgView1 will be selected.
When I click the ParentTab1, the ChildTab1 and pgView1 will be selected.
When I click the ParentTab2, the ChildTabA and pgViewA will be selected.
When I click the ParentTab3, the pgViewTab will be selected.

              <telerik:RadTabStrip ID="rtsTab" runat="server" MultiPageID="rmpTab" ScrollChildren="true">  
                    <Tabs> 
                        <telerik:RadTab Text="ParentTab1" runat="server" Selected="true">  
                            <Tabs> 
                                <telerik:RadTab Text="ChildTab1" PageViewID="pgView1" Selected="true">  
                                </telerik:RadTab> 
                                <telerik:RadTab Text="ChildTab2" PageViewID="pgView2">  
                                </telerik:RadTab> 
                            </Tabs> 
                        </telerik:RadTab> 
                        <telerik:RadTab Text="ParentTab2" runat="server">  
                            <Tabs> 
                                <telerik:RadTab Text="ChildTabA" PageViewID="pgViewA">  
                                </telerik:RadTab> 
                                <telerik:RadTab Text="childTabB" PageViewID="pgViewB">  
                                </telerik:RadTab> 
                                <telerik:RadTab Text="childTabC" PageViewID="pgViewC">  
                                </telerik:RadTab> 
                            </Tabs> 
                        </telerik:RadTab> 
                        <telerik:RadTab Text="ParentTab3" runat="server" PageViewID="pgViewTab">  
                        </telerik:RadTab> 
                    </Tabs> 
                   </telerik:RadTabStrip> 
 
 
 
 
               <telerik:RadMultiPage ID="rmpTab" runat="server">  
                     
                       <telerik:RadPageView ID="pgView1" runat="server" Selected="true">  
                          ParentTab1, ChildTab1     
                       </telerik:RadPageView> 
 
               <telerik:RadPageView ID="pgView2" runat="server">  
                          ParentTab1, ChildTab2     
                       </telerik:RadPageView> 
          
               <telerik:RadPageView ID="pgViewA" runat="server">  
                          ParentTab2, ChildTabA     
                       </telerik:RadPageView> 
 
               <telerik:RadPageView ID="pgViewB" runat="server">  
                          ParentTab2, ChildTabB    
                       </telerik:RadPageView>             
 
               <telerik:RadPageView ID="pgViewC" runat="server">  
                          ParentTab2, ChildTabC    
                       </telerik:RadPageView> 
 
               <telerik:RadPageView ID="pgViewTab" runat="server">  
                          ParentTab3  
                       </telerik:RadPageView>                   
 
 
 
 
               <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">  
                 <AjaxSettings> 
                        <telerik:AjaxSetting AjaxControlID="rtsTab">  
                            <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="rtsTab" /> 
                                    <telerik:AjaxUpdatedControl ControlID="rmpTab" /> 
                            </UpdatedControls> 
                        </telerik:AjaxSetting> 
                </AjaxSettings> 
                   </telerik:RadAjaxManager>   


Anyone can help?

Thanks.

Regards,
Jessie
Dawson
Top achievements
Rank 1
 answered on 02 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?