Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
144 views
I have searched around for a while but have not found any code in the demos or forum on how to make the update button in an edit form on radgrid onclick run some client side error checking (code for accessing the ids of the text boxes a plus) and then if it passes move on to the RadGrid1_UpdateCommand.

Thanks for your help
chris
Top achievements
Rank 1
 answered on 10 Feb 2009
1 answer
157 views
Hi,
I went through one issue.Problem is that I have RadGrid in a page whose Property AllowFilteringByColumn is set to true.
And there is one RadMenu on top of Page..So When My data is displayed in RadGrid and when I click
on column  for filtering values then I get many Context Menu options Like(Greater Than,Smaller Than,Equal To.....),
these are the options on which based I want to filter my data.
       But Problem is that those Context Menu options's height is more So those come below to Menu Bar.Is there any way  so that
those options will come above of Menu Bar.I tried ZIndex in RadGrid but It does not work.
 I hope I'll get my solution soon.

Thanks
Shinu
Top achievements
Rank 2
 answered on 10 Feb 2009
2 answers
178 views
Hi,

I'm using a RadGrid with a fixed height in pixels. I've set the MasterTableView's AllowPaging property to "true" and the PageSize property to "19" (because I want to display 19 rows on each page).

My problem is that when I reach last page, which does not contain 19 elements (unless the total is a multiple of 19 but hey), then on that page the rows take all the available space in height. For example, if a page contains only 2 elements, I'm getting 2 rows each taking 50% of the total height.

Obviously what I would like is the rows height to stay the same accross the pages (I tried setting ItemStyle-Height to a fixed dimension but did not change anything). So, if I have a page with 2 rows, knowing that the PageSize is set to 19, I would like my 2 rows to be followed by the equivalent of 17 empty rows in height.

How can I achieve this?

Hope that makes sense.

Thanks,
Nicolas


------
Just for clarity sake:

- What I have (1st page on the left, 2nd page on the right, assuming PageSize=19 and I have a total of 20 rows):

------------------------------                -------------------------- 
header 
------------------------------                header 
row1 
------------------------------                -------------------------- 
row2 
------------------------------                row20 
... 
------------------------------                -------------------------- 
row19 
------------------------------                pager 
pager 
------------------------------                -------------------------- 

- What I would like:

--------------------------                -------------------------- 
header                                    header 
--------------------------                -------------------------- 
row1                                      row20 
--------------------------                --------------------------  
row2 
--------------------------                empty space not selectable  
...                                                 here 
-------------------------- 
row19 
--------------------------                -------------------------- 
pager                                     pager 
--------------------------                -------------------------- 
Nicolas
Top achievements
Rank 1
 answered on 10 Feb 2009
4 answers
131 views

I've got an issue where the filter list is not showing all the list items.  The top of the list is cut off and "NoFilter" is not showing.  I think it might be a CSS setting but all the attempts to fix have failed.  The RadGrid is inside column1 of a two column master page.  Also, looks like the list is "double spaced" and therefore making the list longer than it has to be.

Anyone have any suggestions?

Thanks,
David

<%@ Page Title="" Language="C#" MasterPageFile="~/Layouts/TwoColumn.master" AutoEventWireup="true" CodeFile="bus_loc.aspx.cs" Inherits="co_listings_bus_loc" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="Column1" Runat="Server"
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
        ConflictDetection="CompareAllValues"  
        ConnectionString="<%$ ConnectionStrings:holhrb1_uni_common %>"  
        DeleteCommand="DELETE FROM [bus_loc] WHERE [SYSTEM] = @original_SYSTEM AND [CLIENT] = @original_CLIENT AND [JOBBER] = @original_JOBBER AND (([LOC] = @original_LOC) OR ([LOC] IS NULL AND @original_LOC IS NULL)) AND (([LOC_NAME] = @original_LOC_NAME) OR ([LOC_NAME] IS NULL AND @original_LOC_NAME IS NULL)) AND (([CLASS] = @original_CLASS) OR ([CLASS] IS NULL AND @original_CLASS IS NULL))"  
        InsertCommand="INSERT INTO [bus_loc] ([SYSTEM], [CLIENT], [JOBBER], [LOC], [LOC_NAME], [CLASS]) VALUES (@SYSTEM, @CLIENT, @JOBBER, @LOC, @LOC_NAME, @CLASS)"  
        OldValuesParameterFormatString="original_{0}"  
        SelectCommand="SELECT [SYSTEM], [CLIENT], [JOBBER], [LOC], [LOC_NAME], [CLASS] FROM [bus_loc]"  
        UpdateCommand="UPDATE [bus_loc] SET [LOC] = @LOC, [LOC_NAME] = @LOC_NAME, [CLASS] = @CLASS WHERE [SYSTEM] = @original_SYSTEM AND [CLIENT] = @original_CLIENT AND [JOBBER] = @original_JOBBER AND (([LOC] = @original_LOC) OR ([LOC] IS NULL AND @original_LOC IS NULL)) AND (([LOC_NAME] = @original_LOC_NAME) OR ([LOC_NAME] IS NULL AND @original_LOC_NAME IS NULL)) AND (([CLASS] = @original_CLASS) OR ([CLASS] IS NULL AND @original_CLASS IS NULL))"
        <DeleteParameters> 
            <asp:Parameter Name="original_SYSTEM" Type="String" /> 
            <asp:Parameter Name="original_CLIENT" Type="Int32" /> 
            <asp:Parameter Name="original_JOBBER" Type="Int32" /> 
            <asp:Parameter Name="original_LOC" Type="String" /> 
            <asp:Parameter Name="original_LOC_NAME" Type="String" /> 
            <asp:Parameter Name="original_CLASS" Type="String" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="LOC" Type="String" /> 
            <asp:Parameter Name="LOC_NAME" Type="String" /> 
            <asp:Parameter Name="CLASS" Type="String" /> 
            <asp:Parameter Name="original_SYSTEM" Type="String" /> 
            <asp:Parameter Name="original_CLIENT" Type="Int32" /> 
            <asp:Parameter Name="original_JOBBER" Type="Int32" /> 
            <asp:Parameter Name="original_LOC" Type="String" /> 
            <asp:Parameter Name="original_LOC_NAME" Type="String" /> 
            <asp:Parameter Name="original_CLASS" Type="String" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="SYSTEM" Type="String" /> 
            <asp:Parameter Name="CLIENT" Type="Int32" /> 
            <asp:Parameter Name="JOBBER" Type="Int32" /> 
            <asp:Parameter Name="LOC" Type="String" /> 
            <asp:Parameter Name="LOC_NAME" Type="String" /> 
            <asp:Parameter Name="CLASS" Type="String" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"  
        AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="True"  
        AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1" GridLines="None"
<HeaderContextMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView AutoGenerateColumns="False" DataKeyNames="SYSTEM,CLIENT,JOBBER"  
            DataSourceID="SqlDataSource1"
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="SYSTEM" HeaderText="SYSTEM" ReadOnly="True"  
            SortExpression="SYSTEM" UniqueName="SYSTEM"  
            FilterListOptions="AllowAllFilters"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CLIENT" DataType="System.Int32"  
            HeaderText="CLIENT" ReadOnly="True" SortExpression="CLIENT" UniqueName="CLIENT"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="JOBBER" DataType="System.Int32"  
            HeaderText="JOBBER" ReadOnly="True" SortExpression="JOBBER" UniqueName="JOBBER"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="LOC" HeaderText="LOC" SortExpression="LOC"  
            UniqueName="LOC"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="LOC_NAME" HeaderText="LOC_NAME"  
            SortExpression="LOC_NAME" UniqueName="LOC_NAME"
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CLASS" HeaderText="CLASS"  
            SortExpression="CLASS" UniqueName="CLASS"
        </telerik:GridBoundColumn> 
    </Columns> 
    <PagerStyle Mode="NumericPages" /> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
    </telerik:RadGrid> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="GridView1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="GridView1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="Column2" Runat="Server"
</asp:Content> 
 
 

David
Top achievements
Rank 1
 answered on 10 Feb 2009
1 answer
148 views

Item Texts  in RADGrid columns overlap in Mozilla firefox. I do not want to wrap the text and make it appear on the next line as we have calibrated Row height and Grid Height for specific scenario. I would rather prefer trim the text if it’s length is greater than the column width. Please suggest a way to handle this problem.  I have set  ClipCellContent OnResize = True. It works fine in IE7 but not in Firefox and Chrome.

Dimo
Telerik team
 answered on 10 Feb 2009
3 answers
68 views
Dear My Friends ,
i want set error handling in my program in "How To" section i found OnAjaxRequestError event but my control does not have this event!
where is this event

please help me!
Daniel
Telerik team
 answered on 10 Feb 2009
0 answers
158 views
When your TreeView uses data binding the NodeDataBound event will not fire unless your 

DataFieldParentID column has a null value. I found this when binding to custom objects; in my application in most cases the top most parent had a null value in the DataFileParentID column. Because it was a custom object (composite object) In rare cases my object was returning a zero length string as parent. This was interpeted as being not a valid parent by TreeView and therefore it wasn't consdered for the root, and therefore, the NodeDataBound event wouldn't fire.

Another clear indicator that this problem is occuring is when the TreeView is displayed on the page as empty.

Hope this helps others as my searches here didn't provide any insight into why the event wasn't firing.

Jay
Top achievements
Rank 1
 asked on 10 Feb 2009
1 answer
146 views
Hello,

Looking at all the available methods of data binding and code examples i'm having a hard time deciding on how to approach a relatively simple design.

1)
I need to populate a TreeView with data, possibly up to 500 nodes, maybe on demand. I'm using self referencing hierarchical data using ItemID and ParentID. I would like to be able to drag & drop nodes, and save the changes to the database.

2)
I would also like (on another page) to have 2 treeviews populated by separate queries. I would like to drag & drop from one tree to the other (one direction only) single nodes or entire branches. I would like to save the newly edited tree to the database.

Which databinding methods shoudl I use? Should I use a LinqDataSource, manually populate a dataset from LINQ or something else? I guess I would update changes to the database as they are made. I'm thinking of using a floating SortOrder field in the database. Which code samples should I look at ?

Your advice would be greatly appreciated, as I don't want to start in the wrong direction.

Thanks,

Michael



mfrimu
Top achievements
Rank 1
 answered on 10 Feb 2009
1 answer
84 views
Hi,

I am using Rad Controls in my application. I need to change the Default skin name to my aplpication related name. For Eg: Radcombox  default theme needs to be changed with radcmb in my application. What is best way to do this? I have also customized the Default skin and using it as default1, default2 etc for different look and feel for the same control. How can I use these styles with the new css name?

Is it possible for me to change the 1, 2, 3 numbering for the skins? (eg., Defeult1, Default2 etc. )

Please helpme out in this.
Thanks in advance.
Raj
Paul
Telerik team
 answered on 10 Feb 2009
2 answers
125 views
Hi :)

The scenario I have is this:

A Page containing
  • AjaxManager
  • A user control to be shown a little like a dialog
  • A main form user control
A Main form user control
  • An initiating user control

So I add a setting to the ajaxmanager that the initiating user control updates the control to be shown

but the initiating user control also updates the Main Form user control

I really want the initiating control to only update the user control to be shown like a dialog.

Does this make sense?
Any ideas?

Cheers Martin
Martin Sarosi
Top achievements
Rank 2
 answered on 10 Feb 2009
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?