Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
I have been a user of Telerik for over 2 years and I noticed recently that everything has moved over to the Ajax suite. I can still download the last version of the normal ASP.NET controls, but I wonder, should I be using the Ajax controls because that is where the product suite is going? Can I have both the Ajax and Non-Ajax controls installed on the same machine? Would it hose me? I guess I am asking because right now, I have a mix of Ajax and non-Ajax control needs. In one scenario, just showing some tabs and displaying some data, I really don't want to use Ajax. But I seem forced to in the Ajax controls.

So my question is, can I have both Ajax and nonAjax version of RAD Controls installed? Do I need to? And if I do not...how can I turn off Ajax support from my Ajax version of the suite?
Dimo
Telerik team
 answered on 04 Nov 2008
5 answers
130 views
Hello!

I have a control that performs a fileupload. As fileupload won't work with ajax, I have to ensure that the "upload" events excludes itself from any ajax callback.
So the control searches for an ajax mgr in the hierarchy, and if it finds one, it adds the OnRequestStartEvent.

Now the problem is: If the control gets generated automatically and is removed from the page after a postback, the OnRequestStart Event is still registered in the Ajaxmanager, but the corresponding sourcecode is gone - which of course results in a javascript exception.

What can I do, to remove the OnRequestStart Event from the ajax mgr. again?

Are there other possibilities that let me exclude a control form ajaxcallbacks?!

Thx in advance & kind regards
Yavor
Telerik team
 answered on 04 Nov 2008
7 answers
420 views
Hi all,

Not sure if I'm doing something wrong here, but the cellpadding property doesn't seem to work? (ie, doesn't do anything).

I'm constructing columns dynamically and not overriding the style, but no matter if I set cellpadding in mastertableview or the grid itself (or both!), the padding doesn't alter.

Any feedback appreciated.

Cheers
DT
Yavor
Telerik team
 answered on 04 Nov 2008
5 answers
197 views
In all of the examples I've seen on the telerik website for RadDock, the raddocks fit perfectly together with no spacing in between them.  How can I specify some spacing in between the raddocks (e.g. a 5 pixel space in between DockA and DockB in a vertical docking zone) so that they do not fit together like puzzle pieces?

The only way I can figure out to do this is to use more than one RadDockZone within table cells that themselves control the spacing, which is not an ideal solution.

I can modify the CSS if necessary and disable the embedded skins, however I have not figured out how to do it without messing up the layout.

Thanks,
joe
Martin
Telerik team
 answered on 04 Nov 2008
3 answers
130 views
I have a RadToolTip (Modal="true" RelativeTo="BrowserWindow") that is not displaying correctly when it is located inside a RadDock.

I can attach a sample project if you wish to demonstrate the behavior.  I would attach it now, but I can't seem to find where to do it.

I uploaded it to my ftp account:

Sample Project



Tervel
Telerik team
 answered on 04 Nov 2008
2 answers
125 views
Hi,
There is a Browser Specific Problem
 I created RadComboBox and applied RadFormDecorator with skin="Web20".
Problems:
1) "radcombobox.SelectedIndex = 2" in Form load event. But it does not show.
2) RadFormDecorator skin is not affected to RadComBobox.
Internet Explorer(7) does not show the value on Page_load Event.
FireFox on the other side Displays the values properl on Page_load Event.

Urgent please.....
If anyone answer it would be helpful.

//Regards,
Balakrishnan Kathiravan.
Tervel
Telerik team
 answered on 04 Nov 2008
1 answer
145 views
Hello guys,

This is my first post on this forum. I got a null GridControl value when I fire a event.

I have a RadGrid and a button control on a page. When I click the button I want a event to be fired in order to bring up export method to export the grid contents into a Excel file. But when I click the button, I always get null value for the GridControl property of Sender.

Here is the code:
<%@ Page Language="C#" MasterPageFile="~/Templates/Site.master" AutoEventWireup="true" CodeFile="SupplierSearch.aspx.cs" Inherits="ApprovedSupplier_SupplierSearch" Title="Global Quality Web" %> 
<%@ Register TagPrefix="uc" TagName="DatePicker" Src="~/UserControls/Common/DatePicker.ascx" %> 
<%@ Register TagPrefix="uc" TagName="Attachments" Src="~/UserControls/Common/AttachmentControl.ascx" %> 
<%@ Register TagPrefix="uc" TagName="LookupBase" Src="~/UserControls/Common/LookupBase.ascx" %> 
<%@ Register TagPrefix="uc" TagName="DateTimePicker" Src="~/UserControls/Common/DatePicker.ascx" %> 
<%@ Register TagPrefix="uc" TagName="SnapControl" Src="~/UserControls/Common/SnapControl.ascx" %> 
<%@ Register TagPrefix="uc" TagName="ExportPanel" Src="~/UserControls/Common/ExportPanel.ascx" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="SiteContentHolder" Runat="Server">  
<script type="text/javascript">  
function onClickSupplierId(id) {  
    var url = 'SuppAppReq.aspx?id=' + id;  
    if(window.parent) {  
        window.parent.location.href = url;  
    }  
    else {  
        window.location.href = url;  
    }  
}  
 
function onClickDeleteSupplier(id) {  
    if(confirm("Do you really want to delete record " + id + " ?")) {  
        var url = 'SupplierSearch.aspx?isDeleted=true&id=' + id;  
        if(window.parent) {  
            window.parent.location.href = url;  
        }  
        else {  
            window.location.href = url;  
        }  
    }  
}  
 
 
</script> 
    <div id="qsButtons" runat="server" visible="false">  
        <asp:ImageButton ID="btnNewSupplier" OnClientClick="ShowProgressBar();" OnClick="btnNewSupplier_OnClick"  Runat="Server" ImageUrl="~/Images/NOV/Menu/NOVaddNewSupplier.gif" AlternateText="New Location" ImageAlign="AbsMiddle"/>  
        <asp:ImageButton ID="btnAdvancedSearch" OnClientClick="ShowProgressBar();" OnClick="btnAdvancedSearch_OnClick"  Runat="Server" ImageUrl="~/Images/NOV/Menu/NOVadvSch.gif" AlternateText="Advanced Search" ImageAlign="AbsMiddle"/>          
    </div> 
 
    <div id="Filters" class="IFrameFilters"></div> 
        <uc:SnapControl ID="SnapControl" DivID="Filters" Text="Supplier Filters" runat="server">  
            <Content> 
                <table border="0" cellpadding="4" cellspacing="2">  
                    <tr> 
                        <td>Legal Name:</td> 
                        <td><asp:TextBox ID="txtLegalName" runat="server"></asp:TextBox></td>  
                        <td>Supplier Title:</td> 
                        <td><asp:TextBox ID="txtSupplierTitle" runat="server"></asp:TextBox></td>  
                        <td>Supplier Email:</td> 
                        <td><asp:TextBox ID="txtSupplierEmail" runat="server"></asp:TextBox></td>  
                    </tr> 
                    <tr> 
                        <td>ERP Supplier No:</td> 
                        <td><asp:TextBox ID="txtERPSupplierNumber" runat="server"></asp:TextBox></td>  
                        <td>Business Unit:</td> 
                        <td><asp:TextBox ID="txtBusinessUnit" runat="server"></asp:TextBox></td>  
                        <td>Number Machinists:</td> 
                        <td><asp:TextBox ID="txtNumMachinists" runat="server"></asp:TextBox></td>  
                    </tr> 
                    <tr> 
                        <td>Manual Machines:</td> 
                        <td><asp:TextBox ID="txtManualMachines" runat="server"></asp:TextBox></td>  
                        <td>Number Shifts:</td> 
                        <td><asp:TextBox ID="txtNumShifts" runat="server"></asp:TextBox></td>  
                        <td>Number CNC:</td> 
                        <td><asp:TextBox ID="txtNumCNC" runat="server"></asp:TextBox></td>  
                    </tr> 
                    <tr> 
                        <td>Type of service:</td> 
                        <td><asp:TextBox ID="txtTypeSvc" runat="server" /></td>  
                        <td>Date Cap Update:</td> 
                        <td><uc:DatePicker ID="txtDateCapUdate" runat="server" AllowClear="true" /></td>  
                        <td>Supplier Category:</td> 
                        <td><asp:TextBox ID="txtSupplierCategory" runat="server"></asp:TextBox></td>  
                    </tr> 
                    <tr> 
                        <td>Approval Status:</td> 
                        <td> 
                        <asp:DropDownList ID="ddlApprovalStatus" runat="server" > 
                        <asp:ListItem Value="" Text="[All]" /> 
                        <asp:ListItem Value="0" Text="Being Reviewed" /> 
                        <asp:ListItem Value="1" Text="Approved" /> 
                        <asp:ListItem Value="2" Text="Suspended" /> 
                        </asp:DropDownList> 
                        </td> 
                        <td>Approval Method:</td> 
                        <td><asp:TextBox ID="txtApprovalMethod" runat="server" /></td>  
                    </tr> 
                    <tr> 
                        <td colspan="6">  
                            <asp:ImageButton ID="btnFilter" OnClientClick="ShowProgressBar();" Runat="Server" ImageUrl="~/Images/NOV/Menu/NOVfilter.gif" AlternateText="Filter" ImageAlign="AbsMiddle"/>                                      
                            <asp:ImageButton ID="btnAddNew" OnClick="btnNewSupplier_OnClick" OnClientClick="ShowProgressBar();" Runat="Server" ImageUrl="~/Images/NOV/Menu/NOVaddNewSupplier.gif" AlternateText="Add Location" ImageAlign="AbsMiddle"/>                                                      
                        </td> 
                    </tr> 
                    <tr> 
                        <td colspan="6">  
                            <asp:Label ID="Label1" Text="To perform a search with wildcards use a *. For example, to search for everything that starts with B, use B*.<br/><br/>To search for an exact string, surround the string in quotes.  For example, to search for Asia Pacific, use &quot;Asia Pacific&quot;." ForeColor="red" runat="server"></asp:Label> 
                        </td> 
                    </tr> 
                </table> 
            </Content> 
        </uc:SnapControl> 
        <br /> 
          
        <rad:RadGrid ID="grdSupplier" runat="server" DataSourceID="dsSupplier" 
            AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" 
            PageSize="50" Width="99.8%" OnDataBound="RadGrid_DataBound" OnItemCreated="RadGrid_Setup">  
            <MasterTableView> 
                <Columns> 
                    <rad:GridHyperLinkColumn DataTextField="SupplierName" HeaderText="Supplier Name" SortExpression="SupplierName" DataNavigateUrlFormatString="javascript:onClickSupplierId('{0}');" DataNavigateUrlFields="SupplierId"></rad:GridHyperLinkColumn> 
                    <rad:GridBoundColumn DataField="BusinessUnit" HeaderText="Business Unit" SortExpression="BusinessUnit"></rad:GridBoundColumn> 
                    <rad:GridBoundColumn DataField="ERPSupplierNum" HeaderText="ERP Supplier No" SortExpression="ERPSupplierNum"></rad:GridBoundColumn> 
                    <rad:GridBoundColumn DataField="DateCapUpdate" HeaderText="Date Cap Update" SortExpression="DateCapUpdate"></rad:GridBoundColumn> 
                    <rad:GridBoundColumn DataField="ApprovalMethod" HeaderText="ApprovalMethod" SortExpression="ApprovalMethod"></rad:GridBoundColumn> 
                    <rad:GridBoundColumn DataField="Notes" HeaderText="Notes" SortExpression="Notes"></rad:GridBoundColumn> 
                    <rad:GridHyperLinkColumn Text="delete" HeaderText="delete" DataNavigateUrlFormatString="javascript:onClickDeleteSupplier('{0}');" DataNavigateUrlFields="SupplierId" ItemStyle-Width="50"></rad:GridHyperLinkColumn> 
                </Columns> 
            </MasterTableView> 
        </rad:RadGrid> 
         

 

       <uc:ExportPanel ID="ExportPanel" OnExcelExportClick="Click_ExcelExport" runat="server" /> 

 

          
        <c:SupplierDataSource ID="dsSupplier" runat="server" Sort="SupplierName" SelectMethod="GetPaged">  
            <Parameters> 
                <asp:ControlParameter Name="WhereClause" ControlID="__Page" PropertyName="WhereClause" /> 
            </Parameters> 
        </c:SupplierDataSource> 
</asp:Content> 
 
 

The code capturing the event is like this:
    public virtual void Click_ExcelExport(object sender, EventArgs e)  
    {  
        ExportGrid(sender, e, true);  
    } 

When I debug, the sender contains a null value in GridControl property.

Regards,

Qiang




Yavor
Telerik team
 answered on 04 Nov 2008
1 answer
82 views
Hi,
 We are using "RadControls for ASPNET Ajax Q1 2008" controls.
Problems:
 When we apply RadFormDecorator to RadGrid, then the filter button is not visible during run time.

It would be helpful, if anybody answers.
It is very urgent.

Best wishes,
Balakrishnan Kathiravan.
Georgi Tunev
Telerik team
 answered on 04 Nov 2008
1 answer
54 views
Hi,

I have a quick question about the DialogManager control.  Does anyone know of a parameter that will limit the amount of files that are displayed in the file list?  The reason why I ask is that I am working on a site where there is a possibility of thousands of files (in my case images)  being displayed which could take some time to load the names of those files.  What I am wondering is does anyone know of some type of filter that can be applied where I can limit which files are displayed based on attributes of the file or the file name? 

Thanks,

Ron
Tervel
Telerik team
 answered on 04 Nov 2008
4 answers
1.1K+ views
Need ur Help !!!

how to deselect a row in the radgrid when user performs a click operation in any row ??

I am having checkbox as my first column in radgrid.

Thanks,
Yuvaraj

yuva
Top achievements
Rank 1
 answered on 04 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?