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

I am trying to pull grid column data in order to call a procedure.  on e.item, bold below, i am receiving error :

Error1'Telerik.Web.UI.GridNeedDataSourceEventArgs' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'Telerik.Web.UI.GridNeedDataSourceEventArgs' could be found (are you missing a using directive or an assembly reference?)

here is the C#

protected void Mask_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            string @Empl_ID = dataItem.GetDataKeyValue("Empl_ID").ToString();
            RadGridEmpl.DataSource = DataLayer.FirmEmployees.PhoneMask(@Empl_ID);
        }

how can this be fixed?

Kostadin
Telerik team
 answered on 29 Feb 2016
1 answer
106 views
I have a RADMenu inside of a ASP.NET Datagrid header temple. I can't get my event to fire
<telerik:RadMenu ID="SubmitDateContextMenu"  
                                       CollapseDelay="2000"
                                       CollapseAnimation-Type="None"
                                       ExpandDelay="200"
                                       ExpandAnimation-Type="None"
                                       DefaultGroupSettings-OffsetX="0"
                                       EnableViewState="true"
                                       runat="server"
                                       Flow="Horizontal"
                                        OnItemClick="ContextMenu_MenuItemSelected"
                                       >
                                       <Items>
                                           <telerik:RadMenuItem ImageUrl="~/images/Buttons/contextmenu_up.png" Text='SUBMISSION_DATE'
                                               meta:resourcekey="SUBMISSION_DATE">
                                               <Items>
                                                   <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                       ImageUrl="~/images/Icons/sortorder_ascending.png" Text='SORT_ASCENDING'
                                                       meta:resourcekey="SORT_ASCENDING" Value="SUBMISSION_ASC"/>
                                                   <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                       ImageUrl="~/images/Icons/sortorder_descending.png" Text='SORT_DESCENDING'
                                                       meta:resourcekey="SORT_DESCENDING" Value="SUBMISSION_DES"/>  
                                                    </Items>   
                                           </telerik:RadMenuItem>                                      
                                       </Items>
                                   </telerik:RadMenu>

Event:

Public Sub ContextMenu_MenuItemSelected(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)
 
     'save the sort order to the user's session
     QueueFilterData.PSTQueueSortID = e.Item.Value
 
     loadPSTResults()
 End Sub

Nencho
Telerik team
 answered on 29 Feb 2016
10 answers
164 views

Hi,

I am trying to avoid the loading issue on the first look of the Scheduler.

If I can catch the events of the following buttons that will help me out to re-load the visible week on the Scheduler.

Previous Day- Next Day- DatePickerActivator- HeaderDay- HeaderWeek- HeaderMonth

It would be awesome to know what name of the events to catch on the client side and how the date range can be captured and passed through.

I have attached the screenshot of the button. Appreciate it.

Mehmet
Top achievements
Rank 1
 answered on 29 Feb 2016
9 answers
608 views
Is it possible to make a RadTreeView node not selectable but so that you can still expand it?
Anders
Top achievements
Rank 1
 answered on 28 Feb 2016
2 answers
254 views
Greetings, I have a project that I am trying to implement your RadControls with.  Everything works fine until I drop a RadScriptManager onto the page.  I'm trying to replace the following ScriptManager tag with a RadScriptManager, but am getting a JavaScript Critical Error message at startup.  Please note that the web page includes some DevExpress controls, and not just RadControls.  Please advise.

WORKS WITH THIS
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" AsyncPostBackTimeout="360000">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.9.0.min.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.simplemodal.js" />
            <asp:ScriptReference Path="~/Scripts/ui-helper.js" />
        </Scripts>       
</asp:ScriptManager>

DOESN'T WORK WITH THIS
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True" AsyncPostBackTimeout="360000">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.9.0.min.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.simplemodal.js" />
            <asp:ScriptReference Path="~/Scripts/ui-helper.js" />
        </Scripts>
    </telerik:RadScriptManager>

I'M RECIEVING THE FOLLOWING ERROR AT APPLICATION STARTUP

JavaScript critical error at line 1, column 1 in http://localhost:16383/MarketOz/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2

SCRIPT1014: Invalid character



Manik
Top achievements
Rank 1
 answered on 26 Feb 2016
6 answers
131 views

What is the control over when the navigation menu is collapsed into the more menu?  I have a menu whereas soon as the page width drops below approx 500px the remaining items are moved to the more menu.

This happens even when there is a ton of space left.  

There doesn't seem to be a property to control this.

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 26 Feb 2016
2 answers
211 views

I'm running the latest build and using server side selection with a TreeListSelectColumn. Markup is below. The server side event SelectedIndexChanged is firing properly and I am using AJAX to update additional controls from the SQL database. Currently the user has to click on the checkbox (i.e. select column) to fire the selected index event and select the item in the tree. I would like to allow the user to click any column in the list to select the item (i.e. checkbox or item text) and fire the selected index event and subsequently the item to be selected.

Is this possible through a setting? I can't seem to find it. Or is there some custom code I need to add to implement this functionality. Thanks..

<telerik:RadTreeList ID="radtreeCustomer" runat="server" AutoGenerateColumns="false" AllowMultiItemSelection="false" GridLines="None">
   <Columns>
      <telerik:TreeListSelectColumn Display="true" UniqueName="Checked" HeaderStyle-Width="30px"></telerik:TreeListSelectColumn>
      <telerik:TreeListBoundColumn Display="false" UniqueName="Organization_Id" DataField="Organization_Id"></telerik:TreeListBoundColumn>
      <telerik:TreeListBoundColumn Display="false" UniqueName="Parent_Organization_Id" DataField="Parent_Organization_Id"></telerik:TreeListBoundColumn>
      <telerik:TreeListBoundColumn Display="true" UniqueName="Business_Name" DataField="Business_Name"></telerik:TreeListBoundColumn>
   </Columns>
</telerik:RadTreeList>
Steve
Top achievements
Rank 1
 answered on 26 Feb 2016
1 answer
110 views

Hi all;

I'm struggling with the best way to approach this one.  I have a requirement for a grid with two levels grouping (outer and inner).  The inner group requires aggregates of the average of the detail lines in the group - no problem there.  The outer group, though, needs the average of the inner group results -- NOT the average of all the child detail lines.  Anybody have any suggestions how I should approach this?

Thanks,

Jason

Eyup
Telerik team
 answered on 26 Feb 2016
5 answers
424 views
I have a RadTabStrip with 3 tabs ("Show Grid", "Show Chart", "Show Grid & Chart").  It is assigned to a RadMultiPage control with 2 pageViews.  

<telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" skin="Outlook" CssClass="NoBg">
 <Tabs>
   <telerik:RadTab runat="server" Text="Show Grid" PageViewID="PageView1">
   </telerik:RadTab>
   <telerik:RadTab runat="server" Text="Show Chart" PageViewID="PageView2">
   </telerik:RadTab>
   <telerik:RadTab runat="server" Text="Show Grid & Chart">
   </telerik:RadTab>
 </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="0" Width="400">
  <telerik:RadPageView id="PageView1" runat="server">
      show the radgrid
  </telerik:RadPageView>
  <telerik:RadPageView id="PageView2" runat="server">
     show the radhtmlchart
  </telerik:RadPageView
</telerik:RadMultiPage>

How do I make my 3rd tab "Show Grid & Chart" show both "PageView1" & "PageView2"?  Is this possible?  I do NOT want to add a 3rd pageView that has the duplicate controls in PageView1 & PageView2.

Please advise on how to do this either via client-side (javascript) or server-side (c#) code.

Thanks!

Chris
Top achievements
Rank 1
 answered on 26 Feb 2016
1 answer
99 views

Hi,

 

             I am having a # error which is inserted by the Rad DatePicker. When i open one of the DatePicker it closes suddenly and the page url adds the # symbol at the end of the Url. Can anyone tell me how to resolve this issue.

 

Thanks,

Pranith

Eyup
Telerik team
 answered on 26 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?