Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
501 views
Hi,

this is my first time using OnNeedDataSource. I've followed the sample codes within the demo to create a code-behind on the C# file. The Event on the code behind fails to fire. the following was my error message.

Compiler Error Message: CS1061: 'ASP.wellvent_aspx' does not contain a definition for 'RadGrid1_NeedDataSource' and no extension method 'RadGrid1_NeedDataSource' accepting a first argument of type 'ASP.wellvent_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 44:                    </telerik:RadAjaxManager>
Line 45: 
Line 46: <telerik:RadGrid ID="RadGrid1" GridLines="None" AutoGenerateColumns="False" runat="server" Line 47:                       AllowPaging="True" AllowSorting="True" 
Line 48:                       OnNeedDataSource="RadGrid1_NeedDataSource" 


This is the first part of my aspx file

<

telerik:RadGrid ID="RadGrid1" GridLines="None" AutoGenerateColumns="False" runat="server"

AllowPaging="True" AllowSorting="True"

OnNeedDataSource="RadGrid1_NeedDataSource"

OnItemDataBound="OnItemDataBoundHandler"

AllowAutomaticUpdates="True" AllowAutomaticInserts="True"

ShowStatusBar="True" AllowFilteringByColumn="True" CellSpacing="0" EnableAJAX="True">

<MasterTableView ShowFooter="false" DataKeyNames="ResultsID" EditMode="InPlace" CommandItemDisplay="TopAndBottom">

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

<Columns>

<telerik:GridEditCommandColumn FooterText="EditCommand footer" UniqueName="EditCommandColumn"

HeaderText="Edit" HeaderStyle-Width="25px" UpdateText="Update">

<HeaderStyle Width="25px" HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />

</telerik:GridEditCommandColumn>

<telerik:GridButtonColumn FilterControlAltText="Filter Delete column"

HeaderText="Delete" HeaderStyle-Width="25px" Text="Delete" UniqueName="DeleteColumn">

<HeaderStyle Width="25px" HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>  

 

</telerik:GridButtonColumn>

<telerik:GridTemplateColumn UniqueName="AreaName" HeaderText="Area"

SortExpression="AreaName" ItemStyle-Width="150px">

<FooterTemplate>

Template footer

</FooterTemplate>

 

<FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />

 

<ItemTemplate>

<%

#DataBinder.Eval(Container.DataItem, "AreaName")%>

</ItemTemplate>

 

<EditItemTemplate>

 

<telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="True" DataTextField="AreaName"

 

OnItemsRequested="RadComboBox1_ItemsRequested" DataValueField="ID" AutoPostBack="true"

 

HighlightTemplatedItems="true" Height="140px" Width="100px" DropDownWidth="120px"

 

OnSelectedIndexChanged="ComboBox1_OnSelectedIndexChangedHandler">

<ItemTemplate>

<%# DataBinder.Eval(Container, "Text")%>

</ItemTemplate>

 

</telerik:RadComboBox>

 

</EditItemTemplate>  

 

<HeaderStyle Width="100px" />  

 

<ItemStyle Width="100px"></ItemStyle>  

 

</telerik:GridTemplateColumn> 

This is the first part of my C# code private void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 {

Gary
Top achievements
Rank 1
 answered on 12 Aug 2013
4 answers
129 views
Hi,

How to add a CheckAll button to dropdowntree?

Thanks,
Berk.
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2013
1 answer
217 views

I am trying to make it that on page load in the code behind, I disable a button in the radmenu using javascript

the error is : cant find object - $find('myRadMenu') and the name is correct, so it has something todo with when the radmenu is rendered so I tried a wrap my script in a document.ready but that also won't work

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load

ClientScript.RegisterStartupScript(Me.GetType(), "test", "<script type='text/javascript'> $find('myRadMenu').findItemByText('MyButton').disable(); </script>")

End Sub

Do you know how to disable a radmenu button from javascript that is called from the vb.net page load function.

It must be done this way as I have other javascript that needs to fire

Shinu
Top achievements
Rank 2
 answered on 12 Aug 2013
4 answers
623 views

Hi ,
I want only add,delete button in RadUpload. how can i achieve this ?

Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2013
2 answers
77 views
Good morning,
I used this example
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

After entry, the panel with usercontrol remains visible.
Is possible hide this panel after confirm opeeration ?
lupotana
Top achievements
Rank 1
 answered on 12 Aug 2013
3 answers
96 views
I have a grid with merged headers and the Office2007 skin, and its all fine. However...

I like to copy the skin files and rename them so I can tweak as required, and this worked fine up til now.

If I copy the office2007 skin files into my app and rename the declaration section of the grid to use them, the gradient fill only fills the height of a single header row, meaning that where I have merged the header cells I see the background colour for the bottom part of the header. Obviously the single rows display fine.

I'm using 2013.2.611.4 which I know it's not the latest version, Upgrading will require a full regression test which I don't want to do for a simple colour change.

Andy Ideas.

Andy
Venelin
Telerik team
 answered on 12 Aug 2013
1 answer
225 views

I need to enhance the application and the table structure cannot be amend.

Table structure:

ID      StaffID     Type
========================
1       1           1
2       1           2  
3       1           3
4       2           2
5       2           3
6       3           1

 

 

I want to group same StaffID into one gridview row and then databind the checkbox (Type 1, Type 2, Type3) based on the value of "Type" column.

Proposed Gridview :

StaffID     StaffName   Type 1  Type 2  Type 3
==============================================
1           Amy         [X]     [X]     [X]
2           John        [ ]     [X]     [X]
3           Chris       [X]     [ ]     [ ]

Moreover, How can i insert/delete record if user check/uncheck the checkbox in gridview ?
Thanks.
 

Vasil
Telerik team
 answered on 12 Aug 2013
1 answer
151 views
I have a drop down where user can select the skin of their choice. The problem i am having is when user select the skin type to default then it won't display me a scheduler(See image.) but every other skins works fine with scheduler. 
Please help me

Thank you 
Ashesh 
Magdalena
Telerik team
 answered on 12 Aug 2013
1 answer
228 views
I have a vertical menu on a RadTabStrip. Is there a way to wrap text displayed on a RadTab?

Here is a sample of the code. I am trying to wrap the text on the third RadTab.

<telerik:RadTabStrip runat="server" ID="RadTabStrip3" MultiPageID="RadMultiPage2"
    Orientation="VerticalLeft" Skin="Windows7" Width="200px" SelectedIndex="0" Align="Left"  >
    <Tabs>
        <telerik:RadTab Height="30px"  Text="Funding Opportunity Announcements"  ></telerik:RadTab>
        <telerik:RadTab Height="30px"  Text="Application Requirements" ></telerik:RadTab>
        <telerik:RadTab Height="60px"  Text="Objective Review of Grant Applications, Selections, and Award" ></telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
I am using ASP.NET 2013 Q1. A previous post suggested modifying the CSS Style sheet but that only worked for horizontal tabs.

Thanks for any help.

Chris 

Magdalena
Telerik team
 answered on 12 Aug 2013
2 answers
138 views
  I want x axis summary text as in the attachment, it is possible, I am using rad chart
  and how can i achieve this.
 Thanks
Irfan
Top achievements
Rank 1
 answered on 12 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?