Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
1.0K+ views
Hello Everyone,

     I'm using radgrid with the detail table.
    I need to change the expand-collapse button of the radgrid to

SingleMinus.gifSingleMinus.gif,

SinglePlus.gifSinglePlus.gif    so that the users can easily identify that the detail table is there.

Please give a solution, i'm providing the users to change the theme too. So the change should be applicable when applying different themes.

Thanks In Advance
 Unni
 
Eyup
Telerik team
 answered on 25 Nov 2015
2 answers
83 views

Hi,

My grid is databound using NeedDataSource and I localize my column names in the Pre-Render event. When I enable ShowGroupPanel to allow users to drag columns for grouping, the name that appears in the group box and in the grouping row titles is not the localized name. I have searched the column properties but I can't see anything obvious for this - what do I need to set in order to get the names displaying correctly?

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 25 Nov 2015
6 answers
831 views

  We have discovered an issue when expanding RadGrid DetailTable in case the Browser Link of VS 2013 is enabled. The issue is actually a generic internal problem in the VS feature and affects the RadGrid control with the following error:

“JavaScript runtime error: Syntax error, unrecognized expression: unsupported pseudo: 0_0”

  The issue is known bug in jQuery which is internally used in the Browser Link functionality. When selecting elements which contains ":" in its id, jQuery does not return element. The reason for the problem is that jQuery has some predefined pseudo-selectors and “:00” for example is not a valid selector.

  The Browser Link script tries to find our detail tables elements by its id (the detail table id contains ":"), jQuery does not return element and the Browser Link scripts throws an error that the character sequence is not recognized.

  As this issue is still not fixed in the latest version of jQuery the only workaround for now is to disable the Browser Link feature in VS 2013.

Maria Ilieva
Telerik team
 answered on 25 Nov 2015
1 answer
79 views

Hi,

     Now I am looking into this demo

     http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/commanditem/defaultcs.aspx

     First, I edit the second row in the gird, then delete the first row. I found after the first row was deleted. The original second row(now it is the first row after deleting) lost "in edit" state. And the original third row(now it changed to the second row) got the "in edit" state.

     Is it a software defect? And is there any solution now?\

Thanks.

Zhang Rui

Eyup
Telerik team
 answered on 25 Nov 2015
1 answer
104 views

Hello everybody

 

I'm working currently on a application that uses telerik for all controls except some special type called "bowserfield", is like an inputbox with autocomplete. I need to use this control mandatory.

 

 My problem starts when I try to use this control inside a itemtemplate and want to get the row in this customcontrol onclick event. I have the row number in RANK1 control, could I use this inputbox to get the row number? I could use ONCLICK in server side, but I dont know how to get the radgrid sender reference. ALso notice that I dont have the row selected when the event is launched from this control.

 

 

My case:

 

 <telerik:GridTemplateColumn HeaderText="BB" HeaderStyle-Width="15%" UniqueName="cv" > 
                                  <ItemTemplate> 
                                  <asp:hiddenfield  runat="server" id="KEY1" Value='<%# Bind("ID") %>'  ></asp:hiddenfield> 
                                  <asp:hiddenfield  runat="server" id="RANK1" Value='<%# Bind("rank") %>'  ></asp:hiddenfield> 
                                  <et:bowsefield runat="server" id="DocID" bowsername="document" OnChange="Save($(this),'1')"/>
               </ItemTemplate> 
</telerik:GridTemplateColumn> 

 

 

 

 <script type="text/javascript">

 function Save(sender, args)
    {
        if (sender != null) {
            var grid = $find('<%= RadGrid1.ClientID %>'); 
            var MasterTable = grid.get_masterTableView();
            var tableEl = MasterTable.get_element();

            var DocX
            var idX

            if (args == '1')
            {
               
                var textBox = sender[0].$telerik.findElement(tableEl, "DocID"); ----> GIVES ME ALWAYS ROW 1 :(
            }
            ...
        }
    }

</script>

 

I think that a solution could be use this control only in edit mode, but is possible to do without it? Thanks a lot.-

 

 

 

 

 

Eyup
Telerik team
 answered on 25 Nov 2015
3 answers
143 views

Using the MetroTouch skin in version 2015.3.1111.45 - In lightweight RenderMode - if you click directly on the text of a button it does not fire the click even - you must click somewhere else on the button.  

 

If you set RenderMode="Classic" the issue is resolved.

Danail Vasilev
Telerik team
 answered on 24 Nov 2015
0 answers
412 views

In the Q3 2015 SP1 release the server-side OnClick event of RadButton is not raised when the following conditions are met:

  • The RenderMode of the button is set to Lightweight.
  • The .aspx page is opened under Chrome or Edge browser.
  • The button triggers an AJAX request.
  • The text of the button is clicked.

The issue will be fixed for the official Q1 2016 release and the 2015.3.1124 internal build.

For the time being you can use one of the following resolutions:

  • Set the UseSubmitBehavior property of the button to false
    <telerik:RadButton ID="RadButton1" runat="server" UseSubmitBehavior="false" Text="Click" OnClick="RadButton1_Click" RenderMode="Lightweight" />
  • OR place the following JavaScript workaround below the button's declaration (e.g., at the end of the page/master page):

    <script>
        var $T = Telerik.Web.UI;
        $T.RadButton.prototype._mouseClickHandler = function (args) {
            var button = this, result;
            var target = args.target;
            var e = args.rawEvent;
            var element = button.get_element();
      
            if (target !== element && $telerik.isDescendant(element, target)) {
                $telerik.cancelRawEvent(e);
                simulateMouseEvent(element, "click", e);
                return;
            }
      
            try {
                if (button._functionality.clicking(args) && !element.getAttribute("rwOpener")) {
                    button._functionality.click(args);
                    result = button._functionality.clicked(args);
                }
            }
            finally {
                button._mouseUp(args);
                button._restoreFlags();
                setTimeout(function () { Page_BlockSubmit = false; }, 0);
                return !result ? $telerik.cancelRawEvent(e) : true;
            }
        };
      
        function simulateMouseEvent(element, eventName, args) {
            var o = $telerik.$.extend({}, args || {});
            var oEvent;
      
            if (document.createEvent) {//deprecated DOM2 Event Model
                oEvent = document.createEvent("MouseEvents");
                oEvent.initMouseEvent(eventName, o.bubbles, o.cancelable, document.defaultView,
                                      o.button, o.screenX, o.screenY, o.clientX, o.clientY,
                                      o.ctrlKey, o.altKey, o.shiftKey, o.metaKey, o.button, element);
            }
            else if ("MouseEvent" in window) {//standard DOM3 Event Mode
                oEvent = new MouseEvent('click', o);
            }
            oEvent && element.dispatchEvent(oEvent);
      
            if (!oEvent) {//IE
                oEvent = extend(document.createEventObject(), o);
                element.fireEvent('on' + eventName, oEvent);
            }
      
            return element;
        }
      
        function extend(destination, source) {
            for (var property in source) {
                destination[property] = source[property];
            }
            return destination;
        }
    </script>

 

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 24 Nov 2015
3 answers
83 views
We have a paged grid that loads the results of a stored procedure that returns over 100,000 results. We're experiencing some performance delays. Is there a way to have the grid only return the required results for the page it is on? We understand that we will need to modify the stored procedure also but aren't clear how to get the grid itself to make the right call for the particular page.
Pavlina
Telerik team
 answered on 24 Nov 2015
4 answers
140 views

I want to freeze the column header, so that i set UseStaticHeaders=True.

But i found that the Group Header had alignment problem (please see attached screen capture).

Please help. Thanks

Pavlina
Telerik team
 answered on 24 Nov 2015
1 answer
92 views

I have a RadComboBox that is loading items on demand from a Page method. About 1% of the time, it would lose the selected value on post back. After much digging, I found that in all of those1% cases, there was a \r and/or \n character in the data stringbeing used for the item's text. Once I filtered out the \r and \n characters everything works fine.

I thought I would post this in case anyone else has a similar problem.

I would also urge Telerik to either fix this issue or to put something very clear in the documentation about this.

Nencho
Telerik team
 answered on 24 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?