Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
441 views
Hi,

        I am using GridTemplateColumn in Radgrid with checkbox in <headertemplate> and <itemtemplate>
I am unable to select/deselect the rows on <HeaderTemplate> checkbox click at client side....

Code is as follows...
<Columns>
                            <telerik:GridTemplateColumn AllowFiltering="false">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="chkSelectAll" runat="server" onclick="CheckAll()" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkStatus" runat="server"  />
                                </ItemTemplate>
                                <HeaderStyle Width="50px" HorizontalAlign="Center" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn HeaderText="Security Code" UniqueName="Code" DataField="cod">
                                <HeaderStyle Width="200px" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Description" UniqueName="Description" DataField="dsc">
                                <HeaderStyle Width="500px" HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        </Columns>

Please let me know.
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2012
1 answer
84 views
I was told to add an undo button for the RadListBox that will track and then revert he changes a user makes. I have the code set up but I am getting undefined errors in dynmiac code when it is running through transferItem(). I am not entirely sure whats going wrong with it. If someone could look and give some advice that would be great.

var UndoList = new Array();
function onClientTransferring(sender, e) {
    var items = e.get_items();
    for (var i = 0; i < items.length; i++) {
        var item = items[i];
        if (item.get_text() != "Select" || item.get_value() != "") {
            UndoList.push(item);
            UndoList.push(e.get_sourceListBox());
            UndoList.push(e.get_destinationListBox());
        }
    }
}
function undoChanges() {
    if (UndoList[UndoList.length - 1]._clientStateFieldID == "rlbStations_ClientState") {
    var listbox = $find('rlbStations');
    }
else if (UndoList[UndoList.length - 1]._clientStateFieldID == "rlbAllowedStations_ClientState") {
    var listbox = $find('rlbAllowedStations');
    }
    listbox.transferItem(UndoList[UndoList.length - 3], UndoList[UndoList.length - 1], UndoList[UndoList.length - 2]);
}
<telerik:RadListBox ID="rlbStations" runat="server" AllowTransfer="True" TransferToID="rlbAllowedStations" Height="200px" Skin="Web20" SelectionMode="Multiple" Sort="Ascending" DataKeyField="station_id"
 AutoPostBackOnTransfer="true" Width="250px" OnClientTransferring="onClientTransferring"
OnTransferred="rlbStations_Transferred"><ButtonSettings ShowDelete="False" ShowReorder="False" /> </telerik:RadListBox>
<asp:Button Text="Undo" runat="server" OnClientClick="undoChanges()" /><telerik:RadListBox ID="rlbAllowedStations" runat="server" Height="200px" Width="250px" Skin="Web20"> </telerik:RadListBox>
Dimitar Terziev
Telerik team
 answered on 27 Apr 2012
3 answers
87 views
Are there any client events on the PageView (or event MultiPage) control that I can subscribe to with jQuery ?

Specifically, I would like to be able to subscribe to an event that lets me know the selected pageview is about to be shown, so that I can make some adjustments to the content - analogous to the RadWindow "beforeShow" event.

I know that the default answer is probably to use one of the tabSelect events, but that is not quite what I require.
Dimitar Terziev
Telerik team
 answered on 27 Apr 2012
4 answers
231 views
Hi,
when entering a value in rad text box it shows in normal font, and when changing the focus, the value gets bold.
How can i avoid the behavior of changing the font weight to bold when changing the focus in sharepoint site page.
I am using telerik Q1 2012 ( 2012_01_215)


thanks
Jiju
Jiju
Top achievements
Rank 1
 answered on 27 Apr 2012
5 answers
194 views
I have a RadGrid. In this RadGrid I ahve below code

<MasterTableView ClientDataKeyNames="ID,Name,Path" runat="server" >
     <Columns>
            <telerik:GridButtonColumn UniqueName="headerDelete" CommandName="Delete"
runat="server" ButtonType="ImageButton" ImageUrl="~/CommonUI/Images/delete.png"
HeaderTooltip ="hhhh" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center"
HeaderStyle-Width="40px" HeaderStyle-HorizontalAlign="Center" Text="Delete"/>
       </Columns>
 </MasterTableView>

I want to Add Text to telerik:GridButtonColumn using OnRowDataBound event in javascript because i am filling this grid from another
grid using WebService and javascript function. Like

var tableView = $find("<%= gridSelected.ClientID %>").get_masterTableView();
                tableView.set_dataSource(result);
                tableView.dataBind();

Please suggest How can add text for <telerik:GridButtonColumn> using javascript for it ?

Thanks

 

 
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Apr 2012
4 answers
84 views
Hello

I am using RadFileupload control .
On click of Select button FileSelecting window is not getting opened in IE9.
In chrome and IE8 it is working fine

Thanks  and regards
Alekhya
Stein
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
113 views
Hi
We are using RadAsyncUploadControl version Q3 2011, in our SharePoint 2007 application.

The issue is happening in a load balanced environment. Firefox 11 and Chrome 18 (doesn’t happen in IE and Safari) are splitting the request for one large into small packets and sending them as different requests (It is not our code. May be it’s the way Telerik works). Because of the load balancing these requests are going to multiple WFE servers. Since, we have the Temp folder as a local path these small packets are getting saved to multiple web front ends. So, finally when it gets copied to the Target folder it is copying only the last packet.


The solution to the problem is to have a Shared UNC Path for the Temp location. We tried changing the temp location to a UNC Path but it didn’t work as Impersonation was turned on in web.config for all our web applications. We turned off the impersonation and then tried uploading a large file from Firefox and it worked fine. We were able to upload a 12MB file successfully and the Size is displaying correctly on the Confirmation screen as well. But turning impersonation off may not the correct approach as it could impact the whole web application.


In order to work around this problem, we set the temp location to a Local Path on WFE and then in our Custom Http Handler 'AsyncUploadHandler' (runs under elevated privileges) we are resetting this to the Shared UNC Path before copying the file to the Temp Location. While this approach is working fine for IE and Safari, this is still an issue for Firefox 11 and Chrome 18. Firefox 11 and Chrome 18 are trying to the copy the file to the Temp Folder first and then pass the request to the Custom HttpHandler where as in IE the request comes directly to the Custom Http Handler and then upon our code execution the file is getting copied to the Temp Folder
.

Query we have are:
1.) Why RadAsynUploadControl breaks files in smaller chunks for FF and Chrome only and not for IE and Safari? Is there a way to rectify without following the work around? Is there any speacial settings for RadAsynUploadControl to make it work under NLB environment?
2.) In work around mentioned above related to setting temp location, why custom http handler code gets executed first in case of FF and Chrome and not in case of IE and Safari?

If anyone has faced similar issue and have resolved it, please let me know.

Regards,
RK

Peter Filipov
Telerik team
 answered on 27 Apr 2012
1 answer
80 views
We have recently upgraded our MOSS RadEditor to 5.8.12 (2011.3.1115).

Everything works and appears to be fine with one strange issue.

We can insert links to Word/Excel/Office Document fine using the Document Manager.

However, when users view the page and click on these links to open the document, you get the propmpt as normal (would you like to open or save the doucment). But if you say OPEN, users are then promted for a login. If you hit cancel to the login the document loads fine.

Issue only occurs in IE. Tries with firefox and no issue. Doc opens straight.

PDF documents don't have this issue as PDF documents open directly in the browser.

This has now started occuring for every site on the server and has only been picked up since the recent upgrade of the Telerik Editor.

Anyone know if this issue is realated to the Telerik Editor? all sites share the same Telerik settings / configurations in the Resources folder.

Any ideas?
Rumen
Telerik team
 answered on 27 Apr 2012
5 answers
185 views
When using RadSplitter, if I call RadPane.set_contentUrl and pass the URL of a PDF document, it will sucessfully navigate the pane and show the PDF, but then it shows a Javascript error after it displays the PDF. I believe this is because in IE, when displaying a PDF there may not be a window object. The stack trace for the JS error shows it in the Sys$_Application$dispose routine in the AJAX class where it accesses the window object. The problem is the window object throws "Invalid calling object" when accessed.This only occurs when navigating to a PDF, and from a page that uses RadAjaxPanel.

Any ideas?
Thanks
Dobromir
Telerik team
 answered on 27 Apr 2012
1 answer
170 views
hi;
I've use ajax radcontrols, when i run the application in vs everything is OK;  but when i deploy the application and use iis , i see some exception in ajax request,

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


all requests break on iis;

and that is my response preview :
----------------------------------------------------------------------------

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadCompression.Compress(HttpApplication application) +568
   Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e) +43
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

---------------------------------------------------------------------

i have never seem any exception in my code when i debug; i thing that is really silly issue ; but i cant resolve that
Pavlina
Telerik team
 answered on 27 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?