Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Hi, I am trying your demo code found here http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
and used it as a starting point to add a RadComboBox of a column in my grid as shown here. The boldfaced line below throws an error in the browser - Compiler Error Message: BC30108: 'GridItem' is a type and cannot be used as an expression.

here is the code - any thoughts or help greatly appreciated.

<telerik:GridBoundColumn DataField="Difficulty" HeaderText="Difficulty" UniqueName="Difficulty">
                               <FilterTemplate>
                         <telerik:RadComboBox ID="rcbDifficulty" runat="server" OnClientSelectedIndexChanged="difficulty_changed" width="50px">
                         <Items>
                         <telerik:RadComboBoxItem Text="Beginner" value="Beginner"/>
                         <telerik:RadComboBoxItem Text="Intermediate" value="Intermediate"/>
                         <telerik:RadComboBoxItem Text="Advanced" value="Advanced"/>
                         </Items>
                         </telerik:RadComboBox>
                          <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                <script type="text/javascript">
                                    function difficulty_changed(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        tableView.filter("Difficulty", args.get_item().get_value(), "EqualTo");

                                    }
                                </script>

                            </telerik:RadScriptBlock>
                         </FilterTemplate>
                        </telerik:GridBoundColumn>
Princy
Top achievements
Rank 2
 answered on 14 Mar 2011
1 answer
171 views
Hi All

When i am trying to edit the RadEditor which is inside the Form Template of a Radgrid for the first name, the Editor goes outside the form and its becoming too much wide.

Please see the video here Radeditor breaking width

This is happening for when running inside IE8, in FF it is working perfectly.

I have tried fixing with following code also but its not working..

function OnClientInit(editor) {
     var editorWidth = editor.get_element().style.width;
      
     editor.add_firstShow(function() {
         editor.get_element().style.width = editorWidth;
     });
 }

Thanks
Asutosh

Asutosh
Top achievements
Rank 1
 answered on 14 Mar 2011
1 answer
227 views
How to I make the RadGrid popup editform non-draggable?
Shinu
Top achievements
Rank 2
 answered on 14 Mar 2011
7 answers
318 views
Hi all,

In the Media Manager config, I added the *.mov extension but when users add a mov file the player is Windows Media Player which can't play mov files.

How can I configure Telerik to use quicktime when the media is a .mov file ?

mhmoud
Top achievements
Rank 1
 answered on 13 Mar 2011
1 answer
138 views
Hello

I have a RadTextBox that after it get's populated with "Tuff Stuff&#8482; Sky Blue Rectangular Carpet - 6` x 9`" value breaks future AJAX requests. The error is Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500. 

Obviously it's that certain value that causes the problem. Using HtmlEncode on it fixes the problem however I'd like to get the text displayed as-in. I also don't need it edited, it's just read-only.

Any tips?

Regards
Mihai
Mihai Dinculescu
Top achievements
Rank 1
 answered on 13 Mar 2011
4 answers
113 views
Hi guys.

I have a problem with Image and Document managers.

  1. If set ViewPaths property to not exists folder - see screenshot1
  2. If set ViewPaths property to exists folder but this folder is empty - see screenshot2

When copy some file to this folder - everything looks fine.

Thanks in advance. 

Regards,
Ernesto.
Robert Stordeur
Top achievements
Rank 1
 answered on 12 Mar 2011
2 answers
283 views
I have a radtreelist where I expose my webpage hierarchie. When I select a pageitem  in the tree i will be navigated to a webpage where I can edit this pageitem. After saving the changes I will be navigated back to my the with the radtreelist. What I want is to expand the treeitem I have just edited. So actually restoring the collapse-view like it was before I was navigated to the editpage.

How can I retrieve the dataitem in the treeview basewd on the DataKeyName.

Does anybody has an example how to accomplish this.

Thanks

Patrick
Patrick
Top achievements
Rank 1
 answered on 12 Mar 2011
1 answer
70 views
We have 2009-Q2 version.  The progress bar is not showing at all when using the upload control in IE9.  It works fine in IE8 and other browswers.  Any body else had this problem?  Thanks.
Mark
Top achievements
Rank 1
 answered on 12 Mar 2011
3 answers
116 views
I've been looking at the properties but I can't seem to figure out how to get the menu to behave as it does on Telerik's site, most likely the top of the page you're looking at now.  The menu with Products and Solutions.  When one is active the others don't show and they stay there until someone clicks out.  Is this custom code?  Any help would be greatly appreciated.

Thank you.
Kate
Telerik team
 answered on 12 Mar 2011
1 answer
191 views
Dear Expert,

Please i used ComboBox with services ,in my local machine its work fine also when i publish it to IIS7 .

now when i put the site one the server and access it the services not working and give me The Server Method " " Failed.

Please Help

Best Regards 
Ab Abulubbad
My code IS :
<tel:RadComboBox ID="rcbFileNo" runat="server" Skin="Web20" Width="80px" AutoPostBack="True"
                        AllowCustomText="True" MarkFirstMatch="True" EnableLoadOnDemand="True" EnableItemCaching="True"
                        ShowMoreResultsBox="True" OnClientItemsRequesting="OnClientItemsRequesting" EmptyMessage="رقم الملف"
                        OnSelectedIndexChanged="rcbFileNo_SelectedIndexChanged" meta:resourcekey="rcbFileNoResource1">
                        <WebServiceSettings Method="SearchFileNo" Path="~/Services/asmx/Search.asmx" />
                    </tel:RadComboBox>
                    <asp:ObjectDataSource ID="odsGetFileNosList" runat="server" SelectMethod="GetFileNosList"
                        TypeName="SMASIP.DataAccess.DBA.SMASServicesOldDB.LookupsServices"></asp:ObjectDataSource>


using System.Collections;
using System.Web.Services;
using System.Data.SqlClient;
using SMASIP.WebApplication.Base;
using SMASIP.DataAccess.DAL;
using Telerik.Web.UI;
using System.Web.Script.Services;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WebService : System.Web.Services.WebService
{
    SqlParameterCollection par = null;
    public WebService()
    {
 
        //Uncomment the following line if using designed components
        //InitializeComponent();
    }
 
 
    [WebMethod(EnableSession = true)]
    public IEnumerable SearchFileNo(RadComboBoxContext context)
    {
        par = new SqlCommand().Parameters;
        par.AddWithValue("@SearchPar", context.Text);
        par.AddWithValue("@cmd", "GetFileNosList");
 
        return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
    }
    [WebMethod(EnableSession = true)]
    public IEnumerable SearchClassNo(RadComboBoxContext context)
    {
        par = new SqlCommand().Parameters;
        par.AddWithValue("@SearchPar", context.Text);
        par.AddWithValue("@cmd", "SearchClassNo");
 
        return DataProcess.GetIEnumerableList(Abstract.getDataTable("p_OldSMASIPServicesProcedure", par));
    }
}
Dimitar Terziev
Telerik team
 answered on 12 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?