Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
162 views
My Grid is stuck in edit mode after hitting Save but not Cancel.

The cause appears to be: AllowAutomaticInserts="true"

So I'm guessing the EntityDataSource has an error on save - how do I get the error?
Peter
Top achievements
Rank 1
 answered on 05 Feb 2013
1 answer
251 views
Hello Telerik!

I have my RadTreeView:

<telerik:RadTreeView runat="server" ID="TreeViewUnit"  CssClass="TreeView"
           ShowLineImages="False" Skin="Forest"

    OnDataBound="TreeViewUnit_DataBound"
    OnNodeClick="TreeViewUnit_NodeClick"
          
meta:resourcekey="TreeViewUnitResource1">

And I have binding in code behind where I set two attributes:
item.Attributes["Item"] = "Unit";
or
item.Attributes["Item"] = "Respondent";


Also I set node images in code behind and it's bad.
item.ImageUrl = imageFolder + "folder-icon.png";
node.ImageUrl = imageFolder +
"profile_icon.png";


So I want to do it right way in order to reduce traffic and use CSS for node image.
I tried:

.RadTreeView .rtImg {
    background-image: url("/Styles/images/plusminus_icon.png") !important;
}
.RadTreeView_Forest .rtImg {
    background-image: url("/Styles/images/profile_icon.png") !important;
}


but it does not work.

For example:
.RadTreeView_Forest .rtPlus, .RadTreeView_Forest .rtMinus {
    background-image: url("/Styles/images/plusminus_icon.png") !important;
}


works perfectly fine for minus sign images.


Any ideas how can I do it? And It will be great if there was a way to select image depending on node attribute. I think I can manage to do it using javascript and DOM elements, but adding images using CSS still a question.
Thanks)





Vitalii
Top achievements
Rank 1
 answered on 05 Feb 2013
2 answers
131 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
149 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
80 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
193 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
68 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
39 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
108 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
430 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?