Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
hi
  when i click the save button that time i call need data source  for gridview
Vinkel
Top achievements
Rank 1
 answered on 20 Jul 2010
5 answers
271 views
I have a database with simple table with 1.2 million rows and when I put that into a grid using linq, paging is painfully slow.  In the demo http://demos.telerik.com/aspnet-ajax/Grid/Examples/GeneralFeatures/ASPNET35/DefaultCS.aspx it looks like the source code isn't all there, am i missing something?  When I put in the .cs file code that is listed in the demo I get no results when paging or sorting, something is missing.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div> 
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" EnableAJAX="true"> 
    <telerik:RadGrid ID="RadGrid1" EnableLinqExpressions="true" Skin="Vista" DataSourceID="LinqDataSource1" PageSize="100" 
    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"  EnableViewState="false" 
            runat="server"> 
<HeaderContextMenu Skin="Vista" EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
    <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" /> 
 
<MasterTableView DataSourceID="LinqDataSource1" AutoGenerateColumns="False"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="Column1" HeaderText="Column1"  
            SortExpression="Column1" UniqueName="Column1"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column2" HeaderText="Column2"  
            SortExpression="Column2" UniqueName="Column2"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column3" HeaderText="Column3"  
            SortExpression="Column3" UniqueName="Column3"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column4" HeaderText="Column4"  
            SortExpression="Column4" UniqueName="Column4"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column5" HeaderText="Column5"  
            SortExpression="Column5" UniqueName="Column5"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column7" DataType="System.Char"  
            HeaderText="Column7" SortExpression="Column7" UniqueName="Column7"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Column9" HeaderText="Column9"  
            SortExpression="Column9" UniqueName="Column9"> 
        </telerik:GridBoundColumn> 
    </Columns> 
</MasterTableView> 
 
<FilterMenu Skin="Hay" EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 
        <asp:LinqDataSource ID="LinqDataSource1" runat="server"  
            ContextTypeName="Kelly.RAPData" TableName="RAPs" AutoPage="true"> 
        </asp:LinqDataSource> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="5"> 
        <img style="margin-top:50px;" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading4.gif") %>' /> 
    </telerik:RadAjaxLoadingPanel>          
    </telerik:RadAjaxPanel> 
    </div> 
    </form> 
</body> 
</html> 
 



mzukisi
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
93 views
I open a modal rad window as popup and while opening through javascript, i use to MoveTo api to move to it to the centre of the screen. On the window, I have a button called close, which on click, executes close() on the window, but to my surprise, when the window is closed, the other window that opened it, scrolls to the top..
when i looked in detail, the radwindow had some default close event handler, which uses some "_focusedPageElement" and focuses on it,, in my case _focusedPageElement was referring to the iframe of the window that opened the popup..
why is that?? how can i prevent that?
Svetlina Anati
Telerik team
 answered on 20 Jul 2010
1 answer
119 views
How to implement serialization of fields of the Form, that contains RadEditor (in order to make callback-request)? Microsoft JavaScript function WebForm_InitCallback() does it, scanning form fields and adding their values in a variable __theFormPostData. But in a case with RadEditor, it finds only <textarea> (<textarea ... id="RadEditor1ContentHiddenTextarea" style="display: none;">), that contains the initial data (loaded with page). How (before i make callback-request) it is possible to update value in <textarea> on the data from <iframe>? And what is purpose of <textarea> element?
Dobromir
Telerik team
 answered on 20 Jul 2010
1 answer
169 views
<RSCtl:RSGrid ID="RSGrid1" IsConfigDrivenGrid="true" runat="server" style="margin:5" >
   <MasterTableView CommandItemDisplay="Top">
 
      <CommandItemTemplate>
          <table id="tblGridCommandItem" runat="server" cellpadding="0" cellspacing="0" width="100%">
              <tr width="100%">
                  <td align="right">
                                                                                                    <asp:Label ID="lblSearchResultTime" runat="server" CssClass="RSGrid_HeaderCommandItem_Message" />
                                                                                                     
              </td>
           </tr>
        </table>
                                                                                    </CommandItemTemplate>
</MasterTableView>
</RSCtl:RSGrid>


Above is my code for grid. I want to access label which is in the CommandItemTemplate in javascript. I am in OnResponseEnd event of RadAjaxManager. 

Thanks.
Jimmy.
Shinu
Top achievements
Rank 2
 answered on 20 Jul 2010
0 answers
983 views

Q2 2011 Service Pack 1 (Version 2011.2.915)

Breaking change: 
Now all HTML 5 compliant browsers, which support the File API interface (FireFox 4.0+, Chrome latest, Safari 5.0+), use the File API module.

Reason:
Numerous of problems with the Silverlight/Flash plugins in browsers different than IE. The FileAPI module provides the same features as Flash/Silverlight with one exception. It is not yet possible to display extensions filter within the select file dialog. However, this functionality is part of the input[type='file'] specification and it is about time that the browsers implement it.

Problem:
Using the Flash module in IE6/7/8 debug information is displayed into the Developers Bar JavaScript console.

Reason: 
Non commented console.log invocation within the ActionScript code.

Solution:
The problem will be resolved in the upcoming Latest internal build.

Q2 2010 (Version 2011.2.713)

Problem
: RadAsyncUpload sometimes fail to upload the files to the target folder.

Reason: The temporary files, which RadAsyncUpload uses internally to save the uploaded files to the target folder, are being deleted too early, hence leaving the upload without files to save.

Solution: We have fixed the problem for the latest internal build (version 2010.2.722+). More information on how to obtain the latest internal build can be found here.

Alternatively, you can do the following:

Step 1: Add an ashx handler to your app. Inside, use the following code:

<%@ WebHandler Language="C#" Class="CustomHandler" %>
 
using System;
using System.Web;
using Telerik.Web.UI;
 
public class CustomHandler : AsyncUploadHandler {
 
    
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
    {
        configuration.TimeToLive = TimeSpan.FromHours(4);
        return base.Process(file, context, configuration, tempFileName);
    }
 
}

Then, set the HttpHandlerUrl property of RadAsyncUpload to point to that handler. Like this:

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/CustomHandler.ashx" TargetFolder="~/Documents">
        </telerik:RadAsyncUpload>

Related forum post: FIX: RadAsyncUpload sometimes does not save the uploaded files to the target folder.



Other issues:

SOLUTION: Upload fails OR Login prompt appears when using Forms / Windows Authentication
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 Jul 2010
0 answers
699 views
Problem: RadAsyncUpload sometimes fail to upload the files to the target folder.

Reason: The temporary files, which RadAsyncUpload uses internally to save the uploaded files to the target folder, are being deleted too early, hence leaving the upload without files to save.

Solution: We have fixed the problem for the latest internal build (version 2010.2.722+). More information on how to obtain the latest internal build can be found here.

Alternatively, you can do the following:

Step 1: Add an ashx handler to your app. Inside, use the following code:

<%@ WebHandler Language="C#" Class="CustomHandler" %>
 
using System;
using System.Web;
using Telerik.Web.UI;
 
public class CustomHandler : AsyncUploadHandler {
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
    {
        configuration.TimeToLive = TimeSpan.FromHours(4);
        return base.Process(file, context, configuration, tempFileName);
    }
}

Step 2: set the HttpHandlerUrl property of RadAsyncUpload to point to that handler. Like this:

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/CustomHandler.ashx" TargetFolder="~/Documents">
        </telerik:RadAsyncUpload>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 Jul 2010
1 answer
99 views
Hello,

The HTML for checkbox column is below,

<

 

telerik:GridTemplateColumn UniqueName="Approve" HeaderText="Approve">

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="chkApprove" runat="server" Checked="true" Enabled="false" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 



but, checkedbox is not appread as dimde, howevere one can't off/on, What need to make these looks dimded.
Pavlina
Telerik team
 answered on 20 Jul 2010
2 answers
127 views
I attached you a file!

by default - Localization-Add text is "Add"
i want to rename it to "Add New Attachment", but when i renamed it the width of this button is still the same?
how can I make this right?


<telerik:RadUpload ID="ruAttachment" ExternalDialogsPath="~/controls/EditorDialogs/"    runat="server" InitialFileInputsCount="1" LocalizationPath="../RadControls/Upload//Localization" ControlObjectsVisibility="RemoveButtons, AddButton" Width="100%" Font-Names="Verdana"    Font-Size="7pt" InputSize="45"  Localization-Add="Add New Attachment" Localization-Remove="Remove Attachment"  >
</telerik:RadUpload>

How can i control the WIDTH of Localization-add
Em4o
Top achievements
Rank 2
 answered on 20 Jul 2010
13 answers
267 views
We are using RadEditor LIte on SharePoint/MOSS 2007.  When checking for memory leaks with SPDisposeCheck, RadEditor is listed as not disposing of all its memory.  Is this a false positive?  We are on version 4.5.3.0 but checked the dll for the newer version, and it still does not pass the SPDisposeCheck. 

Thanks, Connie

Stanimir
Telerik team
 answered on 20 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?