Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 views
I have a control that will house several asp:ImageButtons that are separate from my control that holds the RadImageEditor. But both controls are on the same page.

I'm wanting to use an onclick function to load whatever type of thumbnail image is displayed inside the ImageButton to send it's url to my RadImageEditor to display inside the control there.

I'm not sure how to communicate between them since they are both on different ascx.cs pages.

How do I communicate from my asp:ImageButton id="imgTopImage"  to my RadImageEditor id="RadImageEditor1" ?

Click Function thus far. . .
public void ImageButton_Click(object sender, ImageClickEventArgs e)
{
    string imageUrl = imgTopImage.ImageUrl.ToString();
   // RadImageEditor1.ImageUrl = (imageUrl); //This is how easy I would like for it to be :)
}

Geoff
Top achievements
Rank 1
 answered on 17 Jul 2012
2 answers
168 views
All,
I am using the latest RadGrid control. I am seeing an unusual error when "Inserting" a row. The error occurs when the grid's "insert" button is clicked. The Error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot find cell bound to column with unique name 'EditCommandColumn'. However, 'EditCommandColumn' is clearly the first column in the grid! This is happening no matter which EditMode I choose...
What am I missing here please?!
<telerik:RadAjaxPanel ID="apnlPayments" runat="server" LoadingPanelID="ajaxLoadingPanel" Width="100%" Height="348px">
    <h2 style="text-align:center">Loan Payments Editor</h2>
    <div style="width: 100%; height: 340px; padding: 3,5,3,15;">
        <telerik:RadGrid ID="gridPayments" runat="server"
            AutoGenerateColumns="false" ShowFooter="true" CellSpacing="0" CellPadding="0" 
            GridLines="Both" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
             
            Skin="Hay"
            ActiveItemStyle-CssClass="Row2" ItemStyle-CssClass="Row0" AlternatingItemStyle-CssClass="Row1"
             
            OnItemDataBound="grid_ItemDataBound" OnNeedDataSource="grid_NeedDataSource"
            OnInsertCommand="gridPayments_InsertCommmand" OnUpdateCommand="gridPayments_UpdateCommand"
            OnDeleteCommand="gridPayments_DeleteCommand" OnPreRender="gridPayments_PreRender">
             
            <ClientSettings>
                <Selecting EnableDragToSelectRows="false" AllowRowSelect="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="false" ScrollHeight="280px" FrozenColumnsCount="2" />
            </ClientSettings>
            <MasterTableView AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowPaging="false"
                DataKeyNames="LoanPaymentID" ClientDataKeyNames="LoanPaymentID" GridLines="Both" CommandItemDisplay="Bottom"
                EditMode="EditForms" EditFormSettings-EditFormType="AutoGenerated" >
                <CommandItemSettings ShowRefreshButton="false" ShowAddNewRecordButton="true" AddNewRecordText="" AddNewRecordImageUrl="~/Images/add_16.png" />
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" Visible="true">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" Width="50px" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delete this Payment?" ConfirmTitle="Delete" ImageUrl="~/Images/icon_delete.png" Reorderable="false" ShowSortIcon="false" Text="Delete" UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" Width="50px" />
                    </telerik:GridButtonColumn>
 
                    <telerik:GridBoundColumn DataField="LoanPaymentPS_ACCT_NO" FilterControlAltText="Filter LoanPaymentPS_ACCT_NO column" HeaderStyle-Wrap="false" HeaderText="PS ACCT NO" MaxLength="50" ReadOnly="true" SortExpression="LoanPaymentPS_ACCT_NO" UniqueName="PS_ACCT_NO" Visible="false" />
                    <telerik:GridDateTimeColumn DataField="LoanPaymentDateDue" DataFormatString="{0:MM/dd/yyyy}" FilterControlAltText="Filter LoanPaymentDateDue column" HeaderStyle-Wrap="false" HeaderText="DATE DUE" ReadOnly="true" SortExpression="LoanPaymentDateDue" UniqueName="LoanPaymentDateDue" Visible="false" />
                    <telerik:GridDateTimeColumn DataField="LoanPaymentDatePaid" DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" EmptyDataText="01/01/1900" FilterControlAltText="Filter LoanPaymentDatePaid column" HeaderStyle-Wrap="false" HeaderText="DATE PAID" SortExpression="LoanPaymentDatePaid" UniqueName="LoanPaymentDatePaid" />
                    <telerik:GridNumericColumn DataField="LoanPaymentAmount" DataType="System.Decimal" FilterControlAltText="Filter LoanPaymentAmount column" HeaderStyle-Wrap="false" HeaderText="AMOUNT" NumericType="Currency" SortExpression="LoanPaymentAmount" UniqueName="LoanPaymentAmount" ConvertEmptyStringToNull="false" />
                    <telerik:GridBoundColumn DataField="LoanPaymentDescription" FilterControlAltText="Filter LoanPaymentDescription column" HeaderStyle-Wrap="false" HeaderText="DESCRIPTION" MaxLength="50" SortExpression="LoanPaymentDescription" UniqueName="LoanPaymentDescription" Visible="false" />
                    <telerik:GridBoundColumn DataField="LoanPaymentUserReference" FilterControlAltText="Filter LoanPaymentUserReference column" HeaderStyle-Wrap="false" HeaderText="USER REFERENCE" MaxLength="50" SortExpression="LoanPaymentUserReference" UniqueName="LoanPaymentUserReference" Visible="false" />
                    <telerik:GridBoundColumn DataField="LoanPaymentMethodNo" FilterControlAltText="Filter LoanPaymentMethodNo column" HeaderStyle-Wrap="false" HeaderText="METHOD NO" MaxLength="50" SortExpression="LoanPaymentMethodNo" UniqueName="LoanPaymentMethodNo" Visible="false" />
                    <telerik:GridBoundColumn DataField="LoanPaymentMethodReference" FilterControlAltText="Filter LoanPaymentMethodReference column" HeaderStyle-Wrap="false" HeaderText="METHOD REFERENCE" MaxLength="50" SortExpression="LoanPaymentMethodReference" UniqueName="LoanPaymentMethodReference" Visible="false" />
                    <telerik:GridBoundColumn DataField="LoanPaymentType" FilterControlAltText="Filter LoanPaymentType column" HeaderStyle-Wrap="false" HeaderText="TYPE" MaxLength="50" SortExpression="LoanPaymentType" UniqueName="LoanPaymentType" Visible="false" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>                               
    </div>
</telerik:RadAjaxPanel>

Sayle
Top achievements
Rank 1
 answered on 17 Jul 2012
1 answer
31 views
Hello,  i'm not sure if the fileexplorere can do this. I want to give my users the option to copy a file locally as opposed to having to open the file and do a save as.   Sort of like when right click on a link to a pdf and choose "save target as".  Is there the option to enable this functionality in FileViewer?


Vessy
Telerik team
 answered on 17 Jul 2012
1 answer
103 views
I have a file explorer control which picks up files from a shared location. I want the default view to be set on a particular directory but I want the user to be able to move up and down the entire directory structure on my computer.Is it possible to do that?
Vessy
Telerik team
 answered on 17 Jul 2012
1 answer
85 views
I am using a hierarchical radgrid and have performance issues.

The grid is 3 levels deep
level 1: 11 columns
level 2: 12 columns.  Nested into a detailTables
level 3 13 columns.  Nested into a panel inside NestedViewTemplate

Because of the performance issue, I did the following:
- Set the HierarchyLoadMode is set to ServerOnDemand.
- Bind server side and if the pageSize is 25, I only take 25 items from the database (I manage the paging myself).
- Removed filters and sorting from level 2 and 3

Each level has custom paging

During my tests, I realized that when binding the 1st level, the header and footer of each child grids were correctly loaded on demand.
However, when expanding the second level,  the header and footer of all 3rd level child grids were initialized at the same time.

The 3 level is inside an invisible panel. 
The panel is set to visible only when it is expanded.
The data of the third level is loaded on demand as expected, but the header and footer is initialized as soon as its parent is expanded.

Is there a way to prevent that ?  I tought the invisible panel was enough to prevent the grid initialization.
Do you have any other suggestion to resolve the performance issue ?
Note: the problem is not visible on IE9, but is always present on IE7.

Thanks
Pavlina
Telerik team
 answered on 17 Jul 2012
9 answers
135 views
Having issues with IE9 clipping or mis-positioning elements in your constrol set. I have attached an example. Everything looks ok in Chrome.

Ivan Zhekov
Telerik team
 answered on 17 Jul 2012
1 answer
63 views
Hallo,

let's say I have 1000 rows. If I group by a specific column I'm getting 10 groups each with 100 rows. Paging is enabled with 10 rows per page.

If I group I want to see all the 10 groups on a single page. Only when I expand a group more when one page is used.

Is there any possibility to get this behavior?

As paging, in conjunction with grouping is implemented, it is not usable today.
Pavlina
Telerik team
 answered on 17 Jul 2012
4 answers
166 views
Please let me know how to group the Radmenu items by headers. I binding the menu with data from SiteMapDataSource
I need to group the items similar to the menu that I see on telerik site

Say in the URL : http://www.telerik.com/community/forums/new-thread.aspx?forumId=250 under the Main Menu item "Products", items of the menu are grouped under a header

 "WEB UI CONTROLS & COMPONENTS",
 "DESKTOP UI CONTROLS & COMPONENTS"
 "DATA TOOLS"

Thanks
Thomas
Top achievements
Rank 1
 answered on 17 Jul 2012
1 answer
100 views
I have a strange thing when entering values in a RadNumericTextbox with and without decimals. I was able to reproduce the behavior with this simple form:
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <telerik:RadScriptManager ID="rcmMain" runat="server"></telerik:RadScriptManager>
    <div>
        <h2>Sample</h2>
         <telerik:RadNumericTextBox ID="txtNumber" runat="server"></telerik:RadNumericTextBox>
         <telerik:RadNumericTextBox ID="txtNumber2" runat="server"></telerik:RadNumericTextBox>
    </div>
    </form>
</body>
</html>
 
To reproduce do the following:
1) In the first textbox enter 2.2 (i have Swedish culture set so comma (,) is my my decimal separator).
2) Using the mouse, click the second textbox.
3) My first textbox now shows 2.20 (and thats what i expected).
4) Click the first textbox again (value selected).
5) Just enter a 2 on the keyboard
6) Click on the second textbox

My first textbox still shows 2.20 but I was expecting 2.00!

This surely cannot be an expected behavior, is there something I am missing?  A property that must be set?

The funny thing is that I can cure this behavior by pressing [ENTER] while in the first textbox. After that all works as expected.

Using v.2012.2.607.40 components.

Anyone got an idea what this is all about?
Milena
Telerik team
 answered on 17 Jul 2012
7 answers
278 views
Hi,

I am using the timeline view to schedule jobs to our users. I need to be able to show the full subject name which can be rather long. I have setup some custom CSS  classes that get applied to appointments with long names. (This can be seen in LongApName.png)

These appointments look fine, until you put two on the same day. Then they can overlap.

In thisTimeline Demo the "Margaret Morrison Main Room" Row has a height of 75px, Where is this set? I believe this could be a workaround to my real problem.

Cheers, Grant Cannan
Andy
Top achievements
Rank 1
Iron
 answered on 17 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?