Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
149 views
I have a combobox that gets a default item set whenever the data for the combobox control is null. For example a combobox with a list of states for the user to select from. If no valid data exists, the user is presented a default item that says "Select State". If valid data exists, the default item is not set and the data value is set to the combobox.

Our combobox is set to autopostback and update a radlistbox of available items to select from. However, if "Select State" is visible in the combobox and the user selects a state, the SelectedIndexChanged event is not fired and as a result, the radlistbox is not filled with the data. However, if the combobox is changed again to a different state, then the event fires. If valid data is the selected item in the combobox and there is no default item, then the event is fired.

Understanding that the DefaultItem isn't part of the indexed items in the combobox, I can *sort of* understand why the event isn't firing, however, that doesn't resolve the issue that I need to postback whenever the user selects a valid item from the combobox.

How can I get a postback whnenver an item is selected in a combobox (not the default item) when the value being changed from is the default item?
Ivan Danchev
Telerik team
 answered on 29 Jun 2015
1 answer
86 views

Hi,

I was adding my style sheet in the client code of my page and my radscheduler looked fine. Then I decided to use RadStyleSheetManager to add my style sheet from the code behind and the radscheduler  in my page lost all of its default styles... Do I need to load them too in addition to my style sheet and in that case how do I do that?

Peter Filipov
Telerik team
 answered on 29 Jun 2015
4 answers
139 views

Hi,

I'm using RadTileList and creating the tiles dynamically based on user inputs. If user clicks on add, we will capture the data and create a tile and will Render in the UI. User can delete a tile, create a new tile with some inputs. We require Drag and Drop functionality and need to store the position of each tile. I'm using the below method to capture the position. ProjectAssetsTileList.GetAllTiles() is giving always "0" on page load. Please suggest a way to persist the TileList Tiles and Order.

 

protected List<DomainDAL.ProjectAsset> CaptureAssetPosition(List<DomainDAL.ProjectAsset> workingProjectAssets)
   {
       if (ProjectAssetsTileList.GetAllTiles().Count > 0)
       {
           foreach (DomainDAL.ProjectAsset asset in workingProjectAssets.Where(x => x.State != (int)Constants.AssetStatus.Deleted))
           {
 
               int position = ProjectAssetsTileList.GetAllTiles().FindIndex(x => x.Name == asset.AssetId.ToString());
               asset.SequenceNumber = position;
           }
       }
       List<DomainDAL.ProjectAsset> sorted = workingProjectAssets.OrderBy(x => x.SequenceNumber).ToList();
       return sorted;
   }

 

 

Marin Bratanov
Telerik team
 answered on 29 Jun 2015
4 answers
80 views

Hello,

I have a problem with show data in locked column on Internet Explorer 11. The problem appear for example when I expand some row or I added new to structure. When I use Chrome or Mozzila treelist behave good. Has anyone idea how fix this problem?

Thanks.

Mariusz
Top achievements
Rank 1
 answered on 29 Jun 2015
1 answer
162 views

Hello Team,

We are using RadAsyncUplaod to select Multiple Files and save it to Azure Blob Storage on click of upload button, The functionality which we want to achieve is to encrypt the File on selection before saving it to Temporary folder.

Let me know how to achieve this.

Regards,

Ruchi

Peter Filipov
Telerik team
 answered on 29 Jun 2015
1 answer
305 views

Hi,

I have a requirement to display a radwindow for every selected row in the radgrid. The content of the window is different for each row.
When I select multiple rows and click on a button, I need to display the radwindow one after the other. For example, if I select 5 rows and click on the button, I need to display the window 5 times.

In the button click event, I have the below code. 

foreach (GridDataItem item in grid.SelectedItems)
{
    window.VisibleOnPageLoad = true;
    // Load the content for the window
}
However, the window gets loaded only once after completion of the foreach loop. 

I also tried setting the Visible property of the window instead of using VisibleOnPageLoad. But in this case, the window is not displayed at all. 
Is there a way to display the window first and then continue execution of foreach loop?

Thanks in advance.

Regards,
Sowmya

Konstantin Dikov
Telerik team
 answered on 29 Jun 2015
4 answers
98 views

I am trying to implement Persistence Framework for RadMonthyYearPicker Control. But is is showing following error.

The control of Telerik.Web.UI.RadMonthYearPicker could not be persisted. Please review the online documetation for the supported controlsTelerik.

Tried using the following Versions: 2014.3.1024.35 and 2015.1.401.40

 

Maria Ilieva
Telerik team
 answered on 29 Jun 2015
1 answer
143 views

Hello,

 I am developing ASP.NET Usercontrol which includes a RadListView with ASP.NET DataPager.

 

I tried the same example shown it following page.

 http://demos.telerik.com/aspnet-ajax/datapager/examples/raddatapagervsdatapager/defaultcs.aspx

 

I am binding the RedListView in Page_Load event of the Usercontrol with checking the IsPostBack == false value.

When I place the Usercontrol in Page and run the application. It display the first page perfectly but when I change the Page using the pager the RadListView control will be hide and all data is cleared out.

 I also tried by removing the IsPostBack condition and found that when I click on 2nd page it display the double records then the defined Pagesize. Same with the 3rd page, it display the 3 times more records then the pagesize.

 

I replaced the ASP.NET DataPager with the RadDataPager but still I am facing the issue.

 

Any urgent help would be h​highly appreciated.

 

Thanks,

Jaydeep Jadav

 

Kostadin
Telerik team
 answered on 29 Jun 2015
2 answers
83 views

I have been trawling for an answer to this question but nothing is coming up.

In code behind with a RadToolBar I can use

 

GetCheckedGroupButton()

 

to identify which item is "clicked"

 

I cannot find any reference to a javascript version of this?

 is there one?

thanks

jON

 

Jon
Top achievements
Rank 1
 answered on 28 Jun 2015
1 answer
56 views

Hello,

I just downloaded the latest version of UI for ASP.Net Ajax v2015.2.623.45 BTW, I also have the .net framework 4.5.1 if you need that info.

Since downloading that new Telerik version I noticed that the Radgrid Paging is now broken. If I turn the paging off, the grid loads fine. However if I turn the paging on and run very basic code like below, I get a server error talking about a key that cannot be null. It does not tell me which key, but I can see it's some sort of a dictionary entry that has a key that's null. I no longer have the exact error verbiage. I have since reverted back to the prior version of v2015.1.401.45 and the paging is now working again.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="RadGridAutomaticCrudOperations.aspx.vb"
    Inherits="RadGridAutomaticCrudOperations" %>
 
<!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" CdnSettings-TelerikCdn="Disabled">
            <Scripts>
                <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>
 
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="DataSource1">
 
                <PagerStyle Mode="NextPrevAndNumeric" />
 
                <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" AllowPaging="true" PageSize="2"
                    DataSourceID="DataSource1" HorizontalAlign="NotSet"
                    AutoGenerateColumns="True">
                </MasterTableView>
 
            </telerik:RadGrid>
 
        <asp:SqlDataSource SelectCommand=
            "select 'ABC' as Col1, 'DEF' as Col2
            union
            select '123' as Col1, '456' as Col2
            union
            select 'ZZZ' as Col1, 'QQQ' as Col2
            union
            select 'PPP' as Col1, 'UUU' as Col2
            union
            select 'DDD' as Col1, 'XXX' as Col2"
 
            ConnectionString="<%$ ConnectionStrings:Conn %>"
            ID="DataSource1" runat="server"></asp:SqlDataSource>
 
    </form>
 
</body>
 
</html>
nString="<%$ ConnectionStrings:Conn %>"
ID="DataSource1" runat="server"></asp:SqlDataSource>

    </form>

</body>

</html>
Vasil
Top achievements
Rank 1
 answered on 27 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?