Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
65 views
Hello,

I created a composite control containing a RadGrid and several buttons for the user to configure the Grid (e.g. the columns).
The composite control also adds a loading panel which is used for ajaxifying the Grid.
I'm using the RadGrid on the page itself, and the other Grid is used in the FormTemplate of the first Grid. Everything works so far, but the LoadingPanel. It works fine for the first Grid, but doesn't for the Grid in the FormTemplate.

As I've seen in the markup, the loading panel is displayed, but it's height and width are both 0px. What could be the cause that the first RadGrid has it's LoadingPanel work correctly but the second one doesn't? What could be the cause for that behavior?

Thanks for your help!
Maria Ilieva
Telerik team
 answered on 06 Apr 2012
3 answers
211 views
Hi Telerik Team,

                       We are Explore all Telerik controls but currently in our system we use asp grid with customizes control in that grid there is option of Menu in Grid because we use grid data for multiple operation but in Telerik Grid have not option for display Menu in Grid Header.So how we achieve Menu option in Telerik Grid. If we have not option of "Menu" then we have to use Multiple Buttons to perform operation in Grid.Please Give Us solution that Grid have option for menus and in each menu there would be event on server side.



Please see our attach file of Menu Option Grid.
           
Tsvetina
Telerik team
 answered on 06 Apr 2012
1 answer
139 views
we are using Rad AsyncUpload control to upload files.we have limit on file size that is to be uploaded.when we try to upload a file whose size is more than the limit,we need to show alert message and stop uploading file progress on client side.We tried this using OnClientProgressUpdating event.Using this event we are able to show alert but could not stop uploading progress.how can we cancel the progress?
Plamen
Telerik team
 answered on 06 Apr 2012
3 answers
214 views
I think a demo about the RadListBox in RadGrid,included the add,delete,update function. front code have a control,and behind code have bound data and command.that's all.But I donot find the demo.who have a demo,please give me,Thanks a lot!!
Vasil
Telerik team
 answered on 06 Apr 2012
1 answer
143 views
Hello,
i have two ComboBoxes in my EditItemTemplate. The comboboxes are to be interdependent. The key to the first combobox should be the selection criterion for the second combobox.
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" Culture="de-DE"
DataSourceID="SqlDataSource1" GridLines="None">
 
 
<MasterTableView autogeneratecolumns="False" datasourceid="SqlDataSource1" CommandItemDisplay="TopAndBottom">
 
 
<Columns>
<telerik:GridBoundColumn DataField="LayoutID" DataType="System.Int64"
FilterControlAltText="Filter LayoutID column" HeaderText="LayoutID"
SortExpression="LayoutID" UniqueName="LayoutID">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="LayoutTypeID" DataType="System.Int32"
FilterControlAltText="Filter LayoutTypeID column" HeaderText="LayoutTypeID"
SortExpression="LayoutTypeID" UniqueName="LayoutTypeID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox1" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceTypes" DataTextField="TypeName"
    DataValueField="TypeID"  >
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="LayoutTypeIDLabel" runat="server"
    Text='<%# Eval("LayoutTypeID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="PlayerID" DataType="System.Int64"
FilterControlAltText="Filter PlayerID column" HeaderText="PlayerID"
SortExpression="PlayerID" UniqueName="PlayerID">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox2" Runat="server" Culture="de-DE"
    DataSourceID="SqlDataSourceLayout" DataTextField="LayoutName"
    DataValueField="LayoutID">
</telerik:RadComboBox>
 
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="PlayerIDLabel" runat="server" Text='<%# Eval("PlayerID") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
 
SelectCommand="SELECT LayoutID, LayoutTypeID, PlayerID FROM cms_player_layout WHERE (PlayerID = @playerID)"
InsertCommand="INSERT INTO cms_player_layout(PlayerID, LayoutID, LayoutTypeID) VALUES (@playerID, @layoutID, @layoutTypeID)">
<InsertParameters>
<asp:Parameter Name="playerID" />
<asp:Parameter Name="layoutID" />
<asp:Parameter Name="layoutTypeID" />
</InsertParameters>
<SelectParameters>
<asp:Parameter Name="playerID" DefaultValue="1" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceTypes" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT TypeID, TypeName, TypeText, TypeObjectTypes, TypeMenu, TypePriority, ProjectID FROM cms_layouttypes ORDER BY TypeName">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceLayout" runat="server"
    ConnectionString="<%$ ConnectionStrings:uebung1DBConnectionString1 %>"
    SelectCommand="SELECT LayoutID, ParentID, LayoutName, LayoutArt, LayoutBgColor, LayoutBgImage, LayoutSize, LayoutWidth, LayoutHeight, LayoutType FROM cms_layouts WHERE (LayoutType = @layoutType)">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="layoutType" />
    </SelectParameters>
</asp:SqlDataSource>

How can I do that?

Best regards
Reiner


Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
1 answer
370 views
Hi,
Trying to find a way to hide the
 <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Notes"></telerik:GridEditCommandColumn>
if a person doe snot have admin privledges, I see lots of examples for other buttons and controls but so far not this way.

Protected Sub myRadGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            Dim EditFormcmdItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
  
            If checkAdmin() = False Then
                EditFormcmdItem.FindControl("EditCommandColumn").Visible = False
            End If
        End If
    End Sub
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Apr 2012
12 answers
401 views
Hi,

I am referring the below link,
http://www.telerik.com/help/aspnet-ajax/grid-binding-description-bind-method.html

two way binding at RadGrid, and I am currently migrating the GridView to RaidGrid, which GridView Application was using bind method to DataTable and save it DataBase, You may refer the below link,

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-binding-to-datatable.aspx

and My question is,

1. ItemUpdated event was not fired, does it support? if not, any alternative solutions?
2. which event can be traced when data has been updated to the DataSource by using the above Two-way Declarative Binding approach?
3. Do we need to explicit update the value from RadGrid to DataSource (e.g DataTable)? for GridView, there is a function call gridView.UpdateRow to upate to DataSource.
4. As I have plenty of logic monitoring the dataTable dataChaning event for data validation, conditional data retrieving,calculation and so, it is painful if bind to DataTable is not working for GadGrid, Any Suggest for me?  

Thanks.
w
Top achievements
Rank 1
 answered on 06 Apr 2012
0 answers
65 views
Hello ,

I am Using the Tabstrip in which I have parent Datalist which also contain the child Datalist,My problem  is it is not working properly after postback can any body give me the code for this sample

Amit
Top achievements
Rank 1
 asked on 06 Apr 2012
1 answer
112 views
I am Using two ascx files in one aspx file
a.ascx
    raddock1
    raddock2
b.ascx
    raddock3
    raddock4

main aspx
radzone 1
radzone2

i want to display raddock1 in radzone2 of aspx
but when i use findcontrol it will return me null

 

Zaheer
Top achievements
Rank 1
 answered on 06 Apr 2012
1 answer
118 views
I have a Multiview calendar which is set by default to show 1 year, in 4 columns and 3 rows.

I have 2 other DatePickers on the page that let the user pick a start and end date.

Based on the range selection in the 2 datepickers, I would like to hide unused months in the Multiview calendar.  For instance, I show 12 months by default in Multiview, but if you select a range of April to August, then I would like to show the first row of 4, but then only 1 month calendar in row 2 - effectively hiding the last 7 months.  All of this to be done dynamically on the server-side.


I can't seem to find a way to do this.  Any one?

Dan
Top achievements
Rank 1
 answered on 06 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?