Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hi
I have a small problem with telerik grid.
i am using Hierarchical grid i.e. grid in grid functionality, where i can edit the grid items.
now i am checking some validation functionality from backend i.e. from C# coding now if some validation goes wrong i will throw some error message which get displayed at top of grid bu t fortunalty entire gridd gets collapsed,if it is in edit mode .i.e.if user ihas entered some data in textbooxes all get collapsed . he has to redo all the data entery activites again 
.

Is there any way to stop grid from collapsing back and keeping all fields as it is in text boxes?
Waiting for reply  
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
4 answers
90 views
Hi

In RadGrid I have :

.......  
<FormTemplate> 
<telerik:RadDatePicker runat="server" ID="PickerTimeFrom"   
   SelectedDate='<%# DataBinder.Eval( Container, "DataItem.timeFrom" ) %>'   >                                          
</telerik:RadDatePicker> 
 
.... 

When I get data to edit in this Grid everything work well.
But if I click "new record" link on footer of RadGrid I get : Specified cast is not valid.

How can I fix it ??

Regards
Krzysztof
Vlad
Telerik team
 answered on 19 Feb 2009
3 answers
108 views
Hi,

I have a grid where I need all of the child records to be open when the page loads. I've set that hierarchy default expanded property so that the records are open, but the child records do not diplay any data. I'm wondering how to populate the child records based on their parent records?

Thanks 
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
296 views
Hi Experts ..

I am using LINQ to to set RadGrid.DataSource, and I want to add additional empty row, at the 1st row of the grid, how to do that?

Master db = new Master(ConfigurationManager.ConnectionStrings["master"].ConnectionString); 
db.Log = Console.Out; 
EventsGrid.DataSource = from p in db.Event select p; 

<telerik:RadGrid ID="EventsGrid" runat="server" AllowSorting=true AllowPaging=true
</telerik:RadGrid> 

any idea?
Princy
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
89 views
Hi,

I have a datetime column in my grid, and I want to filter this "date and time" to get records between given days and hours.

Example : records between (01/01/2001 11:11:11) and (02/02/2002 22:22:22)

What should I type in the Filter Textbox to filter days and hours/minutes/seconds ?
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
189 views
Is it possible to put some kind of text on GridClientSelectColumn's header?   HeaderText doesn't do anything.

I already have this code to hide the checkbox.

    Private Sub RadGridAttachment_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridAttachment.ItemDataBound
        'Hide the client side checkbox in the header
        If TypeOf e.Item Is GridHeaderItem Then
            Dim header As GridHeaderItem = DirectCast(e.Item, GridHeaderItem)
            header("ClientSelectColumn").Controls(0).Visible = False
        End If
    End Sub
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
281 views
When I click to edit a record in a grid, there are 2 icons that are dynamically created: the "Update" icon and the "Cancel" icon.  I want to put a Tooltip on both of those, but being that they are created dynamically, they aren't explicitly defined in the markup.  For example, here's my markup for the grid:

<radG:RadGrid ID="CriteriaGrid" runat="server" GridLines="None" AutoGenerateColumns="False"
                    AllowSorting="True" Height="472px" Width="764px" EnableAJAX="True"
                    OnNeedDataSource="CriteriaGrid_NeedDataSource" OnCreateColumnEditor="CreateEditor"
                    OnItemCreated="CriteriaGrid_ItemCreated" OnItemDataBound="CriteriaGrid_ItemDataBound"
                    OnInsertCommand="CriteriaGrid_InsertCommand" OnUpdateCommand="CriteriaGrid_UpdateCommand"
                    OnDeleteCommand="CriteriaGrid_DeleteCommand">
                    <MasterTableView EditMode="InPlace" DataKeyNames="rpcri_pk" CommandItemDisplay="Top"
                        NoMasterRecordsText="" EnableNoRecordsTemplate="False" TableLayout="Fixed">
                        <EditFormSettings EditColumn-ButtonType="ImageButton"/>
                        <CommandItemTemplate>
                            <asp:Button ID="AddCriteria" runat="server" CommandName="InitInsert"
                                CssClass="grButtonLong" Text="Add Criteria"/>
                        </CommandItemTemplate>
                        <Columns>
                            <radG:GridEditCommandColumn ItemStyle-HorizontalAlign="Center" UniqueName="EditCommandColumn" ButtonType="ImageButton"
                                HeaderStyle-Width="20px"/>
                            <radG:GridButtonColumn ItemStyle-HorizontalAlign="Center" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"
                               HeaderStyle-Width="20px" ButtonType="ImageButton"/>
                            <radG:GridDropDownColumn HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="Center" DataField="rpcri_and_or" UniqueName="rpcri_and_or"
                                ListTextField="text" ListValueField="value" HeaderStyle-Width="80px"/>
                            <radG:GridDropDownColumn HeaderStyle-HorizontalAlign="Center" DataField="rpcri_rpc_fk" UniqueName="rpcri_rpc_fk"
                                ListTextField="langstring" ListValueField="rpc_pk" HeaderStyle-Width="200px"/>
                            <radG:GridDropDownColumn HeaderStyle-HorizontalAlign="Center" DataField="rpcri_rpcon_fk" UniqueName="rpcri_rpcon_fk"
                                ListTextField="rpcon_description" ListValueField="rpcon_pk" HeaderStyle-Width="120px"/>
                            <radG:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="rpcri_value" UniqueName="rpcri_value"
                                HeaderStyle-Width="128px"/>
                            <radG:GridCheckBoxColumn HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" DataField="rpcri_static_field" UniqueName="rpcri_static_field"
                                HeaderStyle-Width="90px"/>
                            <radG:GridCheckBoxColumn  HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" DataField="rpcri_mandatory" UniqueName="rpcri_mandatory"
                                HeaderStyle-Width="90px"/>
                            <radG:GridCheckBoxColumn Visible="false" DataField="rpcri_function_arg" UniqueName="rpcri_function_arg"
                                />
                        </Columns>
                        
                    </MasterTableView>
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True"/>
                        <Resizing AllowColumnResize="True"/>
                    </ClientSettings>
                </radG:RadGrid>

The columns in the above grid are laid out- but when I click to edit a record, the column changes to accommodate those two newly created icons, "Update" and "Cancel".  Please help!!  Thanks.
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
93 views
Hi,

1) How to read the values of the selected RadGrid Row using javascript?

2) Is there a way to iterate over the RadGrid rows in java script and retrieve the values of each row?

Thanks,
Princy
Top achievements
Rank 2
 answered on 19 Feb 2009
3 answers
84 views
How do i export additional data items not shown in radgrid but bound to the grid datasource? thanks
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2009
1 answer
109 views

Before (this is to align the table itself, NOT the text inside)

<table align=right>
    <tr>
        <td>asdf
       </td>
    </tr>
</table>

After editing with 2008.3 1125, it aligns the text inside right and the table itself is not aligned to the right.

<table style="text-align: right">
    <tbody>
        <tr>
            <td>asdf</td>
        </tr>
    </tbody>
</table>

Is this issue fixed in mid January release (2008.3 1314) ?

I see this item in the Release History of 2008.3 1314:

  • Fixed a problem with the align attribute of tables.

Please let me know.

Thanks, Lakshman

Lakshman
Top achievements
Rank 1
 answered on 19 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?