Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
70 views
Hi all,

In radgrid,how to change the icon of filter button? Please help.

Thanks in advance.
Janaki
Top achievements
Rank 1
 answered on 17 Jul 2012
5 answers
453 views
Hello,

I am using a Rad Grid control inside of a Rad Pane, Static Headers and Scrolling are enabled. I want it to resize with the rest of the browser window, but unfortunately it only uses about 10% of the Pane when I set any non-static height (it doesn't change anything if I use 10% or 100%). I have tried using the code found under the following URL:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx
as suggested in various threads regarding this topic, but it only makes my Grid too high when the page is first loaded (scroll-bar disappears at the end of the page when scrolling), and resizes it to use, again, about 10% of the overall site once the browser-window is resized.
Is there a possible solution for this?

Thanks in advance,
Robin
Galin
Telerik team
 answered on 17 Jul 2012
1 answer
108 views
Hi, I've installed the control panel, but it's not appearing in Start-Programs or the desktop, not even in add/remove software. So how can I make a shortcut to the desktop then?

Also, some other posts mentioned about company wide installation which is also good to have.
In addition, a version selector for control panel will be great to have feature, as the project may not be always with the latest version or found problem with the latest version and revert back.
Missing User
 answered on 17 Jul 2012
5 answers
345 views
I'm posting this to see if anyone has accomplished this.  I have been trying for a couple of days and am ready to give up.
I have a RadFileExplorer and have added a custom context menu item called Download.  This button action will Download a file or folder from the server to the client computer.  If the download is a folder I zip up the contents of that folder first and then present the download using Response.TransmitFile.  Pretty straight forward.  The problem comes that when you select a folder that is large the zip process may take a while.  I want to notify the client of the progress.  I am already using the RadProgressArea for the Upload control of the RadFileExplorer so I have AllowCustomProgress set to false in the web.config so that it won't show up when selecting the Download. 

Below is my code for the download click client event:

 

function extendedFileExplorer_onGridContextItemClicked(oGridMenu, args) {

 

 

var menuItemText = args.get_item().get_text();

 

switch (menuItemText) {

 

case "Download":

extendedFileExplorer_sendItemsPathsToServer();

 

break;

 

case "Share":

 

var fExplorer = $find("<%= RadFileExplorer1.ClientID %>");

 

var item = fExplorer.get_selectedItem();

 

var owindow = window.radopen("ShareResource.aspx?path=" + item.get_path(), "ShareResourceWindow");

 

return false;

 

break;

}

}

 

function extendedFileExplorer_sendItemsPathsToServer() {

 

var oExplorer = $find("<%= RadFileExplorer1.ClientID %>"); // Find the RadFileExplorer ;

 

var selectedItems = oExplorer.get_selectedItems(); // Retrieve the selected items ;

 

var selectedItemsPaths = extendedFileExplorer_combinePathsInAString(selectedItems); // Get the paths as a string in specific format ;

 

var hiddenField = $get("<%= ctlHiddenField.ClientID %>"); // Find the hiddenField

hiddenField.value = selectedItemsPaths;

__doPostBack(

 

"<%= btnDownload.UniqueID %>", ""); // Call the 'btnDownload_Click' function on the server ;

}

 

function extendedFileExplorer_combinePathsInAString(arrayOfSelectedItems) {

 

var itemPaths = new Array();

 

for (var i = 0; i < arrayOfSelectedItems.length; i++) {

 

// Pass all the selected paths ;

itemPaths.push(arrayOfSelectedItems[i].get_path());

}

 

// Return a string that contains the paths ;

 

return itemPaths.join("|");

}


So this fires off the btnDownload button click event on the server.  From there I am using the DotNetZip library which has tons of progress feedback events that I can access.  So I need to notify the client of some of those events like which file is compressing and total percentage completed.  Has anyone ever tried something like this and made it work?

Thanks,
Adam
Dobromir
Telerik team
 answered on 17 Jul 2012
1 answer
108 views
I have a page with a grid and when the datasource the grid is bound to has no rows, when the grid displays the filter boxes are not displayed.  A checkbox on the page where the grid is displayed can be checked by the user which then creates a new datasource that does have rows based on a different search criteria and the grid redisplays but the filter boxes are not shown and thus the grid rows cannot be filtered.  Is there a way to force the display of the filter boxes after the datasource is refreshed?
Shinu
Top achievements
Rank 2
 answered on 17 Jul 2012
1 answer
144 views
I have a RadDateTimePicker which in edit mode you may want to set text to nothing e.g. select the date string and press delete button on your keyboard. However the date is still present so i can't find out if user has deleted the text or not. How do i do that?

Basically i need to find out if RadDateTimePicker.Text = String.Empty and set the SqlParameter value to DbNull.Value

Thank you so much
Shinu
Top achievements
Rank 2
 answered on 17 Jul 2012
2 answers
88 views
I have an issue with formviews being nested inside the templatecolumn of a radGrid and the whole thing is wrapped in an updatepanel.
A dropdown list refreshes data inside the template columns on index changed, and performs a databind on each formview found in each row.
If the dataitemcount of the formview is 0 it goes to insert which works fine.

The problem is when changing the mode to insert on the formview, it will NOT go back to readonly mode even when there is data.  I'm getting double ups in the database from users thinking there's no data.  I'm getting no errors reported by the system.  It just won't pick up the dataitemcount going to 1.
I can force it to readonly in the script, but I can't get it to changemode using dataitemcount any more.

I'm doing the formview refresh using the following code contained in a dropdown_selectedindexchanged function.

        foreach (GridDataItem ri in RadGrid1.Items)
        {
            Label Label1 = (Label)ri.FindControl("Label1");
            Label1.Text = DropDownList2.SelectedItem.Text;
            FormView fw1 = (FormView)ri.FindControl("fw1");
            fw1.DataBind();

            if (fw1.DataItemCount> 0)
            {
                
            }
            else
            {
                fw1.ChangeMode(FormViewMode.Insert);
            }

UpdatePanel1.update();
}


any ideas how I can get it to change back??
Morgan
Top achievements
Rank 2
 answered on 17 Jul 2012
2 answers
444 views
I have a client asking to have an Export Excel button appear outside of the RadGrid. Is it possible in this scenerio for the button to call the RadGrid's built-in functionality of exporting to Excel? If so, how can I achieve this?

Thanks,

-Scott
Scott
Top achievements
Rank 1
 answered on 16 Jul 2012
3 answers
213 views
Hello,

Using Telerik.Web.UI_2011_3_1305
I have a SQL Server table with approx 600,000 records and 28 columns. I created an ASP.Net page with a RadGrid set-up in "Grid / Virtual Scrolling and Paging" as described in the article at:  
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx
(see code below)
However the performance is poor: loading a new grid page takes a very long time, approx 30 seconds...

Please also note the following:
- the SQL Server database is hosted on the same machine
- the development machine is very fast and has 6GB of RAM
Therefore it is not the environment that causes the performance issue.

Please advise.
Regards,
M.R.

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="SqlDataSource1"
   GridLines="None" Width="916px" AllowPaging="True" VirtualItemCount="5000" PageSize="10">
   <ClientSettings>
     <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"
       SaveScrollPosition="True"></Scrolling>
   </ClientSettings>
   <MasterTableView AutoGenerateColumns="False" DataKeyNames="SBACTN" DataSourceID="SqlDataSource1"
     AllowCustomPaging="False" AllowPaging="True" AllowSorting="True" VirtualItemCount="5000"
     AlternatingItemStyle-ForeColor="#CC00CC">
     <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
     <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
       <HeaderStyle Width="20px"></HeaderStyle>
     </RowIndicatorColumn>
     <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
       <HeaderStyle Width="20px"></HeaderStyle>
     </ExpandCollapseColumn>
     <Columns>
       <telerik:GridBoundColumn DataField="SBSACT" FilterControlAltText="Filter SBSACT column"
         HeaderText="SBSACT" SortExpression="SBSACT" UniqueName="SBSACT">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBACTN" FilterControlAltText="Filter SBACTN column"
         HeaderText="SBACTN" ReadOnly="True" SortExpression="SBACTN" UniqueName="SBACTN">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBNAM" FilterControlAltText="Filter SBNAM column"
         HeaderText="SBNAM" SortExpression="SBNAM" UniqueName="SBNAM">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBSTAT" FilterControlAltText="Filter SBSTAT column"
         HeaderText="SBSTAT" SortExpression="SBSTAT" UniqueName="SBSTAT" ReadOnly="False">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCTY2" FilterControlAltText="Filter SBCTY2 column"
         HeaderText="SBCTY2" SortExpression="SBCTY2" UniqueName="SBCTY2">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCTY1" FilterControlAltText="Filter SBCTY1 column"
         HeaderText="SBCTY1" SortExpression="SBCTY1" UniqueName="SBCTY1">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBGRID" FilterControlAltText="Filter SBGRID column"
         HeaderText="SBGRID" SortExpression="SBGRID" UniqueName="SBGRID">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCNCL" FilterControlAltText="Filter SBCNCL column"
         HeaderText="SBCNCL" SortExpression="SBCNCL" UniqueName="SBCNCL">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBI2NO" FilterControlAltText="Filter SBI2NO column"
         HeaderText="SBI2NO" SortExpression="SBI2NO" UniqueName="SBI2NO">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDMS1" FilterControlAltText="Filter SBDMS1 column"
         HeaderText="SBDMS1" SortExpression="SBDMS1" UniqueName="SBDMS1">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDMS2" FilterControlAltText="Filter SBDMS2 column"
         HeaderText="SBDMS2" SortExpression="SBDMS2" UniqueName="SBDMS2">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDTIN" DataType="System.DateTime" FilterControlAltText="Filter SBDTIN column"
         HeaderText="SBDTIN" SortExpression="SBDTIN" UniqueName="SBDTIN">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDTCN" DataType="System.DateTime" FilterControlAltText="Filter SBDTCN column"
         HeaderText="SBDTCN" SortExpression="SBDTCN" UniqueName="SBDTCN">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDTST" DataType="System.DateTime" FilterControlAltText="Filter SBDTST column"
         HeaderText="SBDTST" SortExpression="SBDTST" UniqueName="SBDTST">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBLANG" FilterControlAltText="Filter SBLANG column"
         HeaderText="SBLANG" SortExpression="SBLANG" UniqueName="SBLANG">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCONT" FilterControlAltText="Filter SBCONT column"
         HeaderText="SBCONT" SortExpression="SBCONT" UniqueName="SBCONT">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBADDR" FilterControlAltText="Filter SBADDR column"
         HeaderText="SBADDR" SortExpression="SBADDR" UniqueName="SBADDR">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBSTR" FilterControlAltText="Filter SBSTR column"
         HeaderText="SBSTR" SortExpression="SBSTR" UniqueName="SBSTR">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCTY" FilterControlAltText="Filter SBCTY column"
         HeaderText="SBCTY" SortExpression="SBCTY" UniqueName="SBCTY">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBPROV" FilterControlAltText="Filter SBPROV column"
         HeaderText="SBPROV" SortExpression="SBPROV" UniqueName="SBPROV">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBPOST" FilterControlAltText="Filter SBPOST column"
         HeaderText="SBPOST" SortExpression="SBPOST" UniqueName="SBPOST">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBTEL" FilterControlAltText="Filter SBTEL column"
         HeaderText="SBTEL" SortExpression="SBTEL" UniqueName="SBTEL">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBDTSG" DataType="System.DateTime" FilterControlAltText="Filter SBDTSG column"
         HeaderText="SBDTSG" SortExpression="SBDTSG" UniqueName="SBDTSG">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBFMS7" FilterControlAltText="Filter SBFMS7 column"
         HeaderText="SBFMS7" SortExpression="SBFMS7" UniqueName="SBFMS7">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBFMS1" FilterControlAltText="Filter SBFMS1 column"
         HeaderText="SBFMS1" SortExpression="SBFMS1" UniqueName="SBFMS1">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBCOMP" FilterControlAltText="Filter SBCOMP column"
         HeaderText="SBCOMP" SortExpression="SBCOMP" UniqueName="SBCOMP">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBFMS5" FilterControlAltText="Filter SBFMS5 column"
         HeaderText="SBFMS5" SortExpression="SBFMS5" UniqueName="SBFMS5">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="SBSIC" FilterControlAltText="Filter SBSIC column"
         HeaderText="SBSIC" SortExpression="SBSIC" UniqueName="SBSIC">
       </telerik:GridBoundColumn>
     </Columns>
     <EditFormSettings>
       <EditColumn FilterControlAltText="Filter EditCommandColumn column">
       </EditColumn>
     </EditFormSettings>
   </MasterTableView>
   <FilterMenu EnableImageSprites="False">
   </FilterMenu>
 </telerik:RadGrid>
M. R.
Top achievements
Rank 1
 answered on 16 Jul 2012
5 answers
433 views
I have a web page that is a list of reports.  I use a RadWindow to get the user to enter parameters for the report.  Is it possible to get the RadWindow to open a new browser window that is active?  I'm using the javascript below which opens the report in a new window but it ends up behind my report selection window.

function returnToParent() 
    window.open(report + paras, """height=740,scrollbars=yes,width=1000,status=yes,toolbar=yes,menubar=yes,resizable=yes"); 
    self.close(); 


I think what's happening is the RadWindow opens the new browser window then closes and the focus reverts back to the parent window.  End result is the new browser window opened for the report is behind my report selection window.  I'd live to have the new window appear on top as the active window.  Any ideas?
bdrennen
Top achievements
Rank 1
 answered on 16 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?