Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
191 views
Hi Telerik team,
Is there any way to remove the Rad Grid Header images applied to it as  a style
please check the following image  if you do not understand my question
http://www.4shared.com/photo/cEuegqd9/_online.html

Tools
asp.net 3.5
rad controls for asp.ne ajax 2009 Q3
windows 7



Dimo
Telerik team
 answered on 15 Jun 2010
2 answers
187 views
Hi all,

I have been playing around with the possibility of enabling users to enter a new url into a radcombobox if it doesn't exist in list already. I have the following markup in my grid <FormTemplate> which pulls its data from a table named tblUrls:

<telerik:RadComboBox ID="UrlComboBox"  
                     runat="server"  
                     HighlightTemplatedItems="true" 
                     AllowCustomText="true"  
                     Skin="Windows7"  
                     Width="365px"  
                     Height="150px"  
                     DataSourceID="UrlDataSource"  
                     DataTextField="Url"  
                     DataValueField="Url" 
                     SelectedValue='<%# Bind("Url") %>'  
                     AppendDataBoundItems="true">

<Items> 
        <telerik:RadComboBoxItem Text="[Not Defined]" Value="" /> 
    </Items> 
    <FooterTemplate> 
        <telerik:RadTextBox ID="tbNewUrl" runat="server" Skin="Windows7" EmptyMessage="Add a new Url here..."/> 
        <br /> 
        <asp:Button ID="AddUrlBtn" runat="server" Text="Add Url" OnClick="AddUrlBtn_Click" /> 
    </FooterTemplate>

</
telerik:RadComboBox> 

I have tried getting access to the tbNewUrl radtextbox inside the RadComboBox in the c# code behind to no avail. I need the AddUrlBtn_Click to save whatever value is put in by the user to the database when the grid is in insert or edit mode. I have the database INSERT code already worked out but getting access to the RadComboBox and the newly inputted url data is proving to be a real pain. I am sure it is real simple, but patience has run out on this one and I am forced to try another way of doing this if I can;t get it resolved quickly.

I have tried:

protected void AddUrlBtn_Click(object sender, EventArgs e) 
    TextBox Urltxt = (TextBox)UrlComboBox.Footer.FindControl("tbNewUrl"); 

if ((!String.IsNullOrEmpty(Urltxt.Text))&&(UrlComboBox.FindItemByText(Urltxt.Text) == null)) 
    { 
        UrlComboBox.Items.Insert(0, new RadComboBoxItem(Urltxt.Text)); 
        UrlComboBox.SelectedIndex = 0
        Urltxt.Text = String.Empty; 
    }
}

I have also tried:

TextBox AddUrlText = (TextBox)this.Page.Master.FindControl("ContentPlaceHolder").FindControl("tbNewUrl"); 

inside the buttons click event - AddUrlBtn_Click but it can't find the control???

The grid is ajaxified too but when I click the AddUrlBtn in its current condition the page does a full postback as well whilst in insert/edit mode which is undesirable.

Any help with this would be greatly appreciated to I can move on with this project.

Thanks in advance for any help :)
Veronica
Telerik team
 answered on 15 Jun 2010
1 answer
205 views
Hello
As I can make a mega drop down, so dynamic that I find very good option to design menus, or at least similar as additional file where the image seems very complete and well designed.

Thanks
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
1 answer
99 views
Is there a way to make files inside the FileExplorer show up in a separate browser window, rather than inside the Iframe window?
Dobromir
Telerik team
 answered on 15 Jun 2010
2 answers
150 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
62 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
77 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
253 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 ObjectByVal 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
93 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?