Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
Hi

When I am checking different checkboxes only one checkbox is getting checked in RadGrid. I followed this "http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html" and also implemented the example given in RadGrid "pagingsortingwithclientsideselecting-ajax" . In my scenario we have master page.

I need that multiple check boxes must be checked.

Help me how can achieve this.

Thank You.
BRK
Top achievements
Rank 1
 answered on 03 Jun 2011
5 answers
133 views
Hello,

I'm using a GridAttachmentColumn just like the Telerik example: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx
But in my case after the Response.Write in the code-behind a Javasript error c00ce514 is generated. I've searched the web and foud that this is caused by AJAX. Strange in my case because I disabled AJAX during the DownloadAttachment event of the RadGrid.

Anyone any idea or solution?
RvdGrint
Top achievements
Rank 1
 answered on 03 Jun 2011
4 answers
321 views
Dear Sir,

I have a problem with the following scenario:

I have nested user controls as following
<userControl1>
  <table runat="server" id="tblTimesheet">
    <tr>
      <td>
    <asp:Button runat="server" ID="btnSave" Text="Save"/> 
        <userControl2></userControl2>
      </td>
    </tr>
  </table>
</userControl1>

where
UserControl1:
- has RadAjaxLoadingPanel1 and has the RadAjaxManager defined as following:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    ClientEvents-OnRequestStart="Timesheet_RequestStart"
    ClientEvents-OnResponseEnd="Timesheet_ResponseEnd">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSave">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tblTimesheet"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadCodeBlock runat="server" ID="scriptBlock">
    <script type="text/javascript">
        var currentLoadingPanel = null;
        var currentUpdatedControl = null;
        function Timesheet_RequestStart(sender, args) {
            currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
            currentUpdatedControl = "<%= tblTimesheet.ClientID %>";
            //show the loading panel over the updated control
            currentLoadingPanel.show(currentUpdatedControl);
        }
        function Timesheet_ResponseEnd() {
            //hide the loading panel and clean up the global variables
            if (currentLoadingPanel != null)
                currentLoadingPanel.hide(currentUpdatedControl);
            currentUpdatedControl = null;
            currentLoadingPanel = null;
        }
   </script>
</telerik:RadCodeBlock>

UserControl2:

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnAddNewRow">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tblTimesheetSection"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<table class="TimesheetSectionTable" runat="server" id="tblTimesheetSection">
</table>
<asp:Button runat="server" ID="btnAddNewRow" Text="Add New"/>


Now the scenario is:
- When you open the form for first time and click on btnAddNewRow on UserControl2. ClientEvents-OnRequestStart is working fine and show the loading panel on all the form.
- Use btnSave on UserControl1. ClientEvents-OnRequestStart is working fine and show the loading panel on all the form.
- After Form return. click on btnAddNewRow on UserControl2. Form is sending Ajax request but ClientEvents-OnRequestStart is not triggered any more from the nested control so the loading panel not appears.
- Use btnSave on UserControl1. ClientEvents-OnRequestStart is working fine and show the loading panel on all the form.


I tried to add the following code to the page load of UserControl2. but that didn't help :(
Dim manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
manager.ClientEvents.OnRequestStart = "Timesheet_RequestStart"
manager.ClientEvents.OnResponseEnd = "Timesheet_ResponseEnd"

Thanks,
Mohamed Ramadan
RvdGrint
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
158 views

I’m using radgrid that take its data from the NeedDataSource function.

The user can select one row (server-side).

When the grid first loads I would like to have the first row selected.

When the user creates a new row I would like to have that row selected.

How do I do this?

Shinu
Top achievements
Rank 2
 answered on 03 Jun 2011
2 answers
89 views
Hello Guys,

I am trying to set the filename of my exported excel file but I am still getting the default filename "RadGridExport". Am I missing something?


<telerik:RadGrid ID="myRadGrid" CssClass="AutoShrink" runat="server" GridLines="Both" OnItemCommand="myRadGrid_ItemCommand">           
    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Wrap="True" />
</telerik:RadGrid>


Public Sub btnExport_Click(ByVal sender As Object, ByVal args As EventArgs)
        myRadGrid.MasterTableView.ExportToExcel()
End Sub

Protected Sub myRadGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadGrid.ItemCommand
    If e.CommandName = Telerik.Web.UI.RadGrid.ExportToExcelCommandName Then
        myRadGrid.ExportSettings.ExportOnlyData = True
        myRadGrid.ExportSettings.IgnorePaging = True
        myRadGrid.ExportSettings.OpenInNewWindow = True
        myRadGrid.ExportSettings.FileName = "myFilename"
    End If
End Sub

Any help is appreciated.

Thanks!
kith
Top achievements
Rank 1
 answered on 03 Jun 2011
3 answers
108 views
Hi Telerik Team,
 
I am using Radmenu to display the menu items on the application using following code:
The color higlighted is yellow for the selected Menu item.

Problem Description: When I open one more window from my application (this is one of the menu item to open new window), the selected Menu item is highlighted and happens only in New Window but the old window never highlights again with yellow color and remains white color as usual for all menus.

Please help me on the below problem. I pasted the code what i am using.

<style type="text/css">
        .RadMenu_MenuDefault a.rmSelected
        {
            color: Yellow;
        }
        .clickedP
        {
            color: Yellow;
        }
    </style>
  
  
<telerik:RadMenu ID="rmstabmenu" runat="server" Skin="Black" width: 100%; position: absolute;" 
OnClientItemClicking="OnClientItemClicking" CssClass="RadMenu_MenuDefault"  >
      <Items>
<telerik:RadMenuItem Text="Home"></telerik:RadMenuItem>
      </Items>
</telerik:RadMenu>
  
 function OnClientItemClicking(sender, args)
{
     var item = args.get_item();
     var itemtext = item.get_text();
     getText(itemtext)    ///This picks path for diff menu items
      return;
}
 
sudhakar
Top achievements
Rank 1
 answered on 03 Jun 2011
2 answers
123 views
I have successfully created a grid in asp.net with a nested view.  Since I am new to radgrid I am wondering what is the best way to cause a currently displayed nested view to close before a new one is opened when the user clicks on a different parent row drop down button?  I only want one nested view to be open at the time.

Thanks ed.
Nishanth
Top achievements
Rank 1
 answered on 02 Jun 2011
2 answers
132 views
Hi there,

We have a RadRotator working/loading via a webservice (using the webservicesettings functionality) and all is working well ....except for the following exception that is thrown when a user clicks off the page with the rotator loading too quickly (as a javascript alert dialog):

RadRotator items request failed :
Exception = The server method 'GetRotatorData' failed.


Occurs in FF, IE, Chrome, and occurs regardless of the debug mode setting in web.config

Is it possible to supress/hide, or better, handle this so that the javascript alert is not thrown up to the user?

(Version is that supplied with Sitefinity 4.1 SP1)

Thanks
Matthew Tamm
Top achievements
Rank 2
 answered on 02 Jun 2011
1 answer
110 views
Dear telerik,

I've a Calendar list in sharepoint 2010.Now as i didn't want to use in-built sharepoint calendar control, i decided to go for silverlight RadScheduler control.
Now I've integrated silverlight Radscheduler as custom webpart into sharepoint 2010 successfully. Also I am able to do all CRUD operations with Scheduler and sharepoint 2010 calendar list vice versa. i've used silverlight Client Object model of sharepoint 2010.

Now i want to extend my scheduler's functionality by providing purely Dynamic Edit Appointment Dialog window exactly looks like sharepoint 2010 calendar list NewForm/edit form/display form webparts. I mean, when any column/field removes/adds into sharepoint 2010, it automotically reflect into sharepoint 2010 calendar newform/edit form/display form webparts ,but my scheduler is not able to do that. So i decided to build one dynamic edit appointment dialog window which will get all latest list of fields/columns and generate it's related controls and displays into Edit appointment dialog window.

how will i achieve this ? kindly provide source code or anything, i am stuck with this.

regards
George
Telerik team
 answered on 02 Jun 2011
3 answers
104 views
I want to update a field in my grid/database to indicate that a record or records have been exported. I am using a custom button to handle the export event rather than the button built into the grid. Is there any way to logically pass on information as to which records have been exported?
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?