Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
355 views
I want to be able to hide or show the icon column for the RadMenu, but want to be able to turn this column on and off for individual menu items but can't see how to do this.

I found a page that says this is available for the RadMenu for silverlight here http://www.telerik.com/help/silverlight/radmenu-how-to-remove-the-icon-area-for-radmenu.html but even this suggests its either on or off for all items in a menu and cant be set for each one.

Can anyone tell me if this can be done, and if it can, how?

Thanks.
Raymond
Top achievements
Rank 1
 answered on 02 Nov 2012
5 answers
170 views
Hello,

I have a large, programmatically created grid where the customer has added the requirement that each cell edited also have an explanation or comment. So, I will need a second column of inputs in the edit form. These strings will be separate from grid table data: values will simply be passed down to the database and entered into an audit table.

I've looked around the forum and help sections, but haven't seen anything promising.

Thanks,
David
Marin
Telerik team
 answered on 02 Nov 2012
1 answer
156 views
Hi

I am creating the organization chart with the following condition:
1. specific block format  (Please follow the exactly format in attachment 1)
2. The staff with 'Assistant' role is placed in different level against other subordinates, in SQL Table, it has the "isAssistant" field to state wheather the person is assistant or not.  (Please see attachment 2)

I think RadOrgChart cannot customize the block to the same style as attachment 1(Please correct me if wrong).  Hence  Please advise should I use TreeView and how to implement condition 2 with TreeView.  I am using Linq, VB.net and Asp.net 3.5.     Could you provide similar sample this case.

Thanks.
Patrick


Peter Filipov
Telerik team
 answered on 02 Nov 2012
3 answers
471 views
Hi
     I have a boundcolumn in which Im showing aggregate at the footer. How can I make this footer text bold.
thanks
allen
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2012
4 answers
102 views

Hi,
I'm having Microsoft JScript runtime error: Unable to get value of the property 'PageRequestManager': object is null or undefined when ever page is loaded. I can no longer clicked on the dropdown whenever I continue with the page.
It throws error on this line on Telerik.Web.UI.We.....[dynamic] -->

window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this;

 

 

 

 

 

Maria Ilieva
Telerik team
 answered on 02 Nov 2012
1 answer
357 views
Hello,

I was wondering why the following is happening. I have a page with a DatePicker. I set the OnSelectedDateChanged event. All works fine. Autopostback is also set. A grid then gets rebound (calling grid.rebind in datechange event) to reflect new date range selection. Now I have a button on the form, which then triggers an action based on the selected items in the grid. All works fine when viewstate is enabled for both datepicker and grid.

But when I set the EnableViewState to false for the datepicker, all goes wrong. Because the viewstate on the datepicker is turned off, the OnSelectedDateChanged is not just fired when the date changes, but also when I click the button, or trigger any other server side event. This cause the grid to be rebound and my SelectedItems count is then zero.

Is this normal behavior and my understanding of viewstate is too limited? Since I dont need viewstate on datepicker just to rebind grid to correct date, I would prefer to leave viewstate off.

Example page to see the OnSelectedDateChanged event getting fired when viewstate is disabled on the datepicker and you trigger another event: (just enable viewstate on datepicker to see that event doesnt get triggered then if button is clicked)

ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true"
        OutputCompression="Forced" ScriptMode="Release">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div>
        <asp:Button runat="server" ID="btnSelect" Text="Select" OnClick="btnSelect_Click" />
        <telerik:RadDatePicker ID="dp4" runat="server" MinDate="2006-01-01" AutoPostBack="True" OnSelectedDateChanged="dp4_Changed"
            Width="100px" EnableViewState="False">
            <Calendar ID="cal1" runat="server" />
            <DateInput ID="dip1" runat="server">
            </DateInput>
        </telerik:RadDatePicker>
         
    </div>
    </form>
</body>
</html>


Code-behind:

using System;
using Telerik.Web.UI.Calendar;
 
public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void btnSelect_Click(object sender, EventArgs e)
    {
         
    }
 
    protected void dp4_Changed(object sender, SelectedDateChangedEventArgs e)
    {
        //set breakpoint
        string x = "";
 
    }
}




Eyup
Telerik team
 answered on 02 Nov 2012
3 answers
188 views
I am having big issues with RadFilter and getting it to produce the right expressions against Entity Framework DBContext.

It produces expressions that are not supported in EF.

E.g. Expression Preview is  (TransDate > '10-20-2014 12:00:00')
    Translates to (TransDate > DateTime.Parse('10-20-2014 12:00:00'))

Results in EF error "function DateTime.Parse is not supported... etc."

Same for String comparsions. and anywhere that ToString output by the RadFilter.

How can I get the expressions to be EF compatible???? I have tried the EnitySql Provider but this is not SQL. Also tried the DynamicLinq but that outputs the same as the default.

Thanks


Marin
Telerik team
 answered on 02 Nov 2012
1 answer
59 views
I would love to use RadFilter but it does not support OData. is there a chance I could write my own provider (to output $filter format expressions)

Has anyone done this?

Any guidance would be useful. The control is great and enabled advanced search scenarios.


Marin
Telerik team
 answered on 02 Nov 2012
2 answers
65 views
I am using this editor column, and it is inheriting the page css. This is OK except that I want to over-ride the 
background color so that the text area has a plain white background.  Just setting the item background color property does not seem to do it.
I am sure I am missing something simple! Please help!

Thanks

Clive
Rumen
Telerik team
 answered on 02 Nov 2012
4 answers
143 views
Hi Telerik Support !

Firstly, I would like to thank you for all your dedicated co-operation for my problems.

This time aroud I got stuck with RadUpload Control. Actually what I need to achieve is that I want to increase the width of RadUpload in such as way that its REMOVE button contines to stay intact with it (which happens only when I have RadUpload width set t0 less that 40 px, but when I try to increase its width it [Remove Button] gets along in other line.) .

Please see the attachment.

Also, I want to decrease the gap between ADD BUTTON & RadUpload control. How can I do this ?

Thanks for your help & please help with this problem.

Ajay
Princy
Top achievements
Rank 2
 answered on 02 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?