Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
Hello Telerik, I am trying to align title position by this example.
Here is my chart.

And code
<ChartTitle>
    <
Appearance Dimensions-Margins="4%; 10px; 14px; 8%" Position-AlignedPosition="TopLeft">
    </
Appearance>
   
<TextBlock Text="">
        <
Appearance TextProperties-Font="Arial, 18px" TextProperties-Color="#000000">
        </
Appearance>
    </
TextBlock>
</
ChartTitle>

And I tried like this:

<Appearance Dimensions-Margins="0px; 0px; 0px; 0px"  Position-AlignedPosition="TopLeft">
</Appearance>

Does not work ether. What can it be?

When I delete appearence and textblock I have next image.

How can I align char title to the left?
Vitalii
Top achievements
Rank 1
 answered on 05 Feb 2013
4 answers
153 views
I have a requirement to use a DetailsView control to display a shedload of data, more than can reasonably be displayed in the available screen real estate.

So, I thought, "I'll use a TabStrip and split the data up". But, and this is where I wanted some input, would the best option be to:
  1. Put multiple DetailsView controls in my control; one per PageView with different sets of TemplateFields in each DetailsView control, or
  2. Try and put a TabStrip/MultiPage control inside a single DetailsView?

I have to admit to having tried neither of the options I just wondered if anyone had had a similar requirement and had some thoughts about which route to take.

TIA,

-- 
Stuart
asimptota
Top achievements
Rank 1
 answered on 05 Feb 2013
1 answer
83 views
Hello,

Is it possible to add a drag handle to a RadScheduler so it can be dynamically resized by the user?

If so, please provide a code sample.

Thank You!
Plamen
Telerik team
 answered on 05 Feb 2013
3 answers
198 views
I am using telerik v2010.2.713.40. 

The site runs with no errors locally, but when deployed in the hosting server I get the below error. The thing is, the error disappears when the page gets refreshed and works fine thereafter. Then again randomly the error will appear, and refreshing the page will do the trick again. The hosting company confirmed that they run the site on Medium trust environment, so I had updated the pages to work on a Medium Trust environment (inheriting from  System.Web.UI.Page, Telerik.Web.UI.IRadAjaxPage and overriding the rendering methods ). Some of other functions does not work as desired , and I think this might be the reason for it. Any help to sort this out will b highly appreciated. Thanks.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request failed.

Source Error: 

Line 6:  </asp:Content>
Line 7:  <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
Line 8:      <telerik:RadScriptManager ID="ScriptManager" runat="server" />
Line 9:      <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
Line 10:         <script type="text/javascript">

Source File: d:\inetpub\vhosts\xyz.com.au\httpsdocs\ClientDashBoard.aspx    Line: 

Stack Trace: 

[SecurityException: Request failed.]
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +168
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +278
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action) +70
   System.RuntimeMethodHandle.CheckLinktimeDemands(IRuntimeMethodInfo method, RuntimeModule module, Boolean isDecoratedTargetSecurityTransparent) +0
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +482
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +62
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +272
   System.Web.UI.ScriptManager..ctor() +11
   Telerik.Web.UI.RadScriptManager..ctor() +15
   ASP.clientdashboard_aspx.__BuildControlScriptManager() in d:\inetpub\vhosts\fetchpetcompany.com.au\httpsdocs\ClientDashBoard.aspx:8
   ASP.clientdashboard_aspx.__BuildControlContent2(Control __ctrl) in d:\inetpub\vhosts\fetchpetcompany.com.au\httpsdocs\ClientDashBoard.aspx:7
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87
   ASP.clientmaster_master.__BuildControlContentPlaceHolder1() in d:\inetpub\vhosts\fetchpetcompany.com.au\httpsdocs\ClientMaster.master:65
   ASP.clientmaster_master.__BuildControlform1() in d:\inetpub\vhosts\fetchpetcompany.com.au\httpsdocs\ClientMaster.master:13
   ASP.clientmaster_master.__BuildControlTree(clientmaster_master __ctrl) in d:\inetpub\vhosts\fetchpetcompany.com.au\httpsdocs\ClientMaster.master:1
   ASP.clientmaster_master.FrameworkInitialize() in App_Web_clientmaster.master.cdcab7d2.07nip1fo.0.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8836530
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.clientdashboard_aspx.ProcessRequest(HttpContext context) in App_Web_clientdashboard.aspx.cdcab7d2.trsd0rpx.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1




Nimesha
Top achievements
Rank 1
 answered on 05 Feb 2013
1 answer
72 views
I am using a customized version of the Metro Skin and can't seem to find the rtsDropClueSprite.png file either in the Program Files/Telerik/Skins or using the online StyleBuilder.  Any help would be appreciated getting this file.  This is the sprite image for the drag and drop of RadTabs
Dan
Top achievements
Rank 1
 answered on 05 Feb 2013
1 answer
42 views
At some point in the last few months I saw an article that showed how to create the drop down menu like the current telerik home page menu with the different product lines grouped together.  I would like to use something like that now and of course I cannot find the article!

Can someone point me to where it is?
Seth
Top achievements
Rank 1
 answered on 05 Feb 2013
2 answers
118 views
Hey Guys,

I have a couple of RCBs and when they expand, they do not appear below the box, rather below whatever control is under the box.
Sometimes even 2 controls under the box.  Can't seem to figure out what is causing it.  
I've tried setting EnableScreenBoundaryDetection to false, and Expand Direction to Up/Down.  Setting it to Up changes the position, but I do not want to use Up, I need Down.

See it in action here http://cgp.triplestones.com.au/text.aspx

Any ideas? Code below.

<%@ Page Title="" Language="C#" MasterPageFile="~/shared/templates/CGPTest.master" AutoEventWireup="true" CodeFile="text.aspx.cs" Inherits="design_text" %>
 
<asp:Content ID="Content3" ContentPlaceHolderID="cpPageBody" Runat="Server">
    <telerik:RadWindowManager ID="rwmCustom" runat="server"></telerik:RadWindowManager>
    <telerik:RadFormDecorator ID="rfdCustom" runat="server" DecoratedControls="All" EnableRoundedCorners="true" />
 
    <h2>Step 2 : Your order details</h2>
    <fieldset>
        <ul>
            <li>Pick type</li>
            <li><telerik:RadComboBox ID="rcbPickType" runat="server" Width="250px" OnSelectedIndexChanged="rcbPickType_SelectedIndexChanged" AutoPostBack="true" EnableScreenBoundaryDetection="false" ExpandDirection="Down" /></li>
            <li>Pick gauge</li>
            <li><telerik:RadComboBox ID="rcbGauge" runat="server" Width="60px" EnableScreenBoundaryDetection="false" ExpandDirection="Down" /></li>
            <li>Your Name</li>
            <li><asp:TextBox ID="tbName" runat="server" MaxLength="255" width="250px" /></li>
            <li>Your Email</li>
            <li><asp:TextBox ID="tbEmail" runat="server" MaxLength="255" width="250px" /></li>
            <li>Extra instructions</li>
            <li><asp:TextBox ID="tbExtraInfo" runat="server" TextMode="MultiLine" Rows="4" MaxLength="2500" width="250px" /></li>
            <li> </li>
        </ul>
    </fieldset>
 
</asp:Content>

protected void Page_Load(object sender, EventArgs e)
{
    // Catch a null order and redirect to the start page
    CustomOrder currentOrder = CustomOrder.GetCurrentOrder();
    if (currentOrder == null) currentOrder = new CustomOrder(DesignTypes.Text);
 
    if (!Page.IsPostBack)
    {
        // Bind PickTypes
        IEnumerable<XElement> pickTypes = CGP.ShoppingCart.Catalog.GetPickTypes(currentOrder.DesignType);
        foreach (XElement pickType in pickTypes)
        {
            RadComboBoxItem item = new RadComboBoxItem(pickType.Attribute("name").Value + " - " + pickType.Attribute("colour").Value, pickType.Attribute("name").Value + " - " + pickType.Attribute("colour").Value);
            item.ImageUrl = pickType.Attribute("imageThumbURL").Value;
            rcbPickType.Items.Add(item);
        }
 
        // Bind gauges
        BindGauges();
    }
}
 
protected void BindGauges()
{
    // Set gauge items in drop down
    rcbGauge.Items.Clear();
 
    IEnumerable<XElement> gauges = CGP.ShoppingCart.Catalog.GetGaugesByPickType((rcbPickType.SelectedValue.Split('-')[0]).Trim());
    foreach (XElement gauge in gauges)
    {
        rcbGauge.Items.Add(new Telerik.Web.UI.RadComboBoxItem(gauge.Attribute("name").Value));
    }
 
}
 
protected void rcbPickType_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    BindGauges();
}

Thanks
Simon
Top achievements
Rank 1
 answered on 04 Feb 2013
10 answers
436 views
We are evaluating the Telerik controls for web use, and I have a couple of questions that I don't see answered here:

1. Is it possible to set every row to edit mode in the .aspx markup (as opposed to using the Edit property in the code-behind)?
2. Does the built-in binding update only dirty rows (rows that have changed) or does it update *every* row that is posted back in edit mode?

Thanks for any help,

Jeff
Brijesh Gadhiya
Top achievements
Rank 1
 answered on 04 Feb 2013
2 answers
200 views
I have a master page which contains the form tag

now on the content page i have radtextbox,radnumbericboc.raddatepicker,radcombobox,checkbox and radio button.

i have a buton called clear on the content page.
now onclientClick event of the buton i want to clear the fileds in the content page.

i dont want to do  manually each fileds like setting txtabc.text=""; etc.
just want to clear form by using loops.

please help me as soon as possible.

thnaks in advance
Aarsh
Top achievements
Rank 1
 answered on 04 Feb 2013
4 answers
180 views
I have a RadGrid in a user control and have Radcombo boxes in Radgrid's Items Template. I want to use Load on demand to populate the combobox in 3rd column of the grid (ddlElementEdit in code below). The data in this column will be populated based on the value selected in the comboboxes in 1st column (ddlETypeEdit in code below) and 2nd column (ddlCOIDEdit) of the grid. Please let me know how can I implement this. Please find the markup of the grid below.

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
        EnableViewState="true" AllowAutomaticInserts="True" Skin="Outlook" ShowHeader="true" 
        CssClass="GridStyle" AllowPaging="true" PageSize="10"
        OnDeleteCommand="RadGrid1_DeleteCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged"
        Height="100%" HorizontalAlign="Center"
        OnItemDataBound="RadGrid1_ItemDataBound" 
        onitemcommand="RadGrid1_ItemCommand" ShowGroupPanel="true">
        <PagerStyle AlwaysVisible="true" />
        <ItemStyle HorizontalAlign="Center" />
        <AlternatingItemStyle HorizontalAlign="Center" />
        <MasterTableView CommandItemDisplay="Bottom" EnableViewState="true"
            NoMasterRecordsText="" EditMode="InPlace" HorizontalAlign="Center" AutoGenerateColumns="False"
            Caption="Manual Assignment" TableLayout="Auto" GroupLoadMode="Server">

            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                                    <SelectFields>
                        <telerik:GridGroupByField  FieldName="Seq" 
                            HeaderValueSeparator=":"></telerik:GridGroupByField>
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="Seq" SortOrder="Ascending"></telerik:GridGroupByField>
                    </GroupByFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>

            <Columns>
                <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
                    ConfirmText="Delete this Element?" CommandName="Delete" Text="Delete" ConfirmTitle="Delete"
                    UniqueName="DeleteColumn" ItemStyle-Width="50px" HeaderStyle-Width="50px">
                    <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
                </telerik:GridButtonColumn>
                <telerik:GridTemplateColumn ItemStyle-Width="125px" UniqueName="ManETypeCol"
                    HeaderText="Type" HeaderStyle-Width="125px">
                    <ItemTemplate>
                        <telerik:RadComboBox ID="ddlETypeEdit" runat="server" AutoPostBack="true" DataSourceID="SqlDataSource2"
                            DataTextField="Description" DataValueField="ID" Width="110px" EnableViewState="false"
                            OnSelectedIndexChanged="ddlETypeEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlETypeEdit_DataBound">
                        </telerik:RadComboBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManCOIDColumn" HeaderText="Location" HeaderStyle-Width="225px">
                    <ItemTemplate>
                        <%--<telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
                            DataSourceID="SqlDataSource3" DataTextField="CODescription" DataValueField="coID"
                            OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
                        </telerik:RadComboBox>--%>
                        <telerik:RadComboBox ID="ddlCOIDEdit" runat="server" AutoPostBack="true" Width="200px"
                            OnSelectedIndexChanged="ddlCOIDEdit_SelectedIndexChanged" EnableViewState="false" NoWrap="true" OnDataBound="ddlCOIDEdit_DataBound">
                        </telerik:RadComboBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn ItemStyle-Width="225px" UniqueName="ManElementColumn"
                    HeaderText="Element" HeaderStyle-Width="225px">
                    <ItemTemplate>
                        <telerik:RadComboBox ID="ddlElementEdit" runat="server" AutoPostBack="true" Width="200px"
                            EnableViewState="false" OnSelectedIndexChanged="ddlElementEdit_SelectedIndexChanged" NoWrap="true" OnDataBound="ddlElementEdit_DataBound" 
                             EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="ddlElementEdit_ItemsRequested">
                        </telerik:RadComboBox>
                       
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
AratiS
Top achievements
Rank 1
 answered on 04 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?