Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
Referring to this thread:

http://www.telerik.com/community/forums/aspnet/calendar/server-validation-of-raddatepicker.aspx

Has this changed in any builds since 2008? We have our own server-side classes with property decorations that handle validation and would like to use it for our validation and error-handling. We want to use the date picker to allow selection but handle the validation ourselves, server-side.

Thanks for any insights.
Tsvetina
Telerik team
 answered on 05 Jan 2012
2 answers
134 views
I cannot get the detail view of a nested table to view the correct relational data.  I think it's because of the way I am binding the data, but I am not sure what I am doing wrong.  I followed the examples online.  

Thanks so much for any help.

Here is my code:
<%@ Page Language="C#" Title="Book Of Formulas" MasterPageFile="~/BoF.master" AutoEventWireup="true"%>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ContentPlaceHolderID="PageContent" runat="server">
      
         
        <h2>NestlĂ© Book Of Formulas</h2>
        <telerik:RadGrid runat="server" ID="RadGrid1" DataSourceID="LinqDataSource1" AllowAutomaticUpdates="false"
                AllowAutomaticInserts="false" AllowAutomaticDeletes="True" AllowFilteringByColumn="True"
            AutoGenerateColumns="False" EnableLinqExpressions="false" AllowSorting="true"
                AllowPaging="True" CellSpacing="0" GridLines="None">
        <ClientSettings EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
                <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" AutoGenerateColumns="False" DataSourceID="LinqDataSource1" DataKeyNames="routes_pk"
                    RetrieveDataTypeFromFirstItem="true" 
                    AllowPaging="true">
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                    <Columns>
                    <telerik:GridBoundColumn DataField="RouteNumber"  HeaderText="Route Number"
                            DataType="System.Int32" FilterControlAltText="Filter RouteNumber column"
                            SortExpression="RouteNumber" UniqueName="RouteNumber" AutoPostBackOnFilter="true" ShowFilterIcon="false"/>
                     <telerik:GridBoundColumn DataField="Region"
                        FilterControlAltText="Filter Region column" HeaderText="Region"
                        SortExpression="Region" UniqueName="Region">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Area"
                        FilterControlAltText="Filter Area column" HeaderText="Area"
                        SortExpression="Area" UniqueName="Area">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="District"
                        FilterControlAltText="Filter District column" HeaderText="District"
                        SortExpression="District" UniqueName="District">
                    </telerik:GridBoundColumn>
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView DataSourceID="LinqDataSource2" AutoGenerateColumns="False" DataKeyNames="routes_pk_fk" AllowPaging="false"
                            Width="100%" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="PopUp">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="routes_pk_fk" MasterKeyField="routes_pk" />
                            </ParentTableRelation>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                                <telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" />
                                <telerik:GridBoundColumn DataField="WeeklyBase" HeaderText="Weekly Base" />
                                <telerik:GridBoundColumn DataField="CommissionRate" HeaderText="CommissionRate" />
                                 
                                <telerik:GridBoundColumn DataField="VROT" HeaderText="VROT" />
                                <telerik:GridBoundColumn DataField="RoutePremium" HeaderText="Route Premium" />
                                <telerik:GridBoundColumn DataField="ThreeByTwo" HeaderText="3x2" />
                                <telerik:GridBoundColumn DataField="Depot" Visible="false" HeaderText="Depot" />
                                <telerik:GridBoundColumn DataField="Market" Visible="false" HeaderText="Market" />
                                <telerik:GridBoundColumn DataField="Comments" Visible="false" HeaderText="Comments"/>
                                <telerik:GridBoundColumn DataField="RouteType" Visible="false" HeaderText="Route Type" />
                                <telerik:GridBoundColumn DataField="Incentive" Visible="false" HeaderText="Incentive" />
                                <telerik:GridBoundColumn DataField="Format" Visible="false" HeaderText="Format" />
                                <telerik:GridBoundColumn DataField="Band" Visible="false" HeaderText="Band" />
                                <telerik:GridBoundColumn DataField="MarketTarget" Visible="false" HeaderText="Market Target" />
                                <telerik:GridBoundColumn DataField="Region" Visible="false" HeaderText="Region" />
                                <telerik:GridBoundColumn DataField="Area" Visible="false" HeaderText="Area" />
                                <telerik:GridBoundColumn DataField="District" Visible="false" HeaderText="District" />
                                <telerik:GridBoundColumn DataField="RouteTarget" Visible="false" HeaderText="Route Target" />
                                <telerik:GridBoundColumn DataField="PercentFromMarketTarget" Visible="false" HeaderText="PercentFromMarketTarget" />
                                <telerik:GridBoundColumn DataField="StartDate" Visible="false" HeaderText="Start Date" />
                                <telerik:GridBoundColumn DataField="EndDate" Visible="false" HeaderText="End Date" />
                                <telerik:GridButtonColumn ConfirmText="Delete this route?" ConfirmDialogType="RadWindow"
                                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
                            </Columns>
                           <EditFormSettings ColumnNumber="3" CaptionFormatString="Edit information for route with ID {0}"
                                         CaptionDataField="RouteNumber">
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" />
                <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"
                    Height="110px" Width="100%" />
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>
                <EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
                <FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
            </EditFormSettings>
 
<PagerStyle AlwaysVisible="True"></PagerStyle>
                        </telerik:GridTableView>
                    </DetailTables>
                    <EditFormSettings>
                        <EditColumn ButtonType="ImageButton" />
                        <PopUpSettings Modal="true" />
                    </EditFormSettings>
 
<PagerStyle AlwaysVisible="True"></PagerStyle>
                </MasterTableView>
                <PagerStyle AlwaysVisible="true" />
 
<FilterMenu EnableImageSprites="False">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</HeaderContextMenu>
            </telerik:RadGrid>
        
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="BoFLinqDataContext"
EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="view_routes_radrs" >
            </asp:LinqDataSource>
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="BoFLinqDataContext"
EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="tbl_route_informations"
Where="routes_pk_fk == @routes_pk">
                <WhereParameters>
                   <asp:Parameter Name="routes_pk"  Type="Int32" DefaultValue="2021" />
                 </WhereParameters>
            </asp:LinqDataSource>
 </asp:Content>
Kaveh
Top achievements
Rank 1
 answered on 05 Jan 2012
1 answer
147 views

Hello.  Here is my situation. 

1.  I have a webform named CUSTOMERS.ASPX, it has an AJAX PROXY CONTROL ON IT.  It uses a master page named default.master that has the it has an AJAX CONTROL MANAGER CONTROL on it.

2. This web form (CUSTOMERS.ASPX) has a radTabStrip on it

3. This web form (CUSTOMERS.ASPX) has a radMultipage on it (that is NOT hooked to the tabstrip to switch pageview when tab is clicked)

4. On one of the pageviews of the radmultipage, there is a custom control (GRID.ASCX) it has an ID of grdAllCustomers.

5.  The GRID.ASCX contains a radgrid control on it and an also has AJAX PROXY control on it.  The radgrid is set to autopostback on rowclick.  I use the item_command event to capture rowclicks server side.

Symptom:
when I click a row in the radgrid (which in the GRID.ASCX control), it fires the item_command event in that control.  I then raise that event using raiseevent so that it raises it in the customers.aspx page.  This works, but when I try to change the active tab of the radtab control (which is inside the customers.aspx page), the tab control does not update.

It is strange that in the ajax proxy control on the customers.aspx page, I cannot see the grdAllCustomers custom control.  I would think that I would need to ajaxify the grdAllCustomers control in the customers.aspx page (using the ajax proxy).  But the control is not there.  If i try to ajaxify the control manually by setting up the control in the ajax proxy in the HTML markup but then i get a javascript error.

Am i missing something?  The custom control and the content page and the master page are all blended together into a single page, so the ajax should work and I should be able update the controls during the ajax partial postback - right? 

Tsvetina
Telerik team
 answered on 05 Jan 2012
4 answers
95 views
Dear Friends,

Java Script is disabled in browser, Rad Controls won't working. any other way for working rad controls with out java script enabled.


thanks
-vinoth
Vinoth Arun
Top achievements
Rank 2
 answered on 05 Jan 2012
2 answers
132 views
hi i want to add hiddenvalue with RadTextbox
one of my webpage i m using html input text , i use the name property to add hidden value
mean user couldn't see the value

but in the RadTextbox i couldn't set name property
if i set with Attributes.Add("name", something)
the name property automatcally changed to id

is there any other way to add hiddenvalue related to that particular RadTextbox
Johnny
Top achievements
Rank 2
 answered on 05 Jan 2012
5 answers
67 views
I have a Radgrid with almost 7000 items. So when i click on the export to excel button, it takes quite some time before the file is created and the download message appears.

So i thought on making an loading screen. I've used ajax loading panel. The problem i have is that when i click the export button it triggers the loading panel, but after the download message appears, it stay's "on".... I think it's because the update control (the grid) isn't been updated....

I've search and search, but i can't seem to find a work around this or even an other way to achieve this.

Thanks in advance for the help!
Daniel
Telerik team
 answered on 05 Jan 2012
5 answers
198 views
Every body, please help me.

 I made a (asp.net) UserControl ,  I drag a grid into the usercontrol and rendering this usercontrol in a asp.net page.
Now my question is: I want to export the data from the grid to Excel ,and I follow the instruction within grid help documnet. But I did not see any popup window after I click  the export button.
I use version: RadControls for ASP.NET AJAX Q1 2011
my code snippet here: 

        <MasterTableView Width="100%" CommandItemDisplay="Top">
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
            <CommandItemSettings ShowExportToExcelButton="true" />
        </MasterTableView>


dominic
Top achievements
Rank 1
 answered on 05 Jan 2012
1 answer
113 views
I have a problem getting this right.

function requestStart(sender, args) {
                currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
                //debugger;
                if (args.get_eventTarget().indexOf("grdTekGrid") >= 0) {
                    currentUpdatedControl = "<%= grdTekGrid.ClientID %>";
                }
 
                if (args.EventTarget.indexOf("ExportToExcelButton") >= 0) {
                    args.EnableAjax = false;
                }
                //show the loading panel over the updated control
                currentLoadingPanel.show(currentUpdatedControl);
            }
 
            function ResponseEnd() {
                //debugger;
                //hide the loading panel and clean up the global variables
                if (currentLoadingPanel != null)
                    currentLoadingPanel.hide(currentUpdatedControl);
                currentUpdatedControl = null;
                currentLoadingPanel = null;
            }

This is the code i've seen in many threads.

The problem here is if i let this stay as it's is, the loading panel just stucks there (the circle does not move, it's "frozen") and after a while pop-ups the prompt open/save excel file. But even after the popup the loading panel doesn't disappear.... 

If i remove this bit:
if (args.EventTarget.indexOf("ExportToExcelButton") >= 0) {
                    args.EnableAjax = false;
                }

The loading panel works great, but instead of being prompt to open/save the file, the contents of the table that is created is loaded/pasted in the grid itself....

Thanks in advance for all the help
Princy
Top achievements
Rank 2
 answered on 05 Jan 2012
5 answers
438 views
Hi I am working with RadTooltipManager control. i am using the position as "BottomRight". it's working fine at the top of the page   onmouseover  event of the some text. But at the bottom of the page it's not showing properly like showing somewhere on the page instead of Bottom of the selected position. Please let me know what's the wrong with this code.
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="BottomRight" onajaxupdate="OnAjaxUpdate" ShowEvent="OnMouseOver" Visible="false" Skin ="Outlook" ManualClose="true" Height="220px" Width="220px" RelativeTo="Element" ></telerik:RadToolTipManager>

Thanks in Advance,
Chinna..

Princy
Top achievements
Rank 2
 answered on 05 Jan 2012
1 answer
74 views

The grid has grouping and hierarchy. When the grid is loaded initiially, all hierarchy rows are collapsed.  When a grid group is collapsed and then expanded, all hierarchy rows get expanded. I don't see any configuration changes to stop it. Some of the related markup:

<MasterTableView HierarchyLoadMode="Client" HierarchyDefaultExpanded="false"  
GroupLoadMode="Client">
 ExpandCollapseColumn Visible="True">
 </ExpandCollapseColumn>

Shinu
Top achievements
Rank 2
 answered on 05 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?