Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
167 views
I am using RadGrid, containing about 15 columns. Only one of them is editable, it is a text-box and i am using asp required field validator for it.
 when i export that grid to excel or pdf, another column appears containing the text included in the required field validator even if it is already not visible on the grid.
Soha
Top achievements
Rank 1
 answered on 19 Dec 2010
4 answers
117 views
Hi all,

In some situations when AJAX calls are triggered for Telerik controls the WebResource reference tag is not generated correctly. In my case it the invalid rel link triggers the IE security warning.

For code (this is sample, if necessary more details can be posted later)
<telerik:RadScriptBlock ID="c_radsb1" runat="server">
    <script type="text/javascript">          
         
            function <%=Me.ClientID %>RowContextMenuContacts(sender, eventArgs) {
                           var menu = $find('<%= c_rcmContact.ClientID %>');
                var evt = eventArgs.get_domEvent();
                 
                if (evt.target.tagName == 'INPUT' || evt.target.tagName == 'A') {
                    return;
                }
                 
                var index = eventArgs.get_itemIndexHierarchical();
                
                document.getElementById('EntityContactsRadGridClickedRowIndex').value = index;
 
                sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
                 
                document.getElementById('GoogleMapIt').href = 'http://maps.google.com/maps?q=' + sender.get_masterTableView().get_dataItems()[index].get_element().childNodes(3).innerText;
                menu.show(evt);
 
                evt.cancelBubble = true;
                evt.returnValue = false;
 
                if (evt.stopPropagation) {
                    evt.stopPropagation();
                    evt.preventDefault();
                }
            }
    </script>
</telerik:RadScriptBlock>

following rel link is generated:

<LINK rel=stylesheet type=text/css href="/IAS/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2010.1.415.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a1c53f111-a7b9-466f-ae26-3bd14c91dc5a%3a45085116%3a8efaf5d2%3a92753c09%3a605d48d6%3a8cee9284%3a5c0abcde%3ab241f632%3a121ed8d2%3a5951aeec%3a9cd26499%3a91f742eb%3a1f65231b%3a7f7626a2%3aed2942d4%3ac5d7b491%3aefe88710%3a9e1572d6%3a53e1db5a%3aa8b03562%3a969c664c%3aaac1aeb7%3a51352d27%3a1c2121e%3a8b77daa8%3ae24b8e95"><LINK rel=stylesheet href="           \r\n        \r\n            function ctl00_RootContent_EntityOverview1_ucEntityContactsSubRowContextMenuContacts(sender"><LINK rel=stylesheet href=" eventArgs) {\r\n                           var menu = $find(\ctl00_RootContent_EntityOverview1_ucEntityContactsSub_c_rcmContact\);\r\n                var evt = eventArgs.get_domEvent();\r\n                \r\n                if (evt.target.tagName == \INPUT\ || evt.target.tagName == \A\) {\r\n                    return;\r\n                }\r\n                \r\n                var index = eventArgs.get_itemIndexHierarchical();\r\n               \r\n                document.getElementById(\EntityContactsRadGridClickedRowIndex\).value = index;\r\n\r\n                sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index"><LINK rel=stylesheet href="\r\n            var sUrl = parent.document.URL;\r\n            var sQueryString = sUrl.substring(sUrl.indexOf(\u0027?\u0027)"><LINK rel=stylesheet href=" sUrl.length);\r\n\r\n\r\n            function ctl00_RootContent_EntityOverview1_ucDocumentsRefreshDocuments() {\r\n                var ajaxManager = ctl00_RadAjaxManager1;       \r\n               ajaxManager.ajaxRequestWithTarget(\u0027ctl00$RootContent$EntityOverview1$ucDocuments$hd_btnDoc\u0027"><LINK rel=stylesheet href=" \u0027\u0027);\r\n                return false;\r\n            }    \r\n            \r\n                      \r\n            function ctl00_RootContent_EntityOverview1_ucDocumentsAddDocumentPopup() {\r\n                var oWnd = $find(\ctl00_RootContent_EntityOverview1_ucDocuments_RWAddDocuments\);                 \r\n                oWnd.setUrl(\u0027../CustomDialog/AddDocument.aspx\u0027 + sQueryString); \r\n                oWnd.show(); \r\n                oWnd.add_close(ctl00_RootContent_EntityOverview1_ucDocumentsRefreshDocuments);              \r\n            }   \r\n           \r\n                      \r\n            \r\n//            function RaiseCommand(sender"><LINK rel=stylesheet href=" args)\r\n//            {\r\n//                var result = String.format(\CommandName: {0}"><LINK rel=stylesheet href=" CommandArgument: {1}\"><LINK rel=stylesheet href=" args.get_commandName()"><LINK rel=stylesheet href=" args.get_commandArgument());                \r\n//                alert(result);\r\n//            }\r\n            \r\n            function ctl00_RootContent_EntityOverview1_ucDocumentsRowContextMenuDocuments(sender"><LINK rel=stylesheet href=" eventArgs) {\r\n                var menu = $find(\ctl00_RootContent_EntityOverview1_ucDocuments_c_rcmDocument\);\r\n                var evt = eventArgs.get_domEvent();\r\n\r\n                if (evt.target.tagName == \INPUT\ || evt.target.tagName == \A\) {\r\n                    return;\r\n                }\r\n\r\n                var index = eventArgs.get_itemIndexHierarchical();\r\n                document.getElementById(\radGridClickedRowIndex\).value = index;\r\n\r\n                sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index"><LINK class=Telerik_stylesheet rel=stylesheet type=text/css href="/IAS/WebResource.axd?d=uGoXWPsFGfOIlspQ77Mm5c_f3eccG5dhm5ln6ldYqdmo42i3psBds0WakDc8JpnF0&t=634223939882134812"><LINK class=Telerik_stylesheet rel=stylesheet type=text/css href="/IAS/WebResource.axd?d=uGoXWPsFGfOIlspQ77Mm5c_f3eccG5dhm5ln6ldYqdkZk7LHlOP1UPsK270jAWiJwRpnTdmvBh62wxwwsJj65X0bFxtezqBJanvZd_Kx6KQ1&t=634223939882134812"><LINK class=Telerik_stylesheet rel=stylesheet type=text/css href="/IAS/WebResource.axd?d=uGoXWPsFGfOIlspQ77Mm5c_f3eccG5dhm5ln6ldYqdk8tv8jmN7ejc9VNPPCx4_Ogn1rEctzkWiPSoR7l4V_IQ2&t=634223939882134812"><LINK class=Telerik_stylesheet rel=stylesheet type=text/css href="/IAS/WebResource.axd?d=uGoXWPsFGfOIlspQ77Mm5c_f3eccG5dhm5ln6ldYqdkZk7LHlOP1UPsK270jAWiJxQvznCmaPvGnUiVT839lVD2tlsmZybmhc_Ny2qv-6tU1&t=634223939882134812"><LINK class=Telerik_stylesheet rel=stylesheet type=text/css href="/IAS/WebResource.axd?d=uGoXWPsFGfOIlspQ77Mm5c_f3eccG5dhm5ln6ldYqdljdHS3gswupmmoD3M8nyVjdomFp5gYiBui185r4j1gtMwWvl3lvGFrxPEbMPJLQNY1&t=634223939882134812">

Attached screen shots shows that IE8 stops processing the AJAX calls on
.../IAS/SupplyChain/args)/r/n//%20%20%20%20%20%20%20%20%20%20%20%20%7B/r/n//%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20result%20=%20String.format(/u0027CommandName:%20%7B0%7D
request (400.jpg) and after hitting Yes/No continues with page loading (400_coninue.jpg).

Please advise / help.

Thanks,
Arek
Albert
Top achievements
Rank 1
 answered on 19 Dec 2010
1 answer
40 views

Hello,
I have a tabstrip with the following settings that works perfectly in my developing machine (Win7 Pro). When running the deployed app on a Test server (Win 2008 R2), the "next" scroll button disappears. I am sure it's something simple that I missed, but I couldn't figure it out. Could you help? I am running on the latest version of Telerik's controls (2010.3.1215).

<telerik:RadTabStrip ID="rtsProfile" runat="server" ClickSelectedTab="true" Skin="Default"
                                ScrollChildren="true" DataTextField="firm_name" DataValueField="profile_id" ScrollButtonsPosition="Right" ScrollPosition="2">
                            </telerik:RadTabStrip>

Helen
Telerik team
 answered on 18 Dec 2010
1 answer
215 views
For some reason any error that occurs within a request initiated by AJAX Manager, even if it's handled within a try..catch block is generating a javascript PageRequestManagerServerErrorException error and the try...catch code is not being executed.  This *only* happens after the site has been deployed to our web server.  It does not happen when running locally on our machines.  I've tried setting CustomErrors in the web.config to On and Off with no change.  Any ideas?

Exact error:

Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 6
Char: 84093
Code: 0

and/or

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Same issue as here: http://forums.asp.net/t/1044963.aspx?PageIndex=3

msigman
Top achievements
Rank 2
 answered on 18 Dec 2010
1 answer
71 views
Hi,

I've found an issue with the Listview control.  I have within my application 2 list views on one page, within different user controls.  If something is updated in one, it needs to reload the other, I have to do this using client side java script.  I can get them to look like they are refreshing, it fired all the correct events etc, debugging shows that the control has the new values within it, however the web page doesn't update to show the new item(s).  I've created a full test project to demonstraight this.  I use __doPostBack on a control which is within the RadAjaxManagerProxy to update the control, but it doesn't update.  If you turn Ajax off it works as expected.

I need to upload the test solution or email it to you, can you let me know how to do this please?

Cheers,

Davoc
Davoc Bradley
Top achievements
Rank 1
 answered on 18 Dec 2010
6 answers
87 views
Hello,
I am using RadDatapager with RadListview in my website. I need to asgin RadDatapager skin in server side. Is it possible to asgin skin in server side . if possible, How can i do this?

Thanks
Nahid
Nahid
Top achievements
Rank 1
 answered on 18 Dec 2010
3 answers
73 views

Hi,
            I am using RadGrid whenever i click add button (am using image buttons) am getting Insert items at the botttom of the grid.In that am getting Insert and cancel image buttons. Am using that images from GridEditCommandColumn . Initially am using Inline editimg, now i want to remove that inline editing but still i need add.If i remove GridEditCommand Column how i ll get images for Insert and cancel.Pls help me to do this.

Thanks,
John

 

john
Top achievements
Rank 1
 answered on 18 Dec 2010
1 answer
26 views
Hi 

Clients have reported a strange problem with Excel output from a grid; can anyone help?
It is serious because it is not obvious to the user that it has happened, so they see erroneous data, rather than an error message...

If a line of output in excel has an empty cell, then the content of the cell immediately below it moves up
to fill the space, as if all the columns are independent.  The context is that the file is downloaded, then opened 
on mac using Excel in Office for Mac 2011.

I could try writing a space character instead of of a null value but I am not sure that is the right answer.

The output is fine on PC, and also fine in the pdf version opened on Mac

Help!

Thanks

Clive

PS:
Mac OS: 10.6.5
Website server: windows server 2003, iis6, asp.net 4.0,   RadAjax version is Q2 2009
Daniel
Telerik team
 answered on 17 Dec 2010
1 answer
44 views
Resolved.
Greg
Top achievements
Rank 1
 answered on 17 Dec 2010
2 answers
71 views
I am using the following code to select the parent row. I need to do this when the item is expanded but it's working only on collapse How do I make work on expand.
Private Sub RadGrid1_ItemCommand([source] As Object, e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand
   If e.CommandName = RadGrid.ExpandCollapseCommandName Then
      Dim item As GridItem
      For Each item In e.Item.OwnerTableView.Items
          If item.Expanded  Then
            item.Selected = True
          End If
      Next item
   End If
End Sub 'RadGrid1_ItemCommand 

Alternately, does or can Telerik provide an option to do this. When a Parent row in a Grid Hierchy is expanded automacally select the row if row selection is tuened on (multiple or single)
Pierre
Top achievements
Rank 1
 answered on 17 Dec 2010
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?