Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
Hi,
How to set the pivotgrid cell navigation by Keyboard Navigation.
In rad Grid there is option for Cell naviation by.
  grid.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.MultiCell;
        grid.ClientSettings.Selecting.EnableDragToSelectRows = false;
        grid.ClientSettings.AllowKeyboardNavigation = true;

<ClientSettings AllowKeyboardNavigation="True">
<KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowActiveRowCycle="true" />


how can we use the same functionality for Telerik pivot Grid.
Eyup
Telerik team
 answered on 19 Dec 2013
1 answer
113 views
Hi.. I have used the GridClientSelectColumn.As per the implementation when I click the header checkbox it automatically selects the individual checkboxes present on the grid.This is fine with me. But I need to implement something like this:
Suppose I have 3 pages on my grid, and when I click the header checkbox present on the 1st page it should select all the checkboxes across all the pages. I have implemented the code for this. but when I go to 3rd page and deselect a row I need to disable the header checkboxes of 1st and the 2nd page.
Please tell me the trick to disable these checkboxes but maintaining the selection of individual rows.
Konstantin Dikov
Telerik team
 answered on 19 Dec 2013
3 answers
78 views
Hi All,
I am new to Telerik, and after reading some community articles i still cannot do a trick with radgrid. The situation is the following:

I have to do a grid, were the lines can be edited according to permissions:
I have a MasterTableView  with Name="parent" and a detail gridtableview with name "child". I would like to add Edit column for all the rows in detail gridview taking consideration two things:
-who is logged in (windows authentication - i have the user's name in a string)
-what is the content of a column (plant_name) in the "parent" row

So for example: if user Steve is logged in, and he expands the row where plant_name cloumn is "New York" there will be no edit in the details, but if he expands row with plant_name "Toronto" then all the lines in the child gridview can be edited.

I hope i can explain well what i need, and it can be done via Telerik grid.

Thanks!
Shinu
Top achievements
Rank 2
 answered on 19 Dec 2013
9 answers
306 views
I have a details page with RadRating (using custom validator) and RadCaptcha using ValidationGroup.
All fields and validators have the same ValidationGroup as well as Validation Summary.
It works fine in Internet Explorer while in Firefox i get an error ("The code you entered is not valid.")
I disabled all add-ons, plugings etc. etc. in addition i tested on several machines and it always worked in IE while in FF the captcha fails all the time.

Any ideas?
Jason
Top achievements
Rank 2
 answered on 18 Dec 2013
7 answers
86 views

I have a lot of exceptions "This is an invalid webresource request" on URL:http://localhost:28346/WebResource.axd?d=pA8zoJJ2yE9oO6Ia28y3ulqgm2EN3siWz944xQWIIGBXVpgk0BapHVTl4shvvFk6xNdt4LtiZSHEyXvbblVt01x0HwUwNQaOMxMWgBjtZYGpgc8UslSNdkbp6cUlZ40ejI7_lKB_ojLYUsqy5MqXRvXtaiUCAP9m7jUF4h8I34ewKZ8vyOpjWEbtWAuKDJ9m0&t=635173510100000000
I decoded content of url:
Telerik.Web.UI.Skins|Telerik.Web.UI.Skins.Web20.Common.radGradientListSprite.png
Probably there is no radGradientListSprite.png for Web20 skin inside dll file.
Could you check it?
Regards...
Kate
Telerik team
 answered on 18 Dec 2013
2 answers
199 views

RADGrid sorts records only when the HeaderText of a column is clicked. I want to sort Grid data on click of the column header. Is there a way to do this?

ww1711
Top achievements
Rank 1
 answered on 18 Dec 2013
2 answers
201 views
Hi, 

  I have radgrid with GridButtonColumn that create text file for the clicked row, 
   Private Sub rgInvoices_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles rgInvoices.ItemCommand

       If Not e.CommandName = "CreateBill" Then
            Exit Sub
        End If
    'perform
end sub



  Looking to add a button outside the grid (Create All) so would loop through grid and one each iteration will call the CreateBill button 
    
    For Each item As GridDataItem In rgInvoices.MasterTableView.Items
        ''' How to call  rgInvoices_ItemCommand and execute button for this row?

    Next

   Thank You

Mansi A.
Top achievements
Rank 1
 answered on 18 Dec 2013
2 answers
448 views
Ok, I hope the topic title is self explanatory, anyway... I have RadToolbar inside a CommandItemTemplate of a RadGrid.
I have a client event tied to the RadToolbar on click (wich checks if grid items are selected otherwise triggers a js alert).
Since I want to use the same function for the multiple grids I have on the page I cannot use $find("<%=GridName.ClientID%>") inside the onclick function. A workaround would be to bind different functions, where I just define the $find("<%=GridName.ClientID%>") for each grid and then  call the main function. But a neater solution would be to retrieve GridName.ClientID inside the function just from JS without resorting to inline asp.net code.
I tryed mangling with the "sender" object (wich is the toolbar triggering the click event) in the function to try to get the parent grid clientID but with no luck.
Any hint?
The structure is this:
<telerik:RadGrid runat="server" ID="GridName"
  <MasterTableView
     <CommandItemTemplate>
        <telerik:RadToolBar OnClientButtonClicking="TheFunction"
....

function TheFunction(sender, args) {
var myGrid = $find("<%=GridName.ClientID%>"); // TO BE RESOLVED WITHOUT EXPLICIT REFERENCE WITH <% %>

Any hint?...


Massimiliano
Top achievements
Rank 1
 answered on 18 Dec 2013
1 answer
122 views
I have created a page that displays an OrgChart and lets the user drilldown. I also let the user generate a PDF of the OrgChart. I am using a third party control to generate the PDF, and have a seperate page that I pass to the PDF generator(That page has less formatting like a printer friendly version). My problem is that although the drilldown works fine on the first page I need to be able to load the second page drilled down the same way. Is there a way to programmatically set the drilldown at load?

Or is there a way to generate an image of the chart, and then I could use that to create the PDF?
Plamen
Telerik team
 answered on 18 Dec 2013
5 answers
465 views
Greetings,

As I mentioned in a previous post, the batch mode grid doesn't store its data in an easily accessible JavaScript data structure, and rather, uses the DOM as a data store, and we want an easy API to read and write cell values.

The BatchEditingManager has getCellValue and changeCellValue methods, but I think they are unreliable in some situations.

changeCellValue doesn't write directly to the table cell. It opens the cell for editing, sets the value, then closes the cell. This behaviour is not acceptable when setting a value to a cell of the currently being edited row. When I call the function, the whole row is closed.
I have scenarios in which I want to change the value of a read only cell when the row is open. For example, I have a grid with two columns, code, and name, with the name cell containing a search box that sets the value of the code cell when the user chooses an item.

At last, I had to write my setCellValue function as follows:

Edge.UI.GridExtensions.setCellValue = function (columnUniquName, dataItem, value)
{
    var tableView = dataItem.get_owner(),
        cell = tableView.getCellByColumnUniqueName(dataItem, columnUniquName);
 
    if(!cell)
        return false;
 
    var valueDiv = cell.querySelector(".rgBatchContainer"),
        valueTextElement = valueDiv? valueDiv.childNodes[0]: null;
 
    if(valueTextElement)
        valueTextElement.textContent = value;
    else if(valueDiv)
        valueDiv.innerHTML = value;
    else
        cell.innerHTML = value;
 
    return true;
}

Which is hacky because it depends on the internal undocumented structure of the grid.
I hope a better alternative will be provided in the future.
Konstantin Dikov
Telerik team
 answered on 18 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?