Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 views
I'm using a RadGrid, and I'm able to show and hide columns using client-side script:

 

mygrid.get_masterTableView().hideColumn(i);

But, when I hide the column, it leaves a blank space where the column was located. Is it possible to have the remaining columns automatically resize and fill the empty space?

If this isn't possible, can I manually resize the remaining columns? I've tried the following script to set the hidden column width to zero, but it doesn't have any affect:

mygrid.get_masterTableView().resizeColumn(i, 0);

Sophie
Top achievements
Rank 2
 answered on 04 Mar 2013
9 answers
486 views
Is there a way to send tokens such as OAuth2 with the call to the ODataService?

I can see that there may be a way of injecting headers in the client-side event

OnRequesting but only if these are exposed in the args.set_Options object.



Thanks

Gary
Genady Sergeev
Telerik team
 answered on 04 Mar 2013
5 answers
574 views
I have a radgrid placed on a web form that uses PeterBlum's RequiredValidator and CustomValidator to validate some data on the page. 
I would like to validate the web form data before performing an Insert or Update on the grid.   
I am using radgrid's automatic insert and update actions.

The following approach succeeds in preventing the insert form from loading if the validation fails, but doesn't continue on to displaying the validation messages.
Any suggestions?
Protected Sub Grid_ItemCommand(source As Object, e As GridCommandEventArgs) Handles PreferredMediaEditableGrid.ItemCommand
 
    Select Case e.CommandName
 
      Case RadGrid.InitInsertCommandName
 
        PeterBlum.DES.Globals.Page.Validate()
        If Not PeterBlum.DES.Globals.Page.IsValid Then
 
          ' cancel automatic insert.
          e.Canceled = True
 
        End If
 
    End Select
 
  End Sub
Angel Petrov
Telerik team
 answered on 04 Mar 2013
1 answer
106 views
Hi
I have a reset button on a form with the following client-side code to clear the grid:

var view = $find('grd').get_masterTableView();
view.set_dataSource([]);
view.dataBind();


This works great but the NoMasterRecordsText is not shown on reset. This is set as follows in the MasterTable view:

ShowHeadersWhenNoRecords="true"
NoMasterRecordsText="No data available matching the supplied search criteria."

Perhaps somebody could shed some light on how to achieve this

Regards

Daniel Affleck
Daniel
Top achievements
Rank 1
 answered on 04 Mar 2013
4 answers
119 views
Are there any plans to make the rotator touch enabled?  

All of my customers expect touch enabled components, especially for this type of control.

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 04 Mar 2013
1 answer
44 views
Hi - i have a requirement very similar to what is achieved in http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx.

However, the main difference in my case is that the control to which i would drop my items (equivalent of Genre list shown in the right in the above link) is located in the master page and my list view is located in the content page.

When i drag the listview item onto the masterpage control, the destination is null. I used 
args.get_destinationItem()
in
OnClientDropped
event to get the destination item. If i drag the listview item onto any other control in the same page, the destination gets the proper value.

Is there a work-around to this problem. Am i missing something here?

Thanks.
Pavlina
Telerik team
 answered on 04 Mar 2013
7 answers
252 views
Hi,
I've recently upgraded my application to telerik version 4.0 and noticed that the style of my application combobox automatically changed.
I'm using "Vista" skin and apparently they've changed it in the core so now it's different

OLD VERSION Style


NEW VERSION Style


Is the old skin still available or is it anyway to apply the same settings manually?

Thank you in advance,

Marcelo
Helen
Telerik team
 answered on 04 Mar 2013
3 answers
493 views
Is it possible to load an Xml file into a RadGrid for web display purposes. I tried loading an xml file into a DataSet and assigning that to a RadGrid's DataSource but it only displays one level.

I will not know what the content of the xml files will be so can't specifically add fields to the grid ect.

Is this possible?
Radoslav
Telerik team
 answered on 04 Mar 2013
4 answers
154 views
Good day!

Is there any way that the scroll position be synced between schedulers? The application I'm creating has multiple schedulers, side-by-side, but I only want to show the hours column for the first one to save space, but the height of the scheduler exceeds the browser window, so a scroll bar is shown for each. Each scheduler is in a RadPane.

Thanks.
Plamen
Telerik team
 answered on 04 Mar 2013
2 answers
94 views
Afternoon,

The problem I am having is that I have  a hierarchical radgrid inside of an updatepanel, with the grid set to HierarchyLoadMode="ServerBind".  When I have the grid start out with expanded rows, images that are loaded into the grid are inserted properly as follows:

The grid puts "true" or "false" into the cells, and then in ItemDataBound those values are removed for a checkmark or an x (for true or false, respectively).  When the page posts back, some of the grids update to show images, other do not.

The reason that I am doing HierarchyLoadMode=ServerBind is because I need to get a total count of the items that will be in the grid, and I get that count by going across the items in the grid and for each that is a chlid item I increment a count.  If there is a handier way to do that, I would also be amenable to switching HierarchyLoadMode to ServerOnDemand or something.  I need a count of the items in the grid and it has to be correct regardless of the expand/collapsed state of the items.  When I had ServerOnDemand and the rows started collapsed (a requirement), the count of the child items came to 0 each time, even if there were items in the grid.  I currently get the count of the items in the Page_PreRender event, when all the grid bindings have been completed.

Any ideas?  Can I count the items in the grid in some other way than going across rows in Page_PreRender? If not, is there a way I can set the AJAX to load images in upon expansion of the rows, as is currently not happening?

Thanks very much,

Kaleb

EDIT:  The update panel has UseChildrenAsTriggers="true" and UpdateMode="always"
Radoslav
Telerik team
 answered on 04 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?