Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
I have a requirement when an item is updated in my radgrid for a descriptive comment to be added to that item.  I've added a Required Field Validator to a GridTemplateColumn and it works if this update is the first update of that item and the comment field is empty.  However, if someone has updated the item before, it views the previous comment as making the field valid and doesn't fire.  This is that code
<telerik:GridTemplateColumn DataField="Comments" FilterControlAltText="Filter column13 column"  AllowFiltering="false"<br>                            HeaderText="Comments" UniqueName="Comments"><br>                            <EditItemTemplate><br>                                <asp:TextBox ID="tbComments" runat="server" TextMode="MultiLine" Text='<%# Eval("Comments") %>'>></asp:TextBox><br>                                <asp:RequiredFieldValidator ID="rfvComments" ControlToValidate="tbComments" Display="Dynamic"<br>                                    runat="server" ErrorMessage="Please enter a reason for changing this budget item."></asp:RequiredFieldValidator><br>                            </EditItemTemplate><br>                            <ItemTemplate><br>                                <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>'></asp:Label><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn>

I also tried deleting the <%# Eval("Comments") > from the Text field and replacing it with "".  That blanks out the previous text and forces a new comment, but the new comment data is not returned to be entered in the database.  (Sql profiler shows NULL for that parameter).

So,  I'd appreciate any help in requiring a new unique comment for subsequent updates.
Thanks
Rick
Princy
Top achievements
Rank 2
 answered on 19 Dec 2013
1 answer
67 views
Hi,

I have an orgchart with a tool bar that gives the options for a user to choose which fields they want to show in the orgchart.
SO basically there is a list of fields as check boxes and when i click on the apply button, I want to add those fields as rendered fields to the orgchart. how can i achieve this with client code?

Thank you
-Sekhar
Plamen
Telerik team
 answered on 19 Dec 2013
1 answer
115 views
Hey..  Can you tell me how to pass the selected rows of radgrid on  another page? i have selected the rows but dont know how to pass on another page
Viktor Tachev
Telerik team
 answered on 19 Dec 2013
1 answer
90 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
95 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
55 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
266 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
68 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
173 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
165 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?