Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
328 views
Hi
i have bought licensed version of telerik tools and now i wanted to read barcode from a barcode image.

can any body plz provide me the ideas/code to achieve the above.

Thanks
San



Silvesterf
Top achievements
Rank 1
 answered on 04 Jun 2014
1 answer
204 views
Although I've got a support incident open on this, I thought I'd ask community members to also try a repro for me.

If anyone who uses the following technologies could try a repro, I’d be much obliged:

ASP.NET 3.5 web sites
VS 2013 Update 2
Telerik ASP.NET Ajax controls
 

My sample file is here: https://drive.google.com/file/d/0B6iyO5ZcnJjMWkI2SGhSTnhpNlk/edit?usp=sharing

The repro instructions are:
 
1. Extract the contents of the archive to a temporary folder,  C:\temp\TelerikWebSite1
2. In Visual Studio 2013 Update 2, File > Open > Website > C:\temp\TelerikWebSite1
3. Add the assemblies to the BIN folder from C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q1 2014\Bin35
4. Attach the database found in the App_Data folder to SQL Server and fix the connection string in web.config.
5. In default.aspx.cs, in radgrid1_itemcreated, set a breakpoint.
6. Start debugging.

Before the breakpoint is hit the error appears:

JIT Compiler encountered an internal limitation.
InvalidProgramException: JIT Compiler encountered an internal limitation.]
  
Telerik.Web.SkinRegistrar.GetRuntimeSkin(ISkinnableControl control) +0 
Telerik.Web.UI.RadCompositeDataBoundControl.get_RuntimeSkin() +101
 
Telerik.Web.UI.GridTableView.OnInit(EventArgs e) +1215



Thanks for any help,


Ken


 
kencox
Top achievements
Rank 1
 answered on 03 Jun 2014
2 answers
112 views


Hi,

I have DB table that stores dates in UTC.  I’m using entity framework to connect data to
a RAD grid.

We modified EF to return all dates in local time (using T4
template).  Grid displays all dates
correctly.

We have filtering issue,
using raddatepicker.  It passes dates in
local time.  By the time it gets to
entity.Selecting, DataSource.Where is already set to value based on filter.  What would be the best way to make sure
filter passes UTC dates in to DataSource?

Regards,

Ralph Wiazowski

Ralph
Top achievements
Rank 1
 answered on 03 Jun 2014
2 answers
282 views
Hi. Good day

May I know is it possible to set both onMouseOver and OnClick to a RadToolTipManager's ShowEvent? I have a scenario where user can mouseover on the a customTemplate column to show tooltip of the item's description and when user click on it, it shows the tooltip with a textbox to update the value of the item in the radgrid.

Please advise on how to achieve this. Thanks in advanced.

Regards
Yung
chen
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
169 views
Here are the problem details. If anyone has any ideas, I would appreciate it:
  1. Using ASP.NET AJAX Q2 2013 SP1
  2. Simple file upload page using RadUpload,RadProgressManagerand RadProgressArea  (see aspx page and web.config below)
  3. Progress bar moves and updates properly running on developer machine using IIS 7.5.
  4. But, when running on Windows 2008 R2 server using IIS 7.5, the following happens:
    • Progress bar does not move
    • The Uploaded percentage and byte count remain at zero during the upload.
    • The progress area filename is blank during the upload.
    • The file DOES successfully upload.
    • When upload is complete, upload percentage is 100% and byte count matches total file size.
  5. Used fiddler to compare dev machine vs server mid-progress traffic and noticed JSON progress status details are zero/blank when run on server. And they are correct when run on dev machine (see comparison below)
// Running on Server
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: '',
PrimaryTotal: '168.26MB',
PrimaryValue: '0B',
PrimaryPercent: '0',
SecondaryValue: '0',
Speed: '0B/s',
TimeElapsed: '20311',
TimeEstimated: '2147483647',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433547, Bytes: 0, FilesCount: 0, CurrentFileName: '', RequestLength: 176433547 }};

 

// Running on developer machine
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: 'C:\\test\\test.zip',
PrimaryTotal: '168.26MB',
PrimaryValue: '102.49MB',
PrimaryPercent: '61',
SecondaryValue: '0',
Speed: '191.21MB/s',
TimeElapsed: '536',
TimeEstimated: '344',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433596, Bytes: 107464352, FilesCount: 0, CurrentFileName: 'C:\\test\\test.zip',RequestLength: 176433596 }};

ASPX Page

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
    <telerik:RadUpload ID="RadUpload1" runat="server"
        TargetFolder="~/Test"
        MaxFileSize="400000000"
        ReadOnlyFileInputs="true"
        EnableFileInputSkinning="false"
        MaxFileInputsCount="1"
        ControlObjectsVisibility="None"
        OverwriteExistingFiles="True" 
        >
    </telerik:RadUpload>
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server"
        ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, RequestSize, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed" >
    </telerik:RadProgressArea>
   <asp:Button ID="UploadButton" runat="server" Text="Upload" />   
</div>
</form>

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
      <compilation strict="false" explicit="true" targetFramework="4.5">
        <assemblies>
          <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </assemblies>
      </compilation>
      <httpRuntime targetFramework="4.5" maxRequestLength="500000" />
      <!--500 MB-->
      <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      </httpHandlers>
    </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />   
    </handlers>
    <modules>
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
      <security>
          <requestFiltering>
              <requestLimits maxAllowedContentLength="509715200"/>
              <!-- Max request/upload size=500MB for IIS-->
          </requestFiltering>
      </security>
  </system.webServer>
</configuration>

Thanks

Hristo Valyavicharski
Telerik team
 answered on 03 Jun 2014
2 answers
145 views
I'm using the FileExplorer in a RadWindow popup and the issue I'm experiencing is that the async upload window resizes beyond the popup window area when many files are uploaded.

Is there a way the the upload popup can maintain it size and just use a scrollbar?
Loy
Top achievements
Rank 1
Iron
 answered on 03 Jun 2014
8 answers
528 views
Is it possible to close the modal by clicking the overlay?

Something like you see with other modal scripts:

overlayClose: true | false Close modal box by clicking on overlay. Default is true.

Marc
Marin Bratanov
Telerik team
 answered on 03 Jun 2014
3 answers
516 views
For an image, I would like to use the Alt Text as the tooltip, not the title.  Is there any way to do this?
Marin Bratanov
Telerik team
 answered on 03 Jun 2014
1 answer
37 views
v4.0.30319

When using the ImageManager to insert images into the RadEditor, users would like to be able to right-click the image and edit it's properties. While this option is currently in place and configured, there is an issue when attempting to accomplish this on the first insert, on the first right-click. 

>Start/Refresh page with RadEditor (important!)
>Insert image via ImageManager
>Right-click image...Properties
>Properties are all empty, can edit but cannot click 'OK', only 'Cancel' (Img1)
>Click 'Cancel'
>Right-click image...Properties
>Properties are now correct and available for edit (Img2)

How can we fix this so that the properties are correct and available for edit on the first attempt? This provides a serious usability issue for us. Any help would be greatly appreciated. 

Vessy
Telerik team
 answered on 03 Jun 2014
1 answer
295 views
In one mvc partial view I've got some ajax.ActionLinks which when clicked update the div 'importpartupdate' (they just updates the div whith new ajax.actionLinks with other routevalues). The problem is that when this update is competed I have to update another div - depending on which link is clicked . That's why in my OnComplete function of my ajax.ActionLink I make an ajax request to the action 'GridViewLanguage' which returns me the partial view which should uodate this other div with  claass .floatLanguage.

The partial view which action Gridviewlanguage retuns me is just am user control with radgridcombobox. It as you see has an Itemtemplate with an anchor element 
with href property <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">  and I see that the menuID item has each time proper value. 



<telerik:RadGrid ID="RadGridLang" runat="server" AutoGenerateColumns="False"  EnableEmbeddedSkins="False"  RegisterWithScriptManager=false <br>                 DataTextField="Descr" DataValueField="LanImg"<br>                Height="100%" Width="120px" AppendDataBoundItems="true" CellSpacing="0" GridLines="None" OnLoad="RadGridLang_Load"><br>                <MasterTableView><br>                    <Columns><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt="ASP.NET hosting" /><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <telerik:RadComboBox ID="RadComboBoxLang" runat="server" EmptyMessage="Select a language" DataTextField="Descr" DataValueField="LanCd" EnableEventValidation="true"  RegisterWithScriptManager=false <br>                                    EnableLoadOnDemand="true" DataSourceID="ObjectDataSourceDrob" CausesValidation="false" AllowCustomText="true" AppendDataBoundItems="true" OnLoad="RadComboBoxLang_Load" ><br>                                     <ItemTemplate><br>                                        <div class="imageWrap"><br>                                           <telerik:RadComboBoxItem Text="Select" /><br>                                        <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">                                            <br>                                            <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt='<%# Eval("Descr")%>'/>&nbsp&nbsp&nbsp&nbsp&nbsp<%#DataBinder.Eval(Container.DataItem, "Descr")%></a><br>                                        </div><br>                                       <br>                                    </ItemTemplate><br>                                </telerik:RadComboBox><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                    </Columns><br>                </MasterTableView><br>            </telerik:RadGrid>

                                                                                   
   



So the first time when I click a link eeverything works correctly and my two divs are correctly updated. But the second time I click a new link it seems the the floatlanguuage div is not updated - and the href property in the anchor element stays the same as the previous request. Can you suggest why teh value in the href property in the link in the radcombobox stays the same 

like somehow the browser is caching the previous info I don't know. \i tried with cache:false- nothing worked.

Here is my view partial view which makes request to the action after a ajax.actionlink is clicked 

<div class="importpartupdate"><br>        <ul><br>            @{<br>                if (Model != null)<br>                {<br>                    foreach (MvcBeaDAL.WebServiceBeaMenu item in Model.MenuLeft)<br>                    {<br><br>                      <li><br>                        @Ajax.ActionLink(@item.SpecialWord, "ImportShow", new { id = Model.LanguageName, menuID = item.ID, articlegroupID = item.ArticlegroupID, counter = 1 }, new AjaxOptions { UpdateTargetId = "importPartUpdate", HttpMethod = "GET", InsertionMode = InsertionMode.Replace, OnComplete = "success("+@item.ID+")" }, new { id=item.ID})<br><br>                      </li> <br>                    }<br>                } <br>            }<br>        </ul><br>    </div> <br><br><br></nav><br>   <script><br>       function success(ids) {<br><br>           var nocache = new Date().getTime(); <br><br>           jQuery.ajax({<br>                url: '@Url.Action("GridLanguageView")/?menuID='+ids<br><br><br>           }).done(function (data)<br>           {<br><br><br>             $(".floatLanguage").replaceWith(data);<br>             alert(data);<br>           });<br><br><br><br>       }<br>     </script>
Hristo Valyavicharski
Telerik team
 answered on 03 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?