Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
Hello,

The following code does not fires onclick properly in RadMenu but removing Loginview and loggedintemplate tags
makes it to run, I think something is not being located in order to fire onclick, what would be the
workaround to allow loginview?

Thanks
Antonio

<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<LoggedInTemplate>
 

<
telerik:RadMenu ID="RadMenu1" runat="server" Width="100%" style="margin-bottom:2px"
         EnableRoundedCorners="True" EnableShadows="True"
         DataSourceID="SqlDataSource1" 
         DataFieldID="MenuID" 
         DataFieldParentID="ParentID"
         onitemclick="RadMenu1_ItemClick" onitemdatabound="RadMenu1_ItemDataBound" 
         >
         <DataBindings>
            <telerik:RadMenuItemBinding TextField="FieldText" Depth="0" />
            <telerik:RadMenuItemBinding TextField="FieldText" Depth="1" ValueField="Page" />
        </DataBindings>
 </telerik:RadMenu>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server"
     ConnectionString="<%$ ConnectionStrings:serpoldbConnectionString %>" 
    SelectCommand="select MenuID,ParentID,FieldText,Page from tbMenu" SelectCommandType="Text"
    CancelSelectOnNullParameter="False">
     </asp:SqlDataSource>

 

 

 

 

</LoggedInTemplate>
    </asp:LoginView>

 

 

 

 

 

 

 

 

 


Veronica
Telerik team
 answered on 03 Jun 2011
1 answer
70 views
I am using a DateTimePicker inside a FilterTemplate for a Grid Column that represents a date.

Obviously Selecting a date should filter the contents to that date, but how do I implement 'before this date' or 'after this date' functionality?

The only example I have found so far on your site has two date pickers in the Filter area.
This uses more screen area than I would like.

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2011
2 answers
126 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
127 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
301 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
151 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
82 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
96 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
118 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
128 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?