Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
197 views
Hi,

I'm making an application, where one of the wanted features is to have the ability to move fields around and save their position(the app is mostly made up of data fields, lots of labels and textboxes) and I have been using RadDock to achieve this. It works great, I've removed the styling for the docks so by default they can't be seen, and clicking a button to enter an 'edit mode' reveals the grip drag handle to move them around. When the user is done, you can exit edit mode and the form has been re-arranged with no problems.

What I'm wondering is if there is way to set the drag handle of a RadDock to the RadDock itself, so instead of having the grip appear above the field (it makes the entire form double in height), clicking on anything inside of the dock would allow you to drag it. Obviously the controls inside the dock would not be usable, as for example clicking on a button would just enable the dock for dragging.

I thought I could use the same method as used in the demo for creating a custom drag handle, but it doesn't seem to be working in this situation.

Anyone attempted this before?

Thanks,
Veli
Telerik team
 answered on 07 Sep 2011
0 answers
60 views
Hi,

Can any one explain how to print only RadGrid HeaderRow ?

Thanks in advance...
Guruvu
Top achievements
Rank 1
 asked on 07 Sep 2011
7 answers
299 views
I have a RadGrid, displays strings and ints, and lets you edit them easily.

When I insert, i require a drop down box to be able to select a product, and another drop down box which will let you select units (count, box of 12, case of 4 boxes) etc.  Each Unit is dependent on the Product selected.

Currently the first drop down box has an SelectedIndexChanged Event, which will update the ObjectDataSource and requery.

Now I need to be able to grab the second (unit) Combobox, and do a rebind.

It seems since it's in an insert row, it's difficult to find the control in the grid.

Any Suggestions?
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Sep 2011
0 answers
50 views

Hi,

Now i am able to print RadGrid selected row with the help of following article:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-print-selected-radgrid-row-and-add-new-link-button-in-command-item-template.aspx

I need to print Header Row along with selected row.

How can i achieve this requirement.

Thanks in advance...

Guruvu
Top achievements
Rank 1
 asked on 07 Sep 2011
1 answer
184 views
Hello!

I used a radwindow to show detail and use wnd.Center() to center the popup radwindow.
The problem is that when I choose 50 rows and scroll the grid the popup window (position fixed to the grid) also move with the grid to the top.

I checked all the answers telerik master posted. one is using

 

 

.RadWindow

 {  

 

height:200px;

position: fixed !important;

}

The solution works only for a few top records. when bottom record is clicked the window won't be shown ( I think it maybe shown somewhere which I can't see) and the whole grid page is grayed out.

I don't know how to solve the problem. please help.
My code is code for reference. Thanks again.

        function ShowDetail(sender, args) {
            var id = args.getDataKeyValue("RowID");
            var wnd = window.radopen("CommLogDetail.aspx?RowID=" + id, "RecordDetailWindow");
            wnd.Center();
}
    <script type="text/javascript">
        .RadWindow
        
            height:200px;
            position: fixed !important;
            
        }
    </script>
  
// and I also try to merge these codes into it ( another solution)  which doesn't work.
        function ShowDetail(sender, args) {
            var id = args.getDataKeyValue("RowID");
            var wnd = window.radopen("Detail.aspx?RowID=" + id, "RecordDetailWindow");
            //wnd.Center();
            GetSelectedWindow();
            PositionWindow();
        }
        function GetSelectedWindow() {
            var oManager = GetRadWindowManager();
            return oManager.getActiveWindow();
        }
  
        function PositionWindow() {
  
            var oWindow = GetSelectedWindow();
            if (!oWindow) {
                return;
            }
////
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
                <Windows>
                    <telerik:RadWindow ID="RecordDetailWindow" runat="server" Title="Record Detail" Height="700px"
                        Width="900px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                        CssClass="RadWindow" />
                </Windows>
            </telerik:RadWindowManager>

Shinu
Top achievements
Rank 2
 answered on 07 Sep 2011
1 answer
776 views
Hi,

   I have a combo box in the edit Form in a radgrid. Im using Entity Framework and a business layer class to return an IEnumerable List
<Employees> to bind to the grid. When the edit form comes up I want the titles and names of the employees to be shown in the combo box. like as the  DataTextField like :

"{Title}:" + {FirstName}  + " " + {LastName}

and I want to bind another property in the Employee class employee_Id as the DataValueField.

Can someone show me how to do this, I am doing something similar in a GridCalculatedColumn where I am able to combine these multiple fields and show them in an expression like shown above. Please see Grid calculated column below. How can I bind the combo box like this so i can see the title: FirstName  Lastname  in the text field. Please note that I dont want a multi column grid as shown in this example here
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx  

I want to show them all together. and be able to bind the employee_id property as the DataValueField so when i submit the form I can read that, can someone please show me how to do this in code, thanks.   Please see below for the CalculatedGridColumn where i am showing same information.

<telerik:GridCalculatedColumn SortExpression="Employee.FirstName" HeaderText="Employees" AutoPostBackOnFilter="true"
 DataFields="Employee.Title,Employee.FirstName, Employee.LastName" Expression='{0}  + ":" + {1} + " " + {2}' >                        
 <HeaderStyle HorizontalAlign="Left" Width="30%" />
                         <ItemStyle HorizontalAlign="Left" />
                    </telerik:GridCalculatedColumn>
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2011
1 answer
252 views
I've got a fairly generic radgrid that uses "EditForms" for the edit mode.

I have the edit column set to:

<

 

 

EditColumn CancelText="Cancel" UpdateText="Update" ButtonType="PushButton"></EditColumn>

 


and as expected the buttons appear at the bottom of the form which is fairly long with 40+ items. I'd also like to put the two buttons at the top of the edit form so the user doesn't have to scroll so far to update or cancel. Is there an easy way to do this? Thanks.

-Tim
Princy
Top achievements
Rank 2
 answered on 07 Sep 2011
10 answers
477 views
Hi,

I have a DateTime column on the RadGrid. I would like to add a time picker to the column. Please send directions and/or sample codes.

thanks,
Minh Bui
Minh
Top achievements
Rank 1
 answered on 07 Sep 2011
6 answers
128 views
Hi all,

I have a Grid which contains a detail Grid. When I click on "expand" icon to expand the detail Grid (its width may be greater than its parent's width), I want Text in the Detail Grid must be on the second line if it exceeds the parent's width) but the detail Grid always extend its Width automatically.

Please let me know how can I do this.

Thanks in advance.
Phuc
Top achievements
Rank 1
 answered on 07 Sep 2011
2 answers
111 views
i have grid2 & btnUpdate inside grid1 "MasterTableViewEditForms" (Template)
and i've successfully bind grid2 datasource inside grid1
my problems is, i can't get values from grid2 when hitting btnUpdate

Protected Sub grid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grid1.UpdateCommand
    Dim grd2 As RadGrid = TryCast(TryCast(e.Item, GridDataItem).ChildItem.FindControl("grid2"), RadGrid)
    lblMsg.Text = grd2.Items(0).Cells(2).Text
End Sub

the following error occured when hitting btnUpdate "Object reference not set to an instance of an object."

i have search some post in this forums but couldn't find any solution, please help
thanks in advance.
Silver
Top achievements
Rank 1
 answered on 07 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?