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

Is it possible to disable "HeaderContextMenu" on Rad Grid columns? It doesn't make sense to have it on all columns.

Many thanks

M G
FISCAL
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
59 views
Hi,

We are using RadAjaxPanel. Previously we used to use RadajaxPanel from Telerik.WebControls Assembly, but now we decided to use the Telerik.Web.UI assembly.

Everything was working fine before the change and we just changed the assembly reference. After conversion we found that buttons inside RadAjaxPanel are causing full postback instead of just doing a partial postback in that RadAjaxPanel.

Any help would be greatly appreciated. I am using 2009 Q1 release.

Thanks
Anubhav
Maria Ilieva
Telerik team
 answered on 15 Jun 2010
1 answer
65 views
Hi!  We have a Telerik RadGrid that has a master/child hierarchy.  We are also using a Rad Window to allow the user to update a master/child record.  When the update operation is completed in the Rad Window, how can we use AJAX to *refresh only the master or child record that was updated* in Rad Grid (i.e. without refreshing the entire Rad Grid) ?  Please could you point us to some sample code?  Thanks for your help!  -Ravi
Maria Ilieva
Telerik team
 answered on 15 Jun 2010
1 answer
82 views
Hi,

The Filter textbox is getting expanded if the entered text as per the text entered. how do i fix this.
Someone pls help me to fix this.

Jidesh
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
2 answers
265 views
I think this must be a simple thing, and I have searched the forums - but apparently I have completely missed it.

I have a simple RadGrid bound to an ObjectDataSource - the automatic paging / sorting work just fine.

            <telerik:RadGrid ID="rgrdUsers" runat="server" Skin="Web20" AutoGenerateColumns="False" 
                DataSourceID="odsUsers" GridLines="None" AllowSorting="True" AllowPaging="True"> 
                <PagerStyle AlwaysVisible="True" /> 
                <MasterTableView DataSourceID="odsUsers" DataKeyNames="UserID" PagerStyle-AlwaysVisible="True"> 
                    <Columns> 
                        <telerik:GridTemplateColumn UniqueName="ViewProfile" ItemStyle-HorizontalAlign="Center" 
                            HeaderStyle-HorizontalAlign="Center"> 
                            <ItemTemplate> 
                                <asp:ImageButton ID="lnkViewProfile" CommandName="ViewProfile" runat="server" ToolTip="View Profile" 
                                    ImageUrl="~/images/icon_hostusers_16px.gif"></asp:ImageButton> 
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn UniqueName="ViewAdItems" ItemStyle-HorizontalAlign="Center" 
                            HeaderStyle-HorizontalAlign="Center"> 
                            <ItemTemplate> 
                                <asp:ImageButton ID="lnkViewAdItems" CommandName="ViewAdItems" runat="server" ToolTip="View Ad Items" 
                                    ImageUrl="~/images/file.gif"></asp:ImageButton> 
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="Username" HeaderText="Username" SortExpression="Username" 
                            UniqueName="Username"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" 
                            UniqueName="FirstName"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" SortExpression="LastName" 
                            UniqueName="LastName"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Telephone" HeaderText="Telephone" SortExpression="Telephone" 
                            UniqueName="Telephone"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CreatedOnDate" DataType="System.DateTime" HeaderText="Created" 
                            SortExpression="CreatedOnDate" UniqueName="CreatedOnDate" DataFormatString="{0: M/d/yy h:mm tt}"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="LastModifiedOnDate" DataType="System.DateTime" 
                            HeaderText="LastActive" SortExpression="LastModifiedOnDate" UniqueName="LastModifiedOnDate" 
                            DataFormatString="{0: M/d/yy h:mm tt}"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ExpiryDate" DataType="System.DateTime" HeaderText="Expires" 
                            SortExpression="ExpiryDate" UniqueName="ExpiryDate" DataFormatString="{0: M/d/yy h:mm tt}"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Props/Ads" SortExpression="CountAdItems" 
                            UniqueName="CountAdItems" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"> 
                            <ItemTemplate> 
                                <asp:Label ID="lblProps" runat="server" Text='<% #Eval("CountAdItems") %>'></asp:Label> 
                                / 
                                <asp:Label ID="lblAds" runat="server" Text='<% #Eval("CountAdInstances") %>'></asp:Label> 
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Views/Clicks" SortExpression="CountAdViews" 
                            UniqueName="CountAdViews" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"> 
                            <ItemTemplate> 
                                <asp:Label ID="lblViews" runat="server" Text='<% #Eval("CountAdViews") %>'></asp:Label> 
                                / 
                                <asp:Label ID="lblClicks" runat="server" Text='<% #Eval("CountAdClicks") %>'></asp:Label> 
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="AffiliateName" HeaderText="Affiliate" SortExpression="AffiliateName" 
                            UniqueName="AffiliateName"> 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <PagerStyle AlwaysVisible="True"></PagerStyle> 
                </MasterTableView> 
            </telerik:RadGrid> 

When I add the following ItemCommand code, the actual ItemCommands do work as expected - however, paging and sorting is no longer functional. I see the paging/sorting post back (via firebug) - and what I think is happening is the paging/sorting fire the ItemCommand code, but there is nothing there to handle that. So my question is, what needs to be done to keep the automatic paging/sorting in place, along with the following ItemCommand logic?

   Protected Sub rgrdUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgrdUsers.ItemCommand 
 
            Dim UserID As Integer = Int32.Parse(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("UserID")) 
 
            Select Case e.CommandName 
 
                Case "ViewProfile" 
                    Response.Redirect("~/MyProfile.aspx?UserID=" & UserID) 
                Case "ViewAdItems" 
                    Response.Redirect("~/Home.aspx?UserID=" & UserID) 
                
            End Select 
        End Sub 


Thanks - Kevin
Kevin Wood
Top achievements
Rank 1
 answered on 15 Jun 2010
2 answers
95 views
Hi Telerik,
I Have a issue with RadComboBox skin in IE8
Here is my code and issue in blelow picture

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server"></telerik:RadComboBox> 
        <telerik:RadComboBox ID="RadComboBox2" runat="server"></telerik:RadComboBox> 
        <telerik:RadComboBox ID="RadComboBox3" runat="server"></telerik:RadComboBox> 
        <telerik:RadComboBox ID="RadComboBox4" runat="server"></telerik:RadComboBox> 
    </div> 
    </form> 
</body> 
</html> 

Please check it
VnDevil
Top achievements
Rank 2
 answered on 15 Jun 2010
1 answer
140 views
Hi
I want full client side functionality which dnt need to post back data to server because it is very expensive to post all rows of grid for adding just a new row
i have some text boxes on grid and i want to add a row in grid and set value of its column of what i have entered in text boxes by clicking a button and repeat this process no of times. 
What i see that i cant do this from client side, i can do by firing command event of grid but it fires on server while i dnt want to raise any server side event so that i can reduce client to server transfer.
how can i do this plz give example
i want something like this
function btnUpdateRow_Click()
        {
            masterTable.IsItemInserted = true;
            var masterTable = $find("<%= grdBody.ClientID %>").get_masterTableView();
   masterTable.IsItemInserted = true; //something like this to put grid in inserted mode but grid has no such property
            masterTable.InsertItem();
///After this access inserted row and assign value in that newly inserted row
If this functionality not available, can we expect any such functionality in next version of telerik
        } 
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
3 answers
149 views
Hello,
I have a hierarchial grid in which I would like to open the insert form template from an image button/link button in a grid row/cell but in all of the documentation it appears that it needs to open from the CommandItem Template.   Is there a way to do this?  The row that gets inserted would actually be a child record for the row on which the image button is selected, so I need it to have some context available in the insert command event to identify the parent record for which to tie the child record to.   Assuming the answer to my first question is "Yes", is there a way to obtain a key value from the correct row in the insert command event?
Radoslav
Telerik team
 answered on 15 Jun 2010
2 answers
121 views
Hi !!

I am working to create online Virtual Lab. In this lab we are providing access to Laboratory instruments to our users.

Since there is only one instrument therefore we want only one user to book a time slot. For this I had taken day view in RadShedular time slot is one hour from 10:00 A.M. to 5 P.M. that is total 7 slots. (10:00 A.M. to 11:00 A.M., 11:00 A.M. to 12:00 P.M,.....4:pm to 5 P.M.).

If some user books one slot for example 10:00 A.M to 11:00 P.M. then no other user is allowed to book same slot.

I am not able to implement the above mentioned problem.

Thanks & Regards,
Rehan Mohd
Rehan Mohd
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
104 views
Hi Guys,
I have got a site in which I am using telerik controls.
But when I am compiling that it shows an error like
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.309.20,Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies.The located assembly's manifest definition does not match the assemblyreference. (Exception from HRESULT: 0x80131040).

Can anyone help me out with this.

Thanks in Advance,
Victor.
Daniel
Telerik team
 answered on 15 Jun 2010
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?