Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
138 views
I have a rad grid where I have the header turned off but I have the Allow Filtering By Column enabled. However, when the header is turned off, the filtering is also gone and the user cannot use it. Is there anyway to show the filtering, but hide the header?

Thanks,
Adam
Dimo
Telerik team
 answered on 04 Aug 2008
2 answers
265 views
Hello, I am new to Telerik controls, and need some help.  I am a science teacher, and trying to be a programmer.  I am having a problem with the RadWindow losing its vertical scroll bars after an Ajax return.  The page I have written is fairly complex:

Main window has a RadSplitter with a left pane containing a RadTree, and the right pane containing a targeted page from whatever the client clicked on the tree view.  The process would be something like this:  User clicks tree node, client side target of the right content pane with a new page.  The page contains a RadGrid.  When the user selects a row in the Grid and Clicks Edit, a new RadWindow is opened maximized over the right pane.  That sets the stage for the problem I am having.  I picked up a nice trick for full screen from the Telerik examples:

<style type="text/css">

html, body, form

{

height: 100%;

margin: 0px;

padding: 0px;

overflow: hidden;

}

</style>



Now in this page there is a RadText box, and three Images.  When a user clicks on the image client side code goes to the parent page (right pane), and gets a handle on the main browser window, and opens a modal maximized RadWindow over the whole screen.  The page it loads is similar to the above, having a splitter (left pane a tree view housing image categories), and the right pane a page targeted from whatever the user selected in the tree view.  Everything works fine as the user selects a tree item, the right pane loads the page, and if the user wants to select a color for the image, then they click on a link which opens a RadWindow Modal Maximized over the right pane.  The user goes on until they have selected a skin and container for their site.

Once they are done, and the user selects a container, the container selector page makes an Ajax call to save their selection, and then on the Ajax return all the windows are closed all the way back to the original opened window over the two pane main window, which if the argument from the "Skin Selector" has a given value, the page makes an Ajax call to the server to save the selections, and refresh the page with the correct images that they selected.  This is where the problem lies.  The page is rather long, and before the Skin Selector window is opened there are vertical and based on whether their window is full screen or not, they may have a horizontal scroll bar.  When the AjaxManager Ajax request is completed and returned to the client all of my scroll bars go away and the user cannot see or click on the save button at the bottom of the page.

Am I doing something wrong here?  This didn't seem to happen until I started using the Ajax call back for the window.

My System is as follows:
Windows XP SP3
Visual Studio 2005 Pro
SQL Server 2005 ENTERPRISE
Internet Explorer 6.0.2900.5512.xpsp.080413-2111

I have not tried this in IE 7.0 yet or the other browsers I use to test the site before deployment (Firefox, Opera, Netscape 7).

Maria Ilieva
Telerik team
 answered on 04 Aug 2008
1 answer
114 views
I cannot change the Grid...Controls textbox widths.  I want to limit the below textbox to 8 characters.  Especially limit the associated Filter textbox for this control.  The default group headings are much larger than required.

Thanks for the assistance.

<

telerik:GridNumericColumn AllowFiltering="true" AllowSorting="true"

AutoPostBackOnFilter="true" DataField="Miles" DataFormatString="{0:N0}"

DataType="System.Int32" Groupable="true" HeaderText="Miles"

ItemStyle-HorizontalAlign="Right" MaxLength="8" NumericType="Number"

Resizable="true" UniqueName="Miles" >

<FooterStyle HorizontalAlign="Right" />

<ItemStyle HorizontalAlign="Right" />

</telerik:GridNumericColumn>

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2008
1 answer
136 views
I have placed a standard ASP:Checkbox control into a custom EditForm of a RadGrid. I'm trying to use <%# Bind("IsActive") #> to bind the control to a 'bit' field in a SQL Server 2005 database.

<asp:CheckBox ID="IsActive" runat="server" Checked=<%# Bind("IsActive") %>

Unfortunately when I attempt to insert a new record into the grid I get an "InvalidCast" exception.

When I attempt to update a record in the grid, no exceptions occur, however the underlying database record isn't updated.

Any ideas?



Princy
Top achievements
Rank 2
 answered on 04 Aug 2008
4 answers
222 views
<radG:GridBoundColumn DataField="Tanim" meta:resourcekey="RadGrid1_Tanim" SortExpression="Tanim"
                    UniqueName="Tanim" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo">
                </radG:GridBoundColumn>

Hi all. I have above code in mastertableview.columns of my radgrid. My purpose is to filter the grid with "equalTo" when the user hits enter button.

But the filterfunction is always the first item of the filterOptionsList. If its equalTo its ok but most of the time its LIKE!

I have written custom columns and they work well. I have this problem only with GridBoundColumn!

Why can this be, any suggestions?
Shinu
Top achievements
Rank 2
 answered on 04 Aug 2008
1 answer
163 views
i am having checkbox in rad grid and i have implemented the pagination for rad grid. When i select few check box form page 1 and click few check boxes in page two. When i come back to page 1 again, all the check box are unchecked..

When i try get the selected checkbox. only the existing page, selected checkbox value i am getting not all checkbox value from all pages
Princy
Top achievements
Rank 2
 answered on 04 Aug 2008
1 answer
150 views
Hi all,

I have a form that allows users to create records.  After the user submits the form, we display an UpdateProgress panel while the form is being submitted.  Once the form is done, the UpdateProgress Panel closes. 

I would like to immediately show a tooltip or modal popup to allow the user to either confirm they are done, or if they would like to add an additional record. 

Is there sample code on how to do something like this?

Thanks in advance.

Vincent.
Kevin Babcock
Top achievements
Rank 1
 answered on 04 Aug 2008
1 answer
89 views
Hi,

I am creating a custom commanditem like this

ReportsGrid.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.Bottom;
ReportsGrid.MasterTableView.CommandItemTemplate =
new MyTemplate(
);

In my 
MyTemplate's InstantiateIn, I create a custom label with my own message.
It works fine. But when I try to export this to pdf, the commanditem is completely mangled with improper width and some how it resorts to the width of the first column of the grid.

How do I fix this?

-MK

Shinu
Top achievements
Rank 2
 answered on 04 Aug 2008
4 answers
222 views
I have a GridCheckBoxColumn in my RadGrid. This column is bound to "Bit" type field in the SQL Server.  I can sucessfully Insert and Edit the item in In-Place and Auto Generated Form Type modes. 

However when I use Template in EditFormType then I can only Edit the item succssfully, but Insert throws an exception as shown below:

The Exception points to this block of code:

<
asp:CheckBox ID="CheckBox1" runat="server" DataType="System.Boolean" Checked="<%# Bind('IsActive') %>" />

The Exception box contains this text:

InvalidCastException was unhandled by user code
Specified cast is not valid

I would assume that when the Item is called for Editing the bound field has either True or False as its value. However upon Insertion the bound field is NULL at that stage, and therefore the Checkbox throws this exception.  This is just my assuption and could be wrong.

Please guide me how to fix this problem.

Tariq

Yavor
Telerik team
 answered on 04 Aug 2008
5 answers
402 views
I have a databound grid that works fine when there is data returned in the selectcommand of its sqldatasource. However on the inital load of the page I need to show the grid with no data (empty) but the column headers showing. If I remove the selectcommand of the sqldatasource just an empty block appears with no column headers. If I create a selectcommand in the datasource where nothing will be returned ie. "Select ... where 1=2" then I get the desired result. However this requires the grid to do an actual query to the db which seems a little wasteful to me. Is there a way to have this databound grid (I am using telerik:GridBoundColumn for all columns) show the column header without this initial databind?
Xcalibur
Top achievements
Rank 1
 answered on 04 Aug 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?