Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

With the RadFileExplorer, we are seeking a way to multi select files, click a context item, then fire a client side event with the itemPaths for the selected files.

I can add a RadMenuItem to the context menu, and fire an event client side event. However it only fires once, and passes in the first selected file itemPath.

Thanks
-Matt

Dobromir
Telerik team
 answered on 02 Nov 2012
1 answer
198 views
I am looking for a way to simply bind a byte array to the ImageEditor.  On my page, users can click various link buttons which will allow them to crop pictures coming from the database.  How do I invoke the ImageLoading event each time a user clicks a link button?  Right now it seems the ImageLoading event only fires when the page loads.

It would be ideal if the control could be used like this:

ImageEditor1.DataSource = SomeByteArray;
ImageEditor1.DataBind();

The DataBind would then fire an event similar to ImageLoading but you wouldn't have to handle the memory stream in the event, the DataBind would simply do it.

Just any idea.  My immediate need is figuring out how to trigger the ImageLoading event.

Thanks!
Dobromir
Telerik team
 answered on 02 Nov 2012
3 answers
363 views
Hi,
I am using Telerik.Web.UI.dll 2010.3.1317.35 Version. I have doubts in Rad Grid Multiple Column Header with col-span. ColumnsGroup Tag does not support for this version. so we are trying to use below 2 methods 
1. Using tables TR, TD Method in Header Template in Single Template columns.
2. Server Side code methods of Grid PreRender using add new Header Item using TableHeadercell but after data bind or using column resizing  then gird design will be collapse, 
 
So, Can you Suggest me which is the correct method or any other simple method for multiple column header.
Marin
Telerik team
 answered on 02 Nov 2012
4 answers
398 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
184 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
172 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
509 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
164 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
434 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
221 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
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?