Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
203 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
355 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
129 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
158 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
230 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
159 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
2 answers
98 views
Is it possible to superimpose a data entry form over the ImageGallery (and "float" it using responsive techniques)?  I have attached a file with a sample of what I am asking about.

If this is possible, any starting example, however simplistic, would be most helpful.

Thanks in advance for any assistance!

Lynn
winston
Top achievements
Rank 1
 answered on 03 Aug 2014
6 answers
131 views
Hi,

Unless I’m missing something obvious I can’t seem to find
a way to expand a treeview to a particular node?


Please advise?

TIA
Doug
Top achievements
Rank 1
 answered on 01 Aug 2014
2 answers
275 views
Hi,

Given a node is it possible to get the value of the root node?

1
    222
    333
        888
5
    555
    444

for exmaple if I was on 888 I need to be able to find 1, likewise if I was on 444 I need to be able to find 5

TIA.
Doug
Top achievements
Rank 1
 answered on 01 Aug 2014
14 answers
1.9K+ views
hello ,
i am using radgrid and i would like to set a default insert value at bounded column value .but in insert mode the defualt value didn't set to the text box in edit form.. 
please help me to find out the issue. 
shervinrv
Top achievements
Rank 1
 answered on 01 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?