Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
381 views

My situation
I have a RadGrid where some columns contain RadComboBoxes.  These RadComboBoxes only display a code (mostly 3 characters), when they open they display two columns (the code and a description).

My RadComboBox is defined as follows:

<telerik:RadComboBox Width="65px" DropDownWidth="270" ID="radComboBoxVHT"   
   Filter="contains" AllowCustomText="true" HighlightTemplatedItems="true"   
   markfirstmatch="true" runat="server" EnableLoadOnDemand="true"   
   EnableScreenBoundaryDetection="true" DataSourceID="dataSourceVHT" DataTextField="Code"   
   DataValueField="Code" SelectedValue='<%#Bind("VHTCode") %>' > 
        <HeaderTemplate> 
            <table style="width:250px;" cellspacing="0" cellpadding="0">
             <tr> 
                    <td style="width:50px;">Code</td> 
                    <td style="width:200px;">Description</td> 
                 </tr>
             </table>  
        </HeaderTemplate> 
        <ItemTemplate> 
            <table style="width:250px;" class="comboTable" cellspacing="0" cellpadding="0">  
                <tr> 
                    <td style="width:50px;">  
                        <div class='comboItem'>  
                            <%#DataBinder.Eval(Container.DataItem, "Code")%> 
                        </div> 
                    </td> 
                    <td style="width:200px;">  
                        <div class='comboItem'>  
                            <%#DataBinder.Eval(Container.DataItem, "Description")%> 
                        </div> 
                    </td> 
                </tr> 
            </table> 
        </ItemTemplate> 
</telerik:RadComboBox> 

The problem
When the user starts typing in the combobox, it's only filtering on the first column (Code).  I also wants it to filter on the second column.  In fact: on both columns.

Example I have following two items in the combobox:

REQ | Send a request
FIN | Require finishing

When the user starts typing "req" I still want to see both items, and not only the first.

Hristo Valyavicharski
Telerik team
 answered on 08 Mar 2013
1 answer
143 views
When I create a BarSeries that has zero value items I am NOT seeing a label with the value of zero for those items.  Every other item with a non-zero value has a label, but not ones with a value of zero.  This is especially disconcerting for graphs with only one bar item because it appears that the graph did not load at all.

Is there a way to show these zero-value labels?
Danail Vasilev
Telerik team
 answered on 08 Mar 2013
2 answers
186 views
I've implemented a custom handler, however, I get a null exception further down the stack which I can't step through. I'm wondering if I'm doing something wrong or if there is a bug in the handler. It seems to happen after the file upload is successful.

  • I've set HttpHandlerUrl on RadAsynUpload to "~/EDocsAsyncUpload" 
  • I've added the handler in the .config: <add name="EDSExtendedRadAsyncUploader" verb="*" path="EDocsAsyncUpload" type="EDS.DNN.ExtendedAsyncUploadHandler.ExtendedAsyncUploadHandler, EDS.DNN.ExtendedAsyncUploadHandler"/>
  • All permissions are set for the app pool user on the temp folder. I've allow all users access to the handler with this config: <location path="EDocsAsyncUpload"><system.web><authorization><allow users="*"/></authorization></system.web></location>
  • Telerik.Web.UI version is 2012.1.411.35
  • I'm using Windows 7. All browsers regardless of which plugin I use exhibit the same behaviour.

    [Serializable]
    public class ExtendedAsyncUploadResult : IAsyncUploadResult
    {
        public string TempFileName { get; set; }
        public bool Valid { get; set; }
        public string ValidationMessage { get; set; }
        public int ContentLength { get; set; }
        public string ContentType { get; set; }
        public string FileName { get; set; }
        public int Pages { get; set; }
        public ExtendedAsyncUploadResult()
        {
            this.TempFileName = string.Empty;
            this.ValidationMessage = string.Empty;
            this.ContentType = string.Empty;
            this.FileName = string.Empty;
        }
    }
 
public class ExtendedAsyncUploadHandler : Telerik.Web.UI.AsyncUploadHandler
    {
        protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context,
            IAsyncUploadConfiguration configuration, string tempFileName)
        {
            IAsyncUploadResult result = base.Process(file, context, configuration, tempFileName);
            ExtendedAsyncUploadResult extendedResult = base.CreateDefaultUploadResult<ExtendedAsyncUploadResult>(file);
            extendedResult.TempFileName = tempFileName;
             
            try
            {
                string imagePath = Path.Combine(configuration.TempTargetFolder, tempFileName);
                if (File.Exists(imagePath))
                {
                    ImagingService.ImagingServiceClient client
                        = new ImagingService.ImagingServiceClient("NetTcpBinding_IImagingService");
 
                    ImageServiceValidationResult validationResult = client.ValidateImage(
                        imagePath, Path.GetExtension(result.FileName));
 
                    extendedResult.Valid = validationResult.State
                        == ImageServiceValidationResult.ValidState.Valid;
 
                    extendedResult.ValidationMessage = validationResult.Errors.ToString();
                    extendedResult.Pages = validationResult.PageCount;
                }
                else
                {
                    throw new Exception("File does not exist.");
                }
 
            }
            catch (Exception ex)
            {
                extendedResult.ValidationMessage = ex.Message;
                extendedResult.Valid = false;
            }
 
            return extendedResult;
        }
 
    }


I get the following exception.

<!-- 
[NullReferenceException]: Object reference not set to an instance of an object.
   at System.Web.Util.StringUtil.memcpyimpl(Byte* src, Byte* dest, Int32 len)
   at System.Web.Util.StringUtil.UnsafeStringCopy(String src, Int32 srcIndex, Char[] dest, Int32 destIndex, Int32 len)
   at System.Web.HttpWriter.Write(String s)
   at Telerik.Web.UI.AsyncUpload.ResponseWriter.WriteToResponse(String response)
   at Telerik.Web.UI.AsyncUploadHandler.ProcessUploadedFile()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--> 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af1f77841-f126-4726-9fc2-0ee8be7d2341%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a2003d0b8%3a1e771326%3aaa288e2d%3aed16cbdc%3a874f8ea2%3ac172ae1e%3a19620875%3a9cdfc6e7%3ae330518b%3ac8618e41%3ae4f8f289%3a490a9d4e%3abd8f85e4%3a68f76a79%3a2a2fc429%3a7165f74%3ab7778d6c%3a52af31a4, line 13675 character 8

Peter Filipov
Telerik team
 answered on 08 Mar 2013
1 answer
62 views
Hello,

I would like to know if the RadSocialShare supports Google Analytics integration? If this feature is supported, please let me know how to deal with this.

Thank you,
Damian.
Princy
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
83 views
In mode load on demand:
When click on expand item multiply, then load icons are duplicated and does not hided
Example was attached. 
Boyan Dimitrov
Telerik team
 answered on 08 Mar 2013
1 answer
284 views
Hi,

I have the following scenario to be achieved. I want to display a captcha in numeric form and want the user to perform an arithmetic calculation and enter the result in captcha textbox and hence perform a validation. Is this possible using RadCaptcha?

Please help,
Berk.
Princy
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
87 views
Hi
I successfully running RadMenu in asp.net web app.
But when I move to Chinese Mode the display is incorrect
Please find attach image.
I insert the RadMenu in Site.Master as following

<div id="divNavMenu" runat="server" class="clear hideSkiplink" > 
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadMenu ID="NavigationMenu" runat="server"   >
                </telerik:RadMenu> 
            </div>
        </div>
        <div class="main">

Any idea Why ?
Thanks
Fred



  
Kate
Telerik team
 answered on 08 Mar 2013
2 answers
448 views
Hi folks,

I want to dynamically create a RadWindow and add it to the web form. can anyone help with a sample code?

Thanks.
Henry
rdmptn
Top achievements
Rank 1
 answered on 08 Mar 2013
1 answer
100 views
Hello ,

I would like to know whether it is possible to add different mask to a Radmasked textbox based on culture? I want to add phone number which will be having different number of digits for different country. Please help, its very urgent.

Thank you,
Damian.
Princy
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
114 views
Hello sir/madam,

I m using checkbox inside the rad grid and when i checked check boxes and click on button(named Add Selected Items) outside the grid than i want to get check boxes checked either true or false but i always got false value wheather i checked and not so please tell me how to get the check boxes true property when i checked and false when its not checked you can see my screen shot that i have attached and currently i m using below code:


1.) ( for (int i = 0; i < Grid_PurchaseOrder_Lines_0.MasterTableView.Items.Count; i++)
       {
     bool isChecked = ((CheckBox)Grid_PurchaseOrder_Lines_0.MasterTableView.Items[i].FindControl("chkcmpny")).Checked;}


2.)     (   foreach (GridDataItem item in Grid_PurchaseOrder_Lines_0.MasterTableView.Items)
     {
            CheckBox chkBoolean = (CheckBox)item["TemplateColumn1"].FindControl("chkcmpny");
            // access your checkbox here

            if (chkBoolean.Checked==true)
            {

            }
        }


I have used both methods but getting same problem. so please tell me asap.

thanks in advance........
Shinu
Top achievements
Rank 2
 answered on 08 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?