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

I was able to get this working in a different repo for another client.  I copied the code to the other repo and get the red X.  I have my container and keys set

<telerik:RadCloudUpload ID="CloudUpload" runat="server" MultipleFileSelection="Automatic" HttpHandlerUrl="~/UploadToCustomFolderHandler.cs" 
      OnFileUploaded="CloudUpload_FileUploaded" AllowedFileExtensions="xlsx,xls,doc,pdf,docx,png,tiff" ProviderType="Azure">
</telerik:RadCloudUpload> 

 

 

Mark
Top achievements
Rank 1
Veteran
 answered on 13 Apr 2020
3 answers
471 views

Hi,

Master Grid :

<telerik:RadGrid Width="100%" ExportSettings-Excel-DefaultCellAlignment="Left"
    Height="600px" ClientSettings-Scrolling-AllowScroll="true"
    RenderMode="Lightweight" ID="RgHotelDomestic">
    <ClientSettings Selecting-AllowRowSelect="true"
        EnableRowHoverStyle="false"
        EnablePostBackOnRowClick="false">
        <ClientEvents OnRowSelected="RowSelected" />
    </ClientSettings>
</telerik:RadGrid>

 

Popup Editor :

<telerik:RadWindow ID="RwEditHotelAllowance" runat="server" Width="600px" Height="600px"
            Modal="true" KeepInScreenBounds="true" Title="Edit Hotel Allowance">
            <ContentTemplate>
    <telerik:RadGrid ID="RgHotelDomesticEdit" runat="server"
        AutoGenerateColumns="false"
        CellSpacing="-1" GridLines="Both"
        OnNeedDataSource="RgHotelDomesticEdit_NeedDataSource"
        OnItemDataBound="RgHotelDomesticEdit_ItemDataBound" Height="400px">
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2"></Scrolling>
    </ClientSettings>
    </ContentTemplate>
</telerik:RadWindow>

 

Js calling Popup :

<script>
    function RowSelected(sender, eventArgs) {
        debugger;
        var grid = sender;
        mygrid = grid;
        //console.log("grid ", grid);
        //console.log("mygrid2 ", mygrid);
        var MasterTable = grid.get_masterTableView();
        var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
        //console.log("row", row);
 
        var cell1 = MasterTable.getCellByColumnUniqueName(row, "CityId");
        var cell2 = MasterTable.getCellByColumnUniqueName(row, "City");
        document.getElementById("<%= EditCityId.ClientID %>").value = cell1.textContent;
        document.getElementById("<%= EditCityName.ClientID %>").value = cell2.textContent;
        document.getElementById("<%= EditCityName.ClientID %>").value = cell2.textContent;
 
        var oWnd = $find("<%= RwEditHotelAllowance.ClientID %>");
        oWnd.show();
    }
</script>

 

Server Side :

protected void RgHotelDomesticEdit_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    try
    {
        //1. RgHotelDomesticEdit.DataSource = GetDT(HotelParameter,Convert.ToInt32(EditCityId.Value));
         
        RgHotelDomesticEdit.DataSource = GetDT(HotelParameter);    
    }
    catch (Exception ex)
    {
        throw;  
    }
}

 

Is there any way to trigger OnNeedDataSource not from page load, but from client event Popup Windows, because i need to pass paramaeter CityId (based on clicked Edit Item in master page).

 

Regard,

 

Ragil

 

 

 

 

Doncho
Telerik team
 answered on 13 Apr 2020
10 answers
1.1K+ views

I have a problem that I've been trying to research for the past couple of days.   My project involves 

a PageLayout with multiple LayoutRows and LayoutColumns.    What I'm trying to accomplish is

to programmatically set the visible property of one of my LayoutRows to "True" when a certain

button is clicked.  I want to do this client side via javascript.   Is this possible?   Here is a snipet 

of my code:

               <telerik:LayoutRow ID="LayoutRow_SelectNote" Visible="false">      
                    <Columns>
                        <telerik:LayoutColumn Span="10">
                            Select Orders To Recap From Below List:
                        </telerik:LayoutColumn>
                    </Columns>
                </telerik:LayoutRow>

n/a
Top achievements
Rank 1
 answered on 13 Apr 2020
1 answer
183 views

Hello, all.

Just getting started with the RadMediaPlayer on a tight-deadline project, and I'm looking over the documentation, and I must be simply missing something.

I've got a playlist set up, and another control outside of the player -- a "featured video" display -- knows an index of an item within the playlist.  I want to click the button and immediately go to the beginning of that video, client-side if possible.

Thanks in advance.


Vessy
Telerik team
 answered on 13 Apr 2020
3 answers
1.1K+ views
Hello Guys!
I have a problem, I've a RadDateTimePicker , but the format date its something like this 19/02/2014 12:00:00 a.m. but the follow format: 2014-02-18 11:00:26.293
anyone knows How Can I do this?
thanks and regards,
Luis.
Doncho
Telerik team
 answered on 10 Apr 2020
3 answers
263 views

Hello,

 

For a while now we are experiencing strange behavior when working with MacOS + Chrome combined.

 

On Windows + Chrome, when the dialog of the browser is set to small to force a horizontal scrollbar to appear, this works correctly

 

On MacOS + Chrome in the same situation the horizontal scrollbar does NOT appear.

Other browsers like FireFox do not show this behavior.

 

The issue can be seen in your own demo here:

https://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

I included a screenshot showing the difference between Windows and MacOS, both using Chrome.

This is the same issue we are experiencing in our own product.

Are there any settings on the grid we can try to make the horizontal scrollbar visible?

We hope to hear form you soon.

Kind Regards,
Thinkwise

Attila Antal
Telerik team
 answered on 10 Apr 2020
4 answers
622 views
HI..
     
I am using radcombobox in my project, I want to know how do I get the Keypress event of the Radcombobox as I want, when user selects the value from radcombo and hits the Enter Key from keyboard then it should work as same as when user presses select button.
      Please reply as early as possible.
      Thank You.
Doncho
Telerik team
 answered on 10 Apr 2020
1 answer
1.2K+ views

Hi, I am using Telerik.Web.Spreadsheet to load an Excel sheet.  I would like to return the Excel sheet as a datatable, I cant see a property on how to do this.  Any ideas would be much appreciated.  Below is my code thus far:

        Dim ExcelPath As String = "C:\Test\Test.xlsx"
        Dim WorkBook As Telerik.Web.Spreadsheet.Workbook = Telerik.Web.Spreadsheet.Workbook.Load(ExcelPath)
        Dim ws As Telerik.Web.Spreadsheet.Worksheet = WorkBook.Sheets(0)

Many thanks in advance

 


Peter Milchev
Telerik team
 answered on 10 Apr 2020
1 answer
172 views

I have 4 Comboboxes on my pages, I want each of them to have same properties like

EnableAutomaticLoadOnDemand="true"

EnableVirtualScrolling="true"

Filter="Contains"

ItemsPerRequest="15"

MarkFirstMatch="True"

Skin="Default"

EnableLoadOnDemand="True"

ShowMoreResultsBox="True"

 

How can I achieve it without having to write same properties for each of them?

Doncho
Telerik team
 answered on 09 Apr 2020
2 answers
155 views

I have two formatting issues represented in attachements

1) Name of the uploaded file and 'remove' label do not align

2) If file name is too long it drops 'remove' label to the next line. My preference would be to limit displayed file name to particular length

 

Thank you

 

 

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 09 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?