Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views

 

I have one problem will explain it

I have two rad grid
The first grid hierarchy contain classes and class_id is primary key ,when expand one class
will show all the student in this class
The second gride has students the primary key student_id
I want drag and drop student from second grid to students in one class in first grid
Note: the students in first grid expanded from classes
also I want when I dragdrop the student
I want to get in which class_id

  The code below to retrieve student_id from second radgrid

 

Protected Sub RadGrid_Students_RowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgs) Handles RadGrid_Students.RowDrop
        If e.DraggedItems.Count > 0 Then
            Dim a As String = e.DraggedItems(0).GetDataKeyValue("Client_id")
 
        End If
    End Sub


How retrieve in which class_id from destination radgrid

Tsvetina
Telerik team
 answered on 20 Sep 2012
1 answer
680 views
Hi,
I have to disable some columns in telrik rad grid or set the column as read only.

Thanks & Regards
Anzar.M
Princy
Top achievements
Rank 2
 answered on 20 Sep 2012
2 answers
135 views
Hi,
I have  to block some characters(%,!) when entering filter characters on the filter text box.

Thanks & Regards
Anzar.M
Anzar
Top achievements
Rank 2
 answered on 20 Sep 2012
4 answers
271 views

I am using RadGrid, and I have set all the relevant properties in order to enable scrolling, still it is rendering properly in IE 7 and grid comes in compressed form, where in I can barely see the half header. Interesting thing is, initially grid is visible to its full, but after sometime its height is reduced.

Below is the code.

<

telerik:RadGrid ID="gd" runat="server" AllowPaging="false" AllowSorting="True" GridLines="None"

Skin="Office2007" AutoGenerateColumns="False" OnItemDataBound="gd_ItemDataBound"

Height="99%" Width="99%" AllowMultiRowSelection="true" ShowGroupPanel="true"

EnableViewState="true" AlternatingItemStyle-BackColor="#eeeeee" HorizontalAlign="NotSet">

<

MasterTableView GroupLoadMode="Client" GroupsDefaultExpanded="true" TableLayout="Auto">

<

GroupByExpressions>

<telerik:GridGroupByExpression>

<SelectFields>

<telerik:GridGroupByField FieldName="Desc" HeaderText=" " HeaderValueSeparator=" " />

</SelectFields>

<GroupByFields>

<telerik:GridGroupByField FieldName="Id" SortOrder="Descending" />

</GroupByFields>

</telerik:GridGroupByExpression>

</GroupByExpressions>

<

RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<Columns>

<telerik:GridTemplateColumn HeaderText="Column#" ItemStyle-Width="15%" HeaderStyle-Width="15%"

ItemStyle-VerticalAlign="Top" ShowSortIcon="true" SortAscImageUrl="../MyAircraft/Images/SortAsc.gif"

SortDescImageUrl="../MyAircraft/Images/SortDesc.gif" SortExpression="ColNbr">

<ItemTemplate>

<asp:Label ID="lblColNbr" runat="server"></asp:Label>

</

ItemTemplate>

<ItemStyle VerticalAlign="Top" Width="10%"/>

</telerik:GridTemplateColumn>

</

Columns>

<

EditFormSettings>

<PopUpSettings ScrollBars="None" />

</EditFormSettings>

</MasterTableView>

<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

Font-Underline="False" VerticalAlign="Top" Wrap="True" Height="100%" Width="100%" />

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowKeyboardNavigation="true">

<Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />

<Scrolling AllowScroll="true" UseStaticHeaders="true" />

<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True"

ClipCellContentOnResize="true"></Resizing>

</ClientSettings>

</telerik:RadGrid>



I am populating the grid at runtime, and values of the lblColnbr is set in gd_ItemDataBound.

There are few more columns with label and text box, as it will increase the size of the text, i am not including those.

Please let me know if I have missed anything here.

Thanks,
Het



Vargis
Top achievements
Rank 1
 answered on 20 Sep 2012
1 answer
96 views

After I use server code to open radwindow,

RadWindow selectAccountWindow = (RadWindow)this.Master.FindControl("wndForceSelectAccount");
          selectAccountWindow.VisibleOnPageLoad = true;

I am not able to trigger OnClientClose client side javascript. Is there anyway I can trigger OnClientClose happen?

Thanks
Princy
Top achievements
Rank 2
 answered on 20 Sep 2012
16 answers
670 views
We want to set the Grid Height automatically according to browser height. When full screen is activated it should acquired the free vertical space maximum and then show data inside scroll if there is more data rows.

There may be other controls along with this grid.

I had visit and go through the link below
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

Attached files
and downloaded the zip file but i cant run. Please help me to view that project.

Also I am attaching the sample what we exactly want. Please have a look on the below attached image.
Vargis
Top achievements
Rank 1
 answered on 20 Sep 2012
1 answer
227 views
I have a radtextbox that Im using as a log/console display. Using javascript, how do I add additional text to the text box?
Princy
Top achievements
Rank 2
 answered on 20 Sep 2012
1 answer
106 views
Hello,

I am using a little bit old version of telerik (v 2010.2.929.35).

When I want to change my grid to let user to select single cell, I find that there is no setting "CellSelectionMode". In ClientSetting.Selecting, there are only 3 settings "AllowRowSelect", "EnableDragToSelectRows" and  "UseClientSelectColumnOnly".

Should I use a latest version or there are other method to let user to select a single cell and get the value of the selected cell?

Kev
 
Shinu
Top achievements
Rank 2
 answered on 20 Sep 2012
1 answer
70 views
Good day,

I have the following drawbacks: I have a RadTreeView check where I put them, but the only ones that should be checked are the last level records. the RadTreeView is populated dynamically, it is not known how many levels you may have.

I wonder how I can determine when performing bone click a node in the event "OnNodeClick" if you are in the last level?
and searches for node propiedas this event but I can only determine who the father but not if you have children.

Thanks for your help
Princy
Top achievements
Rank 2
 answered on 20 Sep 2012
3 answers
272 views
HI,

I am using Rad Tree view where i want to highlight the selected node.
Here is my code.On each rad tree node i have a navigation URL.

 <telerik:RadTreeView ID="TreeMail" runat="server" Skin="Vista" OnNodeClick="TreeMail_NodeClick"  CausesValidation="false" >
                                                <Nodes>
                                                    <telerik:RadTreeNode  Value="_New" AllowEdit="false"  NavigateUrl="../WebsiteManagement/AddRegistration.aspx" ImageUrl="../Images/new.gif"
                                                        Text="New Mail" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode  Value="_Private_Drafts" AllowEdit="false"  NavigateUrl="../MailFolders/Drafts.aspx" ImageUrl="../Images/Drafts.gif"
                                                        Text="Drafts" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_DeletedItems"  NavigateUrl="../MailFolders/DeletedItems.aspx" ImageUrl="../Images/Deleted Items.gif"
                                                        AllowEdit="false" Text="Deleted Items" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_Inbox" AllowEdit="false" Text="Inbox"  NavigateUrl="../MailFolders/Inbox.aspx" ImageUrl="../Images/Inbox.gif"
                                                        Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_SentItems" AllowEdit="false" Text="Sent Items" NavigateUrl="../MailFolders/SentItems.aspx"
                                                        ImageUrl="../Images/Sent Items.gif" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                </Nodes>
                                            </telerik:RadTreeView>
How can i do this? Plz help as early as possible.
Thanks.
Aarsh
Top achievements
Rank 1
 answered on 19 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?