Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Is it possible to remove the design and preview options at the bottom because I don't want my users to change it. I would like to change those options on the fly based on the permission that I gave my users.
So if my user has read permission, they'll only see preview otherwise just the design option.

I want this done in javascript so my control is being set on the fly.

I used set_mode but the problem is that if I only specify design option during initialization, I can't change it anymore to preview mode. So I have to include design and preview during initialization.

Thanks for your reply before.
Rumen
Telerik team
 answered on 17 Nov 2008
3 answers
87 views
splitter in q3 error , when i check websource, it is diffent DEBUG or RELEASE
#if DEBUG
    [ClientScriptResource("Telerik.Web.UI.RadSplitter", "Telerik.Web.UI.Splitter.RadSplitter.js")]
#else
 [ClientScriptResource("Telerik.Web.UI.RadSplitter", "Telerik.Web.UI.Splitter.RadSplitterScripts.js")]
#endif

when compile complete, only one embeded resource named 'Telerik.Web.UI.Splitter.RadSplitter.js'
what's the problem?
Tsvetie
Telerik team
 answered on 17 Nov 2008
1 answer
108 views

Is there a way to use multipage with the panelbar control. I want to utilize similar functionality as in the "Defining the RadMultiPage structure in the code-behind" example in the online help for the tabstrip control. The panelbar doesn't have integration with multipage as does the tabstrip so I am not sure the same functionality can be accomplished. I would like to load a custom user control in the page view upon clicking a particular item or subitem on the panelbar. This is the code I am using for the tabstrip. I would like to have the same functionality using the panelbar.

 

Imports

Telerik.Web.UI

 

 

 

Partial

Class inventory_4

 

 

Inherits System.Web.UI.Page

 

 

Private Function ReplaceSpaces(ByVal RepString As String)

 

ReplaceSpaces = RepString.Replace(

" ", "_")

 

ReplaceSpaces = ReplaceSpaces.ToString

 

End Function

 

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

If Not Page.IsPostBack Then

 

 

 

AddTab(

"Store")

 

AddTab(

"Marketplaces")

 

AddTab(

"Shopping Feeds")

 

 

 

 

End If

 

 

 

 

End Sub

 

 

 

 

Private Sub AddTab(ByVal tabName As String)

 

 

Dim tab As New RadTab()

 

tab.Text = (tabName)

RadTabStrip1.Tabs.Add(tab)

 

Dim pageView As New RadPageView()

 

pageView.ID = tabName

RadMultiPage1.PageViews.Add(pageView)

 

End Sub

 

 

 

 

Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated

 

 

Dim FunctionPage As String

 

 

 

FunctionPage =

"inventory_"

 

 

 

 

Dim userControlName As String = FunctionPage & ReplaceSpaces(e.PageView.ID) & ".ascx"

 

 

 

 

Dim userControl As Control = Page.LoadControl(userControlName)

 

userControl.ID = ReplaceSpaces(e.PageView.ID) &

"_userControl"

 

 

 

e.PageView.Controls.Add(userControl)

 

End Sub

 

 


Thank you in advance.

DMY



Paul
Telerik team
 answered on 17 Nov 2008
2 answers
381 views
In RadControls for ASP.NET AJAX Q1 2008 there is a change in the Client-Side API. The compatibility layer which was used in the transition beta period is now removed. All client-side methods strictly follow the ASP.NET AJAX conventions and are lower case.

For instance: getWidth() should always be used from now on, GetWidth() is no longer supported. This also results in significant improvement in page loading times.
Svetlina Anati
Telerik team
 answered on 17 Nov 2008
1 answer
117 views
I have a chart with 5 series (3 line, 2 bar).  Is there a way I can ensure the lines are drawn over the bars if the two overlap?
Giuseppe
Telerik team
 answered on 17 Nov 2008
1 answer
90 views
Question 1:  I would like to set my ASP.Net Ajax Rad Chart to an absolute position on the page using VB.  Is there a way to do that?

Question 2:  How to I use VB to set the position of the PlotArea within the chart?

Thanks
Giuseppe
Telerik team
 answered on 17 Nov 2008
2 answers
106 views
Hi,

I'm trying to add a footer to my combobox showing the total items found, as used in some of your examples

However the footer seems to be using the default Skin for style, rather than the Skin I have specifid.

Here is my code:

    <telerik:RadComboBox  ID="RadComboBox1" runat="server" DataSourceID="ObjectDataSource2" Skin="Gray" DataTextField="Description" DataValueField="ValueID" Filter="Contains" Width="300px" Height="300px" >
        <CollapseAnimation Duration="200" Type="OutQuint" />
        <FooterTemplate>
          A total of <asp:Label runat="server" ID="RadComboItemsCount" /> items
        </FooterTemplate>
    </telerik:RadComboBox>   
Rick
Top achievements
Rank 1
 answered on 17 Nov 2008
3 answers
132 views
Hi All,

We have come across a problem which I thought someone else might have come across but I can't find any mentions of it. It may just be my inexperience of the AJAX controls as I am more used to using the older rad controls.

This is for a control panel which edits lots of database fields across different tabs to break up and group similar fields and options of an e-commerce product editing screen.

The situation is as follows:
We have a page (which is in a master page) that has a TabStrip on it. This TabStrip is ajaxed using a RadAjaxManager which is also on the page. It is linked to a loading panel. The TabStrip has 10 tabs. The RadMultiPage is set to RenderSelectedPageOnly.

On tab 3 there is just a usercontrol which only has a RadGrid on it. The RadGrid has a few bound columns and an edit command button. The data is filled using an SqlDataSource control. When I click the edit button on a row it shows the loading message and then clears the grid completly (it totally disappears).

We have worked this out to be because the RadGrid is not rendered by default as Tab 3 is not shown when you first come to the page, so we guess the Ajax call can't find it. To prove this we set the TabStrip to always start with Tab 3. Like this, when a grid edit button was clicked it would work as expected and have the grid with the selected row in edit mode.

My RadAjaxManager is as follows:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="TabStripCategories"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="TabStripCategories"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="MultiPageTabs" LoadingPanelID="RadAjaxItemLoadingPanel"></telerik:AjaxUpdatedControl> 
               </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGridVariations"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGridVariations" LoadingPanelID="VariationsLoadingPanel"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
    </telerik:RadAjaxManager> 
 

Is there a way we can do this? It seems we kind of need the functionality similar to the RadComboBox streamer page, but for a RadGrid.

Any suggestions or am I just going about this the wrong way? Basically want to have this large form split up across different tabs and only one is rendered (sent to the browser) at a time for a quick load time.

Many thanks,
Andy
Iana Tsolova
Telerik team
 answered on 17 Nov 2008
1 answer
65 views

So, I've seen a number of posts related to this and all of them seemed to be related to control blocks added to JS inside of controls...but, that's not my problem. For whatever reason, control blocks in unrelated non-server-side div tags seem to be causing the same error. See the code below. If I remove the <div> tags with the resource pulls, it works. If I remove the RadAjaxManager or if I switch the string drops into Literals, the error goes away. What's up with that? Those divs aren't being run at the server side so they shouldn't be included as controls.

This is with your 2008 AJAX grid control running on .Net 3.5 SP1, VS 2k5 using the built-in dev server.

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="imATHLETE.account.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
 
 <form id="whatever" runat="server">
 <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
 </telerik:RadStyleSheetManager>

 
   <asp:SqlDataSource ID="imATHLETEDBNet" runat="server" ConnectionString="<%$ ConnectionStrings:imATHLETEDBNet %>"
     SelectCommand="usp_get_EventParticipantList" SelectCommandType="StoredProcedure">
     <SelectParameters>
      <asp:QueryStringParameter DefaultValue="0" Name="inEventID" QueryStringField="fEventDisplayID"
       Type="Int32" />
      <asp:Parameter Name="inUserID" Type="Int32" DefaultValue="1043" />
      <asp:Parameter DefaultValue="0" Name="inFormatXML" Type="Int16" />
     </SelectParameters>
    </asp:SqlDataSource>
    &nbsp;&nbsp;
    
 
 <div class="PageHeader">
   <%=Resources.Strings_EN_US.RDPartiDetailsPageTitle %>
   <span style="color: #CCCCCC;">&nbsp;&gt;&nbsp;<%=Resources.Strings_EN_US.RDPartiDetailsPageTitle2 %></span>
  </div>
  
  <div id="ParticipantDetails_EventSelect">
   <h3><%=Resources.Strings_EN_US.RDPartiDetailsSelectEvent %></h3>
   <select name="fEventDisplayID" id="fEventDisplayID">
    
   </select>
  </div>
 
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 </telerik:RadScriptManager>
 
   <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="imATHLETEDBNet" GridLines="None" Skin="Outlook" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True">
     <HeaderContextMenu EnableTheming="True" Skin="Outlook">
      <CollapseAnimation Duration="200" Type="OutQuint" />
     </HeaderContextMenu>
     <MasterTableView AutoGenerateColumns="False" DataSourceID="imATHLETEDBNet">
      <RowIndicatorColumn>
       <HeaderStyle Width="20px" />
      </RowIndicatorColumn>
      <ExpandCollapseColumn>
       <HeaderStyle Width="20px" />
      </ExpandCollapseColumn>
      <Columns>
       <telerik:GridBoundColumn DataField="XML_F52E2B61-18A1-11d1-B105-00805F49916B" HeaderText="XML_F52E2B61-18A1-11d1-B105-00805F49916B"
        ReadOnly="True" SortExpression="XML_F52E2B61-18A1-11d1-B105-00805F49916B" UniqueName="XML_F52E2B61-18A1-11d1-B105-00805F49916B">
       </telerik:GridBoundColumn>
      </Columns>
     </MasterTableView>
     <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
      <Selecting AllowRowSelect="True" />
      <Scrolling AllowScroll="True" UseStaticHeaders="True" />
     </ClientSettings>
     <FilterMenu EnableTheming="True" Skin="Outlook">
      <CollapseAnimation Duration="200" Type="OutQuint" />
     </FilterMenu>
    </telerik:RadGrid>
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid1">
     <UpdatedControls>
      <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
     </UpdatedControls>
    </telerik:AjaxSetting>
   </AjaxSettings>
  </telerik:RadAjaxManager>
    </form>
</body>
</html>

 

 

 

 

Vlad
Telerik team
 answered on 17 Nov 2008
1 answer
57 views
Grid with form template in insert mode the radcombobox will have error "out of range"

i have a grid which use the formtemplate for update and insert the record. during edit mode everything is fine..... but when i click the :"new record" button in the grid... the radcombobox will appear the error for out of range.....

is there anyway to solve the problem?

From LUI
Vlad
Telerik team
 answered on 17 Nov 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?