Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
245 views
Hi I want to show Radwindow on submit click. can any one please send me server side code on click event.

Thanks,
Naresh
Naresh
Top achievements
Rank 1
 answered on 05 Dec 2013
3 answers
129 views
We currently have a series of hierarchical radgrids that we'd like to replace with the treelist control.  I've gotten most of the basic work done w/ regard to porting from the grid to the treelist, but I can't locate information on how to save / load user settings (e.g., column size, sort order, etc.).  (We use the TelerikGridHelper for our rad grids and it works like a champ.)  Is there an equivalent tool for saving the treelist settings?

Also, we provide our users with the ability to group columns, sort columns and show/hide columns in the radgrid using the header context menu.  How is this done for a tree list?  Again, I've looked for it in the documentation, but I'm either overlooking it or it's not there.

thanks -
matt
Eyup
Telerik team
 answered on 05 Dec 2013
3 answers
138 views
RADUpload is not displaying in IE11 browsers. I have already tried the patch, 4.5 .net upgrade and the browser file but still nothing.

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/incorrectly-rendered-webpage-when-using-internet-explorer-11.aspx

We are using Q1 2013 controls.

When in IE11, if I change the user agent to IE10 or below it works fine. Is there script in your control that checks for the user agent?

What am I missing?

Thanks,
jamie
Hristo Valyavicharski
Telerik team
 answered on 05 Dec 2013
3 answers
259 views
I have a grid and a button on my page. On click of the button i reload my grid. I have both of them specified in my AJAXSettings.
I use custom skin for my grid. However, after the AJAX update the skin is overridden from the webresource.axd.

<telerik:RadAjaxManagerProxy ID="RadAJAXManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="_btnGo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgBalances" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
Viktor Tachev
Telerik team
 answered on 05 Dec 2013
1 answer
65 views
Could I have or be pointed to a list of the discontinued controls during the 2013 release timeframe?

Thanks
Kyle Russell
Telerik team
 answered on 05 Dec 2013
5 answers
145 views
Hi,
    As a newbie I'm having trouble getting started with the site map control. Just as a working example for myself, I tried to setup an ultra simple breadcrumb but I failed so I need some help. My page looks like this:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="user_Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!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"></telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all" DecorationZoneID="rfd-demo-zone"></telerik:RadFormDecorator>
 
        <div>
            <telerik:RadSiteMap runat="server" ID="RadSiteMap1" DataSourceID="SqlDataSource1"
                    DataFieldID="NodeNo" DataFieldParentID="ParentNodeNo"
                    DataTextField="NodeText" DataNavigateUrlField="NodeURL">
                <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText="/" Layout="Flow" />
            </telerik:RadSiteMap>
 
            <asp:SqlDataSource runat="server" ID="SqlDataSource1"
                ConnectionString="<%$ ConnectionStrings:RAMtrack %>"
                ProviderName="<%$ ConnectionStrings:RAMtrack.ProviderName %>"
                SelectCommand="SELECT NodeNo, ParentNodeNo, NodeText, NodeURL FROM tbl_SiteMap">
            </asp:SqlDataSource>
     
        </div>
    </form>
</body>
</html>

The table (tbl_SiteMap) in my data source looks like this:
NodeNo    ParentNodeNo    NodeText    NodeURL
1                0                         MainMenu    user/MainMenu.aspx
2                1                         Logbook       user/Logbook.aspx

When I run the page, I get this error: "This constraint cannot be enabled as not all values have corresponding parent values."
I've only got two nodes, they both have an entry for Parent Node so I can't tell what the problem is. Can you help?

Regards

Geoff

Geoff
Top achievements
Rank 1
 answered on 05 Dec 2013
4 answers
129 views
Whenever Template is used in grid data is displayed wrongly on checking the page found that the <table> ,<tr>,<td> elements are missing
If I use Inplace edit the grid is displayed correctly.





<telerik:RadGrid ID="gvCountry" runat="server" CssClass="RadGrid" GridLines="None" ShowFooter="True" ShowStatusBar="True" CellSpacing="0" VirtualItemCount="100000"

PageSize="20" AllowPaging="True" AllowCustomPaging="true" AlternatingItemStyle-BackColor="#FEE4EFFF" AutoGenerateColumns="False" AllowSorting="True"

AllowFilteringByColumn="True" OnInsertCommand="gvCountry_ItemInserted" OnUpdateCommand="gvCountry_ItemUpdated" OnDeleteCommand="gvCountry_ItemDeleted"

OnItemDataBound="gvCountry_ItemDataBound" OnItemCreated= "gvCountry_ItemCreated" OnItemCommand="gvCountry_ItemCommand" OnNeedDataSource="gvCountry_NeedDataSource"

OnDetailTableDataBind="gvCountry_DetailTableDataBind" OnGridExporting="gvCountry_GridExporting" OnExcelMLExportStylesCreated="gvCountry_ExcelMLExportStylesCreated" GroupingSettings-CaseSensitive="False">

<MasterTableView CommandItemDisplay="Top" DataKeyNames="CountryId" Name="Country" EditMode="EditForms" >

<CommandItemSettings ShowExportToExcelButton="True" ShowExportToPdfButton="True"/>

<DetailTables>

<telerik:GridTableView DataKeyNames="CityId" Name="City" CommandItemDisplay="Top" Width="100%" EditMode="EditForms" PageSize="10" VirtualItemCount="1000"

AllowPaging="True" AllowCustomPaging="true">

<EditFormSettings EditFormType="Template">

<FormTemplate>

<table id="CityEditTable" style="border-collapse: collapse; border-spacing: 0.2em; position:static;

*border-collapse: expression('separate', cellSpacing = '0.1em'); width: 100%; border: 0;">

<tbody>

<tr class="EditFormHeader">

<td colspan="4" style="font-size: small">

<b>City</b>

</td>

</tr>

<tr>

<td> <asp:Label ID="dlglblDistrict" runat="server" Text="District"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtDistrict" runat="server" Text='<%# Bind("District") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblCityName" runat="server" Text="CityName"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtCityName" runat="server" Text='<%# Bind("CityName") %>'></asp:TextBox> </td>

</tr>

<tr>

<td style="text-align: center" colspan="4">

<asp:LinkButton ID="btnUpdateDetail" runat="server" CausesValidation="true" Text="Insert" />

<asp:LinkButton ID="btnCancelDetail" CommandName="Cancel" CausesValidation="false" Text="Cancel" runat="server" />

</td>

</tr>

</tbody>

</table>

</FormTemplate>

</EditFormSettings>

<Columns>

<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="reg_editDetail" ItemStyle-HorizontalAlign="Right" CommandName="Edit" ImageUrl="~/Content/Images/Edit.gif">

<HeaderStyle Width="2%" />

<ItemStyle HorizontalAlign="Right"></ItemStyle>

</telerik:GridButtonColumn>

<telerik:GridBoundColumn SortExpression="District" HeaderText="District" HeaderButtonType="TextButton" DataField="District" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn SortExpression="CityName" HeaderText="CityName" HeaderButtonType="TextButton" DataField="CityName" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" ConfirmDialogType="RadWindow"

ConfirmText="Are you sure you want to delete this registration?" ImageUrl="~/Content/Images/Delete.gif">

<HeaderStyle Width="2%" />

</telerik:GridButtonColumn>

</Columns>

</telerik:GridTableView>

</DetailTables>

<EditFormSettings EditFormType="Template" >

<FormTemplate>

<table id="MasterEditTable" style="position:static; border-collapse: collapse; border-spacing: 0.2em; *border-collapse: expression('separate', cellSpacing = '0.1em'); width: 98%;">

<tbody>

<tr class="EditFormHeader">

<td colspan="6" style="font-size: small">

<b>Country Details</b>

</td>

</tr>

<tr>

<td> <asp:Label ID="dlglblName" runat="server" Text="Name"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtName" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblArabicName" runat="server" Text="وطن"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtArabicName" runat="server" Text='<%# Bind("ArabicName") %>'></asp:TextBox> </td>

<td></td><td></td>

</tr>

<tr>

<td> <asp:Label ID="dlglblNationality" runat="server" Text="Nationality"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtNationality" runat="server" Text='<%# Bind("Nationality") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblArabicNationality" runat="server" Text="جنسية"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtArabicNationality" runat="server" Text='<%# Bind("ArabicNationality") %>'></asp:TextBox> </td>

<td></td><td></td>

</tr>

<tr>

<td> <asp:Label ID="dlglblCurrencyCode" runat="server" Text="CurrencyCode" ></asp:Label> </td>

<td> <asp:TextBox ID="dltxtCurrencyCode" runat="server" Text='<%# Bind("CurrencyCode") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblCurrencyName" runat="server" Text="Currency" ></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtCurrencyName" runat="server" Text='<%# Bind("CurrencyName") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblArabicCurrencyName" runat="server" Text="عملة"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtArabicCurrencyName" runat="server" Text='<%# Bind("ArabicCurrencyName") %>'></asp:TextBox> </td>

</tr>

<tr>

<td> <asp:Label ID="dlglblContinent" runat="server" Text="Continent" ></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtContinent" runat="server" Text='<%# Bind("Continent") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblRegion" runat="server" Text="Region" ></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtRegion" runat="server" Text='<%# Bind("Region") %>'></asp:TextBox> </td>

<td> <asp:Label ID="dlglblGovernmentForm" runat="server" Text="GovernmentForm"></asp:Label> </td>

<td> <asp:TextBox ID="dlgtxtGovernmentForm" runat="server" Text='<%# Bind("GovernmentForm") %>'></asp:TextBox> </td>

</tr>

<tr>

<td style="text-align: center" colspan="6">

<asp:LinkButton ID="btnUpdate" runat="server" CausesValidation="true" Text="Insert" />

<asp:LinkButton ID="btnCancel" CommandName="Cancel" CausesValidation="false" Text="Cancel" runat="server" />

</td>

</tr>

</tbody>

</table>

</FormTemplate>

</EditFormSettings>

<Columns>

<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="reg_edit" ItemStyle-HorizontalAlign="Right" CommandName="Edit" ImageUrl="~/Content/Images/Edit.gif">

<HeaderStyle Width="2%" />

<ItemStyle HorizontalAlign="Right"></ItemStyle>

</telerik:GridButtonColumn>

<telerik:GridBoundColumn UniqueName="CountryId" HeaderText="ID" DataField="CountryId" ShowFilterIcon="false">

<HeaderStyle ForeColor="Silver" Width="20px"></HeaderStyle>

<ItemStyle ForeColor="Gray"></ItemStyle>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="Name" HeaderText="Name" DataField="Name" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="ArabicName" HeaderText="وطن" DataField="ArabicName" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="Nationality" HeaderText="Nationality" DataField="Nationality" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="ArabicNationality" HeaderText="جنسية" DataField="ArabicNationality" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="CurrencyCode" HeaderText="Code" DataField="CurrencyCode" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="Currency" HeaderText="Currency" DataField="CurrencyName" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="ArabicCurrencyName" HeaderText="عملة" DataField="ArabicCurrencyName" AutoPostBackOnFilter="true"

CurrentFilterFunction="Contains" ShowFilterIcon="false">

</telerik:GridBoundColumn>

<telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" ConfirmDialogType="RadWindow" ImageUrl="~/Content/Images/Delete.gif"

ConfirmText="Are you sure you want to delete this registration?">

<HeaderStyle Width="2%" />

</telerik:GridButtonColumn>

<telerik:GridBoundColumn UniqueName="Continent" HeaderText="Continent" DataField="Continent" AllowFiltering="false" Visible="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="Region" HeaderText="Region" DataField="Region" AllowFiltering="false" Visible="false">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="GovernmentForm" HeaderText="GovernmentForm" DataField="GovernmentForm" AllowFiltering="false" Visible="false">

</telerik:GridBoundColumn>

</Columns>

<NoRecordsTemplate> <div>There are no records to display</div> </NoRecordsTemplate>

</MasterTableView>

<ExportSettings HideStructureColumns="true" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">

<Excel FileExtension="xlsx" Format="ExcelML" />

<Csv ColumnDelimiter="VerticalBar" />

</ExportSettings>

<ClientSettings>

<ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>

</ClientSettings>

</telerik:RadGrid>

Khan
Top achievements
Rank 2
 answered on 05 Dec 2013
3 answers
177 views
I'd like to check the first few bytes of a file that is being uploaded to ensure that it is actually of the type specified in its file exstension.
Is there any built-in functionality  or recommended way of doing this with a RadAsyncUpload control?
Thanks!
Plamen
Telerik team
 answered on 05 Dec 2013
4 answers
277 views
Hi

I have radpanelbar inside RadSlidingPanel. I have 2 RadPanelItem which has Itemtemplate. I want both to show as collapsed but both showing expanded when control loads. I tried ExpandMode as per demo but still no collapsible icon showing up for any radpanel item. 

<telerik:RadSlidingPane ID="RadSlidingPane2" runat="server" Width="300px" Title="Add Filters"
                MinWidth="225">
                <telerik:RadPanelBar runat="server" ExpandMode="FullExpandedItem" Width="100%" Height="150">
                    <Items>
                        <telerik:RadPanelItem runat="server" Text="Filter By">
                            <ItemTemplate>
                          </ItemTemplate>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem runat="server" Text="Filter By SQL Criteria">
                            <ItemTemplate>
                         </ItemTemplate>
                        </telerik:RadPanelItem>
                   </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelBar>
            </telerik:RadSlidingPane>
Boyan Dimitrov
Telerik team
 answered on 05 Dec 2013
1 answer
174 views
hi i want to align the RadTab Text vertically "Middle"

<telerik:RadTabStrip ID="setupTab" CausesValidation="false"  Width="100%" Skin="" EnableEmbeddedSkins="false"
                                                        MultiPageID="setupMP" Orientation="VerticalLeft" SelectedIndex="0" runat="server">
                                                        <Tabs>
                                                            <telerik:RadTab  BackColor="#F3F0EB" ForeColor="Black" SelectedCssClass="setupTabSelected"
                                                                Height="30px" Font-Size="14px" Text="Organization Settings" Value="os">
                                                            </telerik:RadTab>
                                                            <telerik:RadTab BackColor="#F3F0EB" ForeColor="Black" SelectedCssClass="setupTabSelected"
                                                                Height="30px" Font-Size="14px" Text="Users & Groups" Value="ug">
                                                            </telerik:RadTab>
                                                        </Tabs>
                                                    </telerik:RadTabStrip>

.setupTabSelected
 {
     background-color: #FFFFFF !important;
 }
Shinu
Top achievements
Rank 2
 answered on 05 Dec 2013
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?