Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
298 views
Hi,

I'm running into an issue where a radeditor seems to be ignoring the initial height specified, and only updates to the correct height after a post back to the page.  When I look at the page source, I notice the height is set to 286px even though in the aspx page I have it set to be 250px.

Here's the code from the aspx page:
<telerik:RadEditor ID="re1" runat="server" Skin="Office2010Silver" Width="98%" Height="200px"
                TabIndex="10" ToolsFile="~/Content/toolbarContent.xml" 
                EditModes="Design, HTML" ContentAreaCssFile="~/Content/cssEditorGray.min.css"
                ToolbarMode="Default" StripFormattingOptions="MSWordRemoveAll"  />

Here's the line from the page source when I initially access the page:
<div id="ctl00_MainContent_iContent_re1" class="RadEditor Office2010Silver reWrapper" style="height: 286px; width: 98%;" tabindex="10">

Here's the line after I click a button on the page which does a post back:
<div id="ctl00_MainContent_iContent_re1" class="RadEditor Office2010Silver reWrapper" style="height:200px;width:98%;" tabindex="10">

This issue has just started happening in the past few months and was not always like this.  

Please let me know what further information I can provide to assist in resolving this issue.
Thank you!!
Ianko
Telerik team
 answered on 04 Aug 2014
1 answer
161 views
Good Day All 

i have a masterpage and a RadWindow is opened from the content page. But when i maximize the window it only moves within the Content Page space. i will it to be able to move across the page, even on top of masterpage contents. 

Thanks 

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2014
14 answers
1.0K+ views
Hello,
I am trying to Export the data from a radgrid to a pdf.  I have created the CommandItemTemplate below for what I would like to display in the header:

<

CommandItemTemplate>

 

 

    <div style="text-align:left; padding-bottom:8px; float:left;">

 

 

        <asp:Label ID="lblCompanyDetailReport" runat="server" Text="Company Detail Report" Visible="false" Font-Italic="true" Font-        Names="Verdana" Font-Size="10px"></asp:Label><br />

 

 

        <asp:Label ID="lblFilterSetting" runat="server" Visible="false" Font-Italic="true" Font-Names="Verdana" Font-         Size="8px"></asp:Label>

 

 

        <asp:Label ID="lblDateRange" runat="server" Visible="false" Font-Italic="true" Font-Names="Verdana" Font-        Size="8px"></asp:Label>

 

 

    </div>

 

 

</CommandItemTemplate>

When I export my data, it puts the CommandItemTemplate data above the first radgrid column only.  I would like it to extend as far as it needs.  Is this possible?

Also, the exported RadGrid columns are fixed widths (i.e. the total space is divided equally among all columns).  Is it possible to specify widths for each column? 

I appreciate any help you can provide!

Matt

 

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2014
6 answers
80 views

Your second attempt and still totally useless..

Not sure why I wasted time sending stuff to Telerik, when obviously no one takes any notice..

Show lingdatasource get object datasource.
Objectdatasource also does not work, still locks up..

TOTALLY USELESS even as a display gnatt..
Can you please just make this work without crashing and locking up..

After 5 years of promises, I don't think this is too much to ask.


 
Bozhidar
Telerik team
 answered on 04 Aug 2014
4 answers
192 views
I have two dropdownlists on an ascx control (ddlItemCode and ddlItemDescr).
They both have the same data as source. The only difference is the the fist one shows the code and the other one the description of the item. 

In the code behind:

ddlItemCode.Attributes.Add("onChange", "return ddlcodeOnSelectedIndexChange(this,'ddlItemCode');")

and for both lists...
ddlItemxxxx.DataValueField = "Itm_ID"

When the page opens, both lists have Itm_ID = 1853
(so the attached screen image below makes some sense)

On the shown script, I am trying to synchronize the right list (ddlItemDescr), so it selects the item which is selected on left list (ddlItemCode).

As you see on the screen image, the user selects the third entry (Itm_ID = 1857), but right list remains on the first selection. The watch expressions have been updated when the code reached the breakpoint.

In simple words, the command ddlto.val(newvalue) does not work!

Although it sounds stupid, I did try ddlto.val("1857") in the code just to check and still there was no change.

I would appreciate any help...
Dimitrios
Top achievements
Rank 1
 answered on 04 Aug 2014
4 answers
343 views
Hello There,

Let me start by saying I have done extensive searching regarding this issue and the items that I found weren't relevant to me or didn't seem to work.  My issue is that I have a <UserControl>  that I would like to dynamically add to the <NestedViewTemplate> of a RadGrid. The problem is that if I include the UserControl markup inside the NestedViewTemplate, it fires the UserControl events for each row within the RadGrid.  I would like to "Lazy" Load the UserControl upon the User Expanding a row within the RadGrid.  I have read examples of wrapping the UserControl inside an <asp:Panel> and toggling the Panels visibility property, but that doesn't seem to work.  

Could you please give an example of how to do this or a link to an article where this has been accomplished?

I've tried loading the UserControl dynamically, but it then loses the RadGrid's DataBinding Container and the controls inside the UserControl are no longer bound.

Thanks for you help in advance and I look forward to your response.

Chris   
Princy
Top achievements
Rank 2
 answered on 04 Aug 2014
1 answer
121 views
I am trying to upload and insert an image to my radeditor via ImageManager.  Ive got a file size of 2.5mb with dimensions of 2550x3301.  After selecting upload > browsing for and selecting the file then completing upload, the file then appears in directory with a new size of 46kb and dimensions of 232x300.

I dont want any resizing during the process of selecting my image to upload.  However it seems that the file being uploaded is being set to the preview size.

How can I track down where the resizing is concurring and stop this from happening?

using UI for ASP.NET AJAX Q2 2014 for .NET 3.5

I would be happy to provide further information if needed.
Ianko
Telerik team
 answered on 04 Aug 2014
1 answer
151 views
I have a RadDatePicker, where on selection of a date, the date is saved in the DB and the user should get a message that date is saved. The RadDatePicker calls a function on its event OnDateSelected as follows(C#):

radDatePicker.ClientEvents.OnDateSelected = "function(sender, args){SaveDate(sender,args," + PriceDealProposalId + ")}";

The javascript function SaveDate successfully calls a webservice to save the date selected.

function SaveDate(sender, e, id) {      
       if (e.get_newDate() != null) {
           $.ajax({
               url: "/ajaxservice.asmx/SaveSignedDate",
               data: "{priceDealProposalId:" + id + ",proposalDate: " + JSON.stringify(e.get_newDate()) + "}",
               dataType: "json",
               type: "POST",
               contentType: "application/json;charset=utf-8",
               success: function (data) {
                   alert("saved");
               }
           });
       }
   }
The above successfully saves the value and alerts a message. Instead of an alert I want to display a text message near this RadDatePicker control which says "Saved" and disappears in a few seconds. 
For this I added a label and made it invisible as follows:
savedLabel.Attributes.Add("style", "display:none;");
How can I access this label in the success part of the ajax call. On success I want to make the label visible so that user knows the date as saved.
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2014
3 answers
219 views
What I would like to do is have two LinkButton's that will both download the RadGrid into Excel format.  Previously I did have the "ExportCSV" and "ExportToExcel" menu items turned on and the code worked just fine however I needed the names of the downloads to be something else.  One version will be formatted like the RadGrid results and the other will be formatted slightly different (see below).  I was hoping that with option 1 that I could just tie into the RadGrid's ability to export to .XLS but it appears as if I don't have something right.  Can you offer assistance? 

File option 2 I need the data formatted differently would I have to requery the database or can I just manipulate the RadGrid results?

<telerik:RadGrid ID="GridContacts" runat="server" AllowPaging="True"
    AutoGenerateColumns="False" CellSpacing="0" 
    GridLines="None" PageSize="20"
    OnNeedDataSource="GridContacts_NeedDataSource" Visible="true">
    <GroupingSettings CaseSensitive="False" ShowUnGroupButton="false" />
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True"
        ExportOnlyData="True" FileName="MarketingEmailList">
        <Excel AutoFitImages="True" Format="ExcelML" />
        <Csv ColumnDelimiter="VerticalBar" EncloseDataWithQuotes="False" />
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top" 
        IsFilterItemExpanded="true">
        <CommandItemTemplate>
            <asp:LinkButton ID="btnExportPrn" runat="server" CommandName="ExportPrinter" Visible="true"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/DownloadPrinter.png"/>Printer Download</asp:LinkButton>  
            <asp:LinkButton ID="btnExportMarket" runat="server" CommandName="ExportMarketing"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/DownloadMarket.png"/>Marketing Download</asp:LinkButton>  
        </CommandItemTemplate>

Code behind and while running it I see the CommandName is either "ExportPrinter" or "ExportMarketing" and to see if I could get it to work I just invoked the calls to "ConfigureCSVExport" and "ConfigureExcelExport"
Protected Sub RadGrid1_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles GridContacts.ItemCommand
       If e.CommandName = "ExportPrinter" Then
           ConfigureCSVExport()
       ElseIf e.CommandName = "ExportMarketing" Then
           ConfigureExcelExport()
       End If
       'If e.CommandName = Telerik.Web.UI.RadGrid.ExportToCsvCommandName Then
 
 
       'ElseIf e.CommandName = Telerik.Web.UI.RadGrid.ExportToExcelCommandName Then
 
       'End If
   End Sub

Currently the RadGrid displays the data as such

Company Name | Address info | CEO | CFO | Marketing Mgr | Operations Mgr
ABC Company | Main St, my town USA | Bob Smith | Susie Jones | Mr. X

For the "ExportMarketing" this format would work just fine but for the "ExportPrinter" I need the data slightly changed and wondering the best way of going about this.  Need the data to appear like

Bob Smith | ABC Company | Main St, My town USA
Susie Jones | ABC Company | Main St, My town USA
Mr. X | ABC Company | Main St, My town USA























Princy
Top achievements
Rank 2
 answered on 04 Aug 2014
1 answer
152 views
Hi,
I have RadGrid which I exporting to excel and this grid contains 7 columns.All data in columns align in the center.I need data in one column to be align on the left.
How can I do that?

Thanks for your help. 
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?