Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
909 views
Hi,

I have a Header and detail table, I have set the page size for the grid when loading the data. This paging is applying for the detail tables also. in my scenario i do not want paging in the detail table. How do i remove paging for the detail table

Jidesh
Pavlina
Telerik team
 answered on 12 Nov 2010
4 answers
49 views
I have a master page and want to put the RadAjaxManager on this page, so that when needed
by content pages that it is avalable. When a content page is loaded that dose not require the
script manager or radajaxmanager, I do not want the script manager producing and scripts, this
would mean that for content pages that dont need it, there is no impact on loading that page, it
would be that the scriptmanager or radajax never existed.

I know I could put the script manager and radajaxmanager on only thet page but I have other pages
with 2 or more content sections that require radajaxmanager.

So what I am looking for is a way to be able to turn on and off the script manager and hide there presents by
program code ?

Thanks Keith
erato
Top achievements
Rank 1
 answered on 12 Nov 2010
0 answers
35 views
I posted this thread with the account of my company who bought the whole Telerik package. (http://www.telerik.com/community/forums/aspnet-ajax/grid/367661-paging-problem-in-the-detail-tables-of-an-autogenerated-hierarchy-grid.aspx)

Regards.
julien test
Top achievements
Rank 1
 asked on 12 Nov 2010
0 answers
119 views
Hi,

The RadListBox demo on the telerik website, the type ahead feature is working properly, but on my environment it is not working, I copied the same code from the example, can any one have idea, if I need to do anything special, which is not on website.

Thanks
srinath chakilam
Top achievements
Rank 1
 asked on 12 Nov 2010
2 answers
111 views
So they'd like me to create an application where the files from a particular network folder populate into some kind of box with checkboxes, so they can select as many as they'd like and upload them to our sql database (I know).

The only thing I coudl think of from your suite of products was a combobox, since the fileexplorer doesn't have checkboxes or the ability to select files from within the explorer window and upload them all at once.

Is there anyway I can populate th ecombobox with files from a folder? This way they'd be able to select them with the checkboxes and I could handle the sql upload in codebehind. If this isn't possible or more work than it's worth (which i think it is) please let me know.
fred williams
Top achievements
Rank 1
 answered on 12 Nov 2010
2 answers
143 views
Hi, I have an editable grid where one of the fields uses a GridDropDownColumn to select the data, and is currently being populated using an SqlDataSource object.  I would like to be able to add one additional item to the dropdown list to allow the user to select "nothing".  Is there a way to do this?  I know that I could add a blank value in my stored procedure but I would prefer not to do it that way if possible. 

I'm also willing to populate my drop down field differently if need be.  In fact, I do have instances where I will want to build the list of items from scratch in code, so if you could provide code to do this that would be a great help as well!

Here is the ASP code for the grid.  It's the GLFundingID column that I want to add an item to.

<telerik:RadGrid ID="FundingFeesGrid" runat="server" Skin="Sunset" AutoGenerateColumns="false" AllowPaging="false" OnDeleteCommand="FundingFeesGrid_DeleteCommand" OnDetailTableDataBind="FundingFeesGrid_DetailTableDataBind" OnInsertCommand="FundingFeesGrid_InsertCommand" OnItemDataBound="FundingFeesGrid_ItemDataBound" OnNeedDataSource="FundingFeesGrid_NeedDataSource" OnUpdateCommand="FundingFeesGrid_UpdateCommand" OnItemCreated="FundingFeesGrid_ItemCreated">
    <MasterTableView EditMode="InPlace" CommandItemDisplay="Top">
        <Columns>
            <telerik:GridBoundColumn DataField="GLFundingFeeID" Visible="false" />
            <telerik:GridDropDownColumn DataField="GLFundingID" HeaderText="Funding Type" DataSourceID="FundingList" ListTextField="TypeName" ListValueField="GLFundingID" />
            <telerik:GridBoundColumn DataField="FeeName" />
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderText="Edit" HeaderStyle-Width="60px" HeaderStyle-HorizontalAlign="Center" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
Chris McGrath
Top achievements
Rank 1
 answered on 12 Nov 2010
3 answers
145 views
Hi,

We have a grid with CustomPaging, with 10 records per page. Sorting functionality is working fine when clicking on HeaderText. We are using OnSortCommand event to get sorted field and order as below.

FieldName = e.SortExpression, SortOrder = e.NewSortOrder

We also have context menu on the screen. When using ordering from ContextMenu SordCommand Event is not firing.

Do we need to explicitly attach event handler to any ContextMenu event?
Marin
Telerik team
 answered on 12 Nov 2010
3 answers
174 views
I have a RadButton which is sitting in a user control in a RadPane. When the content in the pane grows too large, a vertical scrollbar appears. However, when the pane is scrolled, the button does not scroll with the rest of the content (as if it is positioned absolutely), whether it is in a table cell or a div. If I mouseOver the button after scrolling, it jumps back to its original position.

Using a "standard" button with a primary icon and no text in IE7.

Thanks.
Rumen
Telerik team
 answered on 12 Nov 2010
2 answers
554 views
I went through the upgrade wizard, but when I rebuild and go back to the wizard, it tells me that the currently used RadControls version is 2010.2.713.40 and suggests that I upgrade to 2010.2.929.40. When I click Get Latest Version, it says nothing newer found.

I upgrade to 2010.2.929.40 successfully. Then the wizard says I'm on 2010.2.290.40 (yay!) and that 2010.3.1109.40 is available (yay!) so I upgrade to it (just click next a few times), again it seems successful and the upgrade wizard now shows that I'm running 2010.3.1009.40 (yay!). I've done this process three times now.

Here's where it gets interesting: I have a RadButton that I coded directly in Source view. The error list shows no issues. I rebuild. Boom: error (as listed in title). Go to the upgrade wizard and oops, I'm back on 2010.2.713.40.

---------------------------------------------------------------------------------------------------------------------------------
I can verify the following:

My Telerik.Web.UI.dll.refresh points to
C:\blahblahblah\Telerik\Updates\Telerik.Web.UI_2010_3_1109_Dev_hotfix\Bin40\Telerik.Web.UI.dll

The version of the dll associated with my project is 21010.3.1109.40

I have the tagPrefix defined in the web.config
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>

 I have the HTTP handlers in the web.config

    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
...
    <handlers>
      <remove name="ChartImage_axd"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>

Brad
Top achievements
Rank 1
 answered on 12 Nov 2010
3 answers
132 views
Telerik,

My team and I have been trying to decipher this paradox for a couple of days now, but unfortunately, all our efforts have ended being futile. I have RadUpload and RadWindow on the same ASPX page. The screen or logic flow is as follows:

  • User selects multiple images, using RadUpload
  • User clicks on preview button
  • Onclick event is captured in code-behind file; uploaded images are saved in session; javascript is injected, using RadAjaxManager; and RadWindow is triggered, which ultimately shows all the uploaded images.

We are also disabling AJAX for RadAjaxPanel and RadAjaxManager in order for RadUpload to have a full post-back. One thing we have noticed that if we do not disable the AJAX for the preview button, everything works as expected. This behavior, however, forces the RadUpload.UploadedFiles property to show zero count -  even though several files are uploaded to the control.

We were using 2010.2.713.35 version of Telerik.Web.UI assembly, and decided to update to 2010.2.929.35 build, which is latest build. The updates, however, did not solve the problem.

We will be anxiously waiting to hear back from you.  

The default page is as follows:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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">
    <div>
         <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
         <telerik:RadScriptBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
  
  
                function openEmergencyAlertDialog(caller) {   
                    var queryStr = "PreviewEmergencyAlert.aspx";
                    var oWnd = radopen(queryStr, caller);
                    return false;
                }
  
                function conditionalPostback(sender, args) {
  
                    if (args.get_eventTarget() == "<%= PreviewButton.UniqueID %>") {
                        args.set_enableAjax(false);
                        var manager = $find('<%= RadAjaxManager1.ClientID %>');
                        manager.set_enableAJAX(false);                        
                        setTimeout(function() {
                            manager.set_enableAJAX(true);
                        }, 0);
                    }
                }
   
            </script>
    </telerik:RadScriptBlock>
           
     <telerik:radajaxmanager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="conditionalPostback" >
          <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="pnlStatus" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlStatus" LoadingPanelID="RadAjaxLoadingPanel1" />
  
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
     </telerik:radajaxmanager>
      
    <telerik:radajaxloadingpanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" Transparency="80"
      </telerik:radajaxloadingpanel
        
            <asp:Panel ID="pnlStatus" runat="server">
          <div style="padding-left:45px;" >
          
        <table width="900px">
            <tr>
                <td>   
                  
                <center><span style=" color:#0066cc; font-weight:bold; font-size:18px;">Header  </span>            
                <span style="float:right; margin-top:-8px;margin-right:42px;  ">
  
                            <asp:LinkButton ID="PreviewButton" runat="server"  
                                 onclick="PreviewButton_Click"  Text="Preview" >   
                            </asp:LinkButton
                </span>  
               </center>
                </td>
            </tr>
        </table>
          
        <!-- Start Download Image -->        
        <div style="height:10px;"></div>        
        <div style="padding-left:4px;"
  
            <table width="850px" border="0"  style="background:#75b458;">
                <tr style="line-height:20px;">
                    <td style="width:152px;" valign="top">
                        <asp:Label ID="Label3" runat="server" Text="Upload Image(s):"></asp:Label
                    </td>
                    <td>
                        <span style="color:#fff;">Allowed extensions are: .gif, .jpg, .jpeg, .png, .bmp</span>
                        <div style="height:4px;">
                              
                        </div>
                        <telerik:RadUpload ID="RadUpload1" Runat="server" MaxFileInputsCount="5" ControlObjectsVisibility = "ClearButtons"
                                            MaxFileSize="250000"
                                           AllowedFileExtensions=".gif,.jpg,.jpeg,.png,.bmp" >
                        </telerik:RadUpload>                           
                    </td>
                </tr>
  
            </table>            
        </div>        
    </div>
      </asp:Panel>   
    </div>
      
    <telerik:RadWindowManager ID="radEAWindowManager" runat="server">    
            <Windows>
                <telerik:RadWindow ID="radEmergencyAlert" Width="700px" Height="400px" AutoSize="false"
                ShowContentDuringLoad="true" ReloadOnShow="true" VisibleStatusbar="false" runat="server"
                Behaviors="Maximize,Close,Move,Resize,Reload" NavigateUrl="" KeepInScreenBounds="true" 
                Modal="True" Title="Select Entity Actions">
                </telerik:RadWindow>                 
            </Windows>                         
    </telerik:RadWindowManager>   
    </form>
</body>
</html>

The code-behind

protected void PreviewButton_Click ( object sender, EventArgs e )
   {
       if ( RadUpload1.UploadedFiles.Count > 0 )
       {
           List<byte[]> listImage = new List<byte [ ]> ( );
           foreach ( UploadedFile validFile in RadUpload1.UploadedFiles )
           {
               Stream imageStream = validFile.InputStream;
               int imageLength = validFile.ContentLength;
               byte[] imageBinaryData = new byte [ imageLength ];
               int n = imageStream.Read ( imageBinaryData, 0, imageLength );
               listImage.Add ( imageBinaryData );
           }
       }
       RadAjaxManager1.ResponseScripts.Add ( "openEmergencyAlertDialog('radEmergencyAlert');" );
   }


Thanks,

Genady Sergeev
Telerik team
 answered on 12 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?