Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
99 views
Hi I was wondering when I click "Add New Record" on a Radgrid, and then click Insert, it will not show anything, all it says "No records to display." What do I need?
Carina
Top achievements
Rank 1
 asked on 09 Jan 2013
1 answer
97 views
Hello,

So I have a button that sends automatic emails to a user. In that email, there is a link :
Dim link as string = "<a href=http://" & hostname........"
 this is included in the body:

Mail.Body= "CLick on the link below to open form ###" & link & vbCrLf"

and this does send the link, but opens up the form blank, although the id of the form is listed on the URL. What am I missing so it can load the form with the existing data?
Carina
Top achievements
Rank 1
 answered on 09 Jan 2013
1 answer
144 views
Is there a way for radnumerictextbox accept only positive integers? 
Kevin
Top achievements
Rank 2
 answered on 08 Jan 2013
0 answers
250 views
I have a radgrid with totals in the foot. The page that contains this radGrid is uses in another page within a RadTabStrip. This RadTabStrip has 4 RadPageViews . The second view has a iframe for show the page that contains radgrid control. RadTabStrip has the third view as default.

When I click on the second view I see a radgrid does not look good. (picture 1 and picture2) but when the TabStrip has first view as default the radgrid looks fine (picture 3).

Code:
Page1.aspx
<telerik:RadTabStrip ID="rtsDetail" runat="server" MultiPageID="rmpDetail">
            <Tabs>
                <telerik:RadTab runat="server" PageViewID="rpvCO" Text="Customer Order">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="rpvWO" Text="WorkOrder">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="rpvOP" Selected="True"
                    Text="Operations">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="rpvEDI" Text="EDI">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
  
  <telerik:RadMultiPage ID="rmpDetail" runat="server" Height="100%">
                                    <!-- Begin Details Tabs -->
            <telerik:RadPageView ID="rpvCO" runat="server" Height="100%">
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpvWO" runat="server" Height="100%">
               <iframe width='100%' src='Page2.aspx' height='100%' scrolling='yes'></iframe>
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpvOP" runat="server" Height="100%">
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpvEDI" runat="server" Height="100%">
   </telerik:RadPageView>
  </telerik:RadMultiPage>

Page2.aspx 

    <telerik:RadGrid ID="rgrdServiceStatus" runat="server" AllowAutomaticUpdates="true"
    ShowFooter="True"
     Width="400px" Height="180px" EnableViewState="true"  EnableEmbeddedSkins="true">
 <mastertableview editmode="InPlace" autogeneratecolumns="false" CommandItemDisplay="Top" EnableViewState="true">
  <CommandItemTemplate>
   <div style="height: 22px; text-align: left; padding-left: 10px; padding-top: 6px">
    <asp:Button ID="btnRefresh" CommandName="Refresh" runat="server" CssClass="Button" Text="Refresh" />
   </div>
  </CommandItemTemplate>
  <Columns>
   <telerik:GridBoundColumn DataField="Hostname" HeaderText="Host" UniqueName="Host"
    SortExpression="Host" HeaderStyle-Width="80px">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="Host" HeaderText="IP" UniqueName="IP"
    SortExpression="IP" HeaderStyle-Width="75px">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="Port" HeaderText="Port" UniqueName="Port"
    SortExpression="Port" HeaderStyle-Width="35px">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="CurrentThreads" HeaderText="In Proc." UniqueName="Processing"
    SortExpression="Processing" Aggregate="Sum" FooterAggregateFormatString="{0}" HeaderStyle-Width="40px">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="AvailableThreads" HeaderText="Idle" UniqueName="AvailableThreads"
    SortExpression="AvailableThreads" Aggregate="Sum" FooterAggregateFormatString="{0}" HeaderStyle-Width="40px">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="MaxThreads" HeaderText="Total" UniqueName="MaxThreads"
    SortExpression="MaxThreads" Aggregate="Sum" FooterAggregateFormatString="{0}">
   </telerik:GridBoundColumn>
   <telerik:GridTemplateColumn>
    <ItemTemplate>
     <asp:CheckBox id="chkUno" runat="server" ToolTip="Comentario Aqui" />
    </ItemTemplate>
   </telerik:GridTemplateColumn>
  </Columns>
 </mastertableview>
 <ClientSettings>
  <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" >
 </Scrolling>
 </ClientSettings>
</telerik:RadGrid>

 protected void Page_Load(object sender, EventArgs e)
{
 if (!IsPostBack)
 {
  List<Item2> datos2 = new List<Item2>();
  datos2.Add(new Item2 { Host = "Host1", HostName = "Host Name1", Port = "80", AvailableThreads = 10, CurrentThreads = 3 });
  datos2.Add(new Item2 { Host = "Host1", HostName = "Host Name1", Port = "80", AvailableThreads = 10, CurrentThreads = 3 });
  datos2.Add(new Item2 { Host = "Host1", HostName = "Host Name1", Port = "80", AvailableThreads = 10, CurrentThreads = 3 });
  datos2.Add(new Item2 { Host = "Host1", HostName = "Host Name1", Port = "80", AvailableThreads = 10, CurrentThreads = 3 });
  datos2.Add(new Item2 { Host = "Host1", HostName = "Host Name1", Port = "80", AvailableThreads = 10, CurrentThreads = 3 });
  rgrdServiceStatus.DataSource = datos2;
  rgrdServiceStatus.DataBind();
 }
}

 public class Item2
{
 public string HostName { get; set; }
 public string Host { get; set; }
 public string Port { get; set; }
 public int CurrentThreads { get; set; }
 public int AvailableThreads { get; set; }
 public int MaxThreads { get; set; }
}

Can you help me? What is the problem?.

Regards

Alan
Alan
Top achievements
Rank 1
 asked on 08 Jan 2013
3 answers
152 views
I have a radGrid with paging enabled (20 rows per page).  The grid could sometimes have 1500 rows in it.  The rows represent book titles with associated data like price, author, etc.  Could anyone suggest a technique or mechanism to allow the user to specify a book title and have the grid jump to the grid page that contains that title?

I do not want to use filtering... I want the displayed grid to remain fully populated with all 1500 rows.

Thanks.
Kermit
Top achievements
Rank 1
 answered on 08 Jan 2013
2 answers
172 views
Hi,

I have 6 different sets of data which I display in 6 different radGrids.  Ultimately when a user chooses to export this data, I need to consolidate those 6 into one workbook--which consists of 3 worksheets, each with data from 2 of the grids.
I've looked through the export to multiple sheets example, and also the export from multiple grids example, but neither of these does what I'm looking for.  Is there a solution for this?  Should I be using the Reporting control instead?

Thanks
MMOIT
Top achievements
Rank 1
 answered on 08 Jan 2013
0 answers
71 views
I have 2 ascx with RadChart on my page, each one with own RadAjaxManagerProxy, and a RadAjaxManager with RequestQueueSize property equal 2 on aspx.
When I send the first two requests at same time, it works fine. But when I try a second attempt only one Chart returns, the other one keep loading.
al santsu
Top achievements
Rank 1
 asked on 08 Jan 2013
2 answers
310 views

In my Visual Studio 2010 ASP.NET project, I have a page containing RadFileExplorer (Telerik WebUI VSExtensions 2011.03.1305.0). We use AsyncUpload to copy any file type (BMP, DOC, EXE, GIF, etc.) to FileExplorer. You can browse to the webpage that has the FileExplorer and use the page as a repository for all kinds of files.

After a period of time (one day, week, month, year, or more), the files will be purged from FileExplorer. The purging or deleting of files from FileExplorer is primarily done by selecting one or more files, right-clicking on the selected files, and clicking "Delete" on the shortcut menu (an option that FileExplorer provides by default).

All uploaded files are stored in the same folder every time and the users have no problems uploading files to FileExplorer. But occassionally (not every time), when you try to delete a file from FileExplorer, the following error can occur:

    Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException:
    The process cannot access the file 'C:\Users\Public\Projects\Portal\Root\<filename>.<ext>' because it is being used by another process.

If this occurs while performing some tests within Visual Stuio, the following JavaScript is displayed:

Type._registerScript("MicrosoftAjaxWebForms.js",["MicrosoftAjaxCore.js","MicrosoftAjaxSerialization.js","MicrosoftAjaxNetwork.js","MicrosoftAjaxComponentModel.js"]);Type.registerNamespace("Sys.WebForms");Sys.WebForms.BeginRequestEventArgs=function(c,b,a){Sys.WebForms.BeginRequestEventArgs.initializeBase(this);this._request=c;this._postBackElement=b;this._updatePanelsToUpdate=a};Sys.WebForms.BeginRequestEventArgs.prototype={get_postBackElement:function(){return this._postBackElement},get_request:function(){return this._request},get_updatePanelsToUpdate:function(){return this._updatePanelsToUpdate?Array.clone(this._updatePanelsToUpdate):[]}};Sys.WebForms.BeginRequestEventArgs.registerClass("Sys.WebForms.BeginRequestEventArgs",Sys.EventArgs);Sys.WebForms.EndRequestEventArgs=function(c,a,b){Sys.WebForms.EndRequestEventArgs.initializeBase(this);this._errorHandled=false;this._error=c;this._dataItems=a||{};this._response=b};Sys.WebForms.EndRequestEventArgs.prototype={get_dataItems:function(){return this._dataItems},get_error:function(){return this._error},get_errorHandled:function(){return this._errorHandled},set_errorHandled:function(a){this._errorHandled=a},get_response:function(){return this._response}};Sys.WebForms.EndRequestEventArgs.registerClass("Sys.WebForms.EndRequestEventArgs",Sys.EventArgs);Sys.WebForms.InitializeRequestEventArgs=function(c,b,a){Sys.WebForms.InitializeRequestEventArgs.initializeBase(this);this._request=c;this._postBackElement=b;this._updatePanelsToUpdate=a};Sys.WebForms.InitializeRequestEventArgs.prototype={get_postBackElement:function(){return this._postBackElement},get_request:function(){return this._request},get_updatePanelsToUpdate:function(){return this._updatePanelsToUpdate?Array.clone(this._updatePanelsToUpdate):[]},set_updatePanelsToUpdate:function(a){this._updated=true;this._updatePanelsToUpdate=a}};Sys.WebForms.InitializeRequestEventArgs.registerClass("Sys.WebForms.InitializeRequestEventArgs",Sys.CancelEventArgs);Sys.WebForms.PageLoadedEventArgs=function(b,a,c){Sys.WebForms.PageLoadedEventArgs.initializeBase(this);this._panelsUpdated=b;this._panelsCreated=a;this._dataItems=c||{}};Sys.WebForms.PageLoadedEventArgs.prototype={get_dataItems:function(){return this._dataItems},get_panelsCreated:function(){return this._panelsCreated},get_panelsUpdated:function(){return this._panelsUpdated}};Sys.WebForms.PageLoadedEventArgs.registerClass("Sys.WebForms.PageLoadedEventArgs",Sys.EventArgs);Sys.WebForms.PageLoadingEventArgs=function(b,a,c){Sys.WebForms.PageLoadingEventArgs.initializeBase(this);this._panelsUpdating=b;this._panelsDeleting=a;this._dataItems=c||{}};Sys.WebForms.PageLoadingEventArgs.prototype={get_dataItems:function(){return this._dataItems},get_panelsDeleting:function(){return this._panelsDeleting},get_panelsUpdating:function(){return this._panelsUpdating}};Sys.WebForms.PageLoadingEventArgs.registerClass("Sys.WebForms.PageLoadingEventArgs",Sys.EventArgs);Sys._ScriptLoader=function(){this._scriptsToLoad=null;this._sessions=[];this._scriptLoadedDelegate=Function.createDelegate(this,this._scriptLoadedHandler)};Sys._ScriptLoader.prototype={dispose:function(){this._stopSession();this._loading=false;if(this._events)delete this._events;this._sessions=null;this._currentSession=null;this._scriptLoadedDelegate=null},loadScripts:function(d,b,c,a){var e={allScriptsLoadedCallback:b,scriptLoadFailedCallback:c,scriptLoadTimeoutCallback:a,scriptsToLoad:this._scriptsToLoad,scriptTimeout:d};this._scriptsToLoad=null;this._sessions[this._sessions.length]=e;if(!this._loading)this._nextSession()},queueCustomScriptTag:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,a)},queueScriptBlock:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,{text:a})},queueScriptReference:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,{src:a})},_createScriptElement:function(c){var a=document.createElement("script");a.type="text/javascript";for(var b in c)a[b]=c[b];return a},_loadScriptsInternal:function(){var b=this._currentSession;if(b.scriptsToLoad&&b.scriptsToLoad.length>0){var c=Array.dequeue(b.scriptsToLoad),a=this._createScriptElement(c);if(a.text&&Sys.Browser.agent===Sys.Browser.Safari){a.innerHTML=a.text;delete a.text}if(typeof c.src==="string"){this._currentTask=new Sys._ScriptLoaderTask(a,this._scriptLoadedDelegate);this._currentTask.execute()}else{document.getElementsByTagName("head")[0].appendChild(a);Sys._ScriptLoaderTask._clearScript(a);this._loadScriptsInternal()}}else{this._stopSession();var d=b.allScriptsLoadedCallback;if(d)d(this);this._nextSession()}},_nextSession:function(){if(this._sessions.length===0){this._loading=false;this._currentSession=null;return}this._loading=true;var a=Array.dequeue(this._sessions);this._currentSession=a;if(a.scriptTimeout>0)this._timeoutCookie=window.setTimeout(Function.createDelegate(this,this._scriptLoadTimeoutHandler),a.scriptTimeout*1000);this._loadScriptsInternal()},_raiseError:function(){var b=this._currentSession.scriptLoadFailedCallback,a=this._currentTask.get_scriptElement();this._stopSession();if(b){b(this,a);this._nextSession()}else{this._loading=false;throw Sys._ScriptLoader._errorScriptLoadFailed(a.src)}},_scriptLoadedHandler:function(a,b){if(b){Array.add(Sys._ScriptLoader._getLoadedScripts(),a.src);this._currentTask.dispose();this._currentTask=null;this._loadScriptsInternal()}else this._raiseError()},_scriptLoadTimeoutHandler:function(){var a=this._currentSession.scriptLoadTimeoutCallback;this._stopSession();if(a)a(this);this._nextSession()},_stopSession:function(){if(this._timeoutCookie){window.clearTimeout(this._timeoutCookie);this._timeoutCookie=null}if(this._currentTask){this._currentTask.dispose();this._currentTask=null}}};Sys._ScriptLoader.registerClass("Sys._ScriptLoader",null,Sys.IDisposable);Sys._ScriptLoader.getInstance=function(){var a=Sys._ScriptLoader._activeInstance;if(!a)a=Sys._ScriptLoader._activeInstance=new Sys._ScriptLoader;return a};Sys._ScriptLoader.isScriptLoaded=function(b){var a=document.createElement("script");a.src=b;return Array.contains(Sys._ScriptLoader._getLoadedScripts(),a.src)};Sys._ScriptLoader.readLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){var c=Sys._ScriptLoader._referencedScripts=[],d=document.getElementsByTagName("script");for(var b=d.length-1;b>=0;b--){var e=d[b],a=e.src;if(a.length)if(!Array.contains(c,a))Array.add(c,a)}}};Sys._ScriptLoader._errorScriptLoadFailed=function(b){var a;a=Sys.Res.scriptLoadFailed;var d="Sys.ScriptLoadFailedException: "+String.format(a,b),c=Error.create(d,{name:"Sys.ScriptLoadFailedException","scriptUrl":b});c.popStackFrame();return c};Sys._ScriptLoader._getLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){Sys._ScriptLoader._referencedScripts=[];Sys._ScriptLoader.readLoadedScripts()}return Sys._ScriptLoader._referencedScripts};Sys.WebForms.PageRequestManager=function(){this._form=null;this._activeDefaultButton=null;this._activeDefaultButtonClicked=false;this._updatePanelIDs=null;this._updatePanelClientIDs=null;this._updatePanelHasChildrenAsTriggers=null;this._asyncPostBackControlIDs=null;this._asyncPostBackControlClientIDs=null;this._postBackControlIDs=null;this._postBackControlClientIDs=null;this._scriptManagerID=null;this._pageLoadedHandler=null;this._additionalInput=null;this._onsubmit=null;this._onSubmitStatements=[];this._originalDoPostBack=null;this._originalDoPostBackWithOptions=null;this._originalFireDefaultButton=null;this._originalDoCallback=null;this._isCrossPost=false;this._postBackSettings=null;this._request=null;this._onFormSubmitHandler=null;this._onFormElementClickHandler=null;this._onWindowUnloadHandler=null;this._asyncPostBackTimeout=null;this._controlIDToFocus=null;this._scrollPosition=null;this._processingRequest=false;this._scriptDisposes={};this._transientFields=["__VIEWSTATEENCRYPTED","__VIEWSTATEFIELDCOUNT"];this._textTypes=/^(text|password|hidden|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i};Sys.WebForms.PageRequestManager.prototype={_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_isInAsyncPostBack:function(){return this._request!==null},add_beginRequest:function(a){this._get_eventHandlerList().addHandler("beginRequest",a)},remove_beginRequest:function(a){this._get_eventHandlerList().removeHandler("beginRequest",a)},add_endRequest:function(a){this._get_eventHandlerList().addHandler("endRequest",a)},remove_endRequest:function(a){this._get_eventHandlerList().removeHandler("endRequest",a)},add_initializeRequest:function(a){this._get_eventHandlerList().addHandler("initializeRequest",a)},remove_initializeRequest:function(a){this._get_eventHandlerList().removeHandler("initializeRequest",a)},add_pageLoaded:function(a){this._get_eventHandlerList().addHandler("pageLoaded",a)},remove_pageLoaded:function(a){this._get_eventHandlerList().removeHandler("pageLoaded",a)},add_pageLoading:function(a){this._get_eventHandlerList().addHandler("pageLoading",a)},remove_pageLoading:function(a){this._get_eventHandlerList().removeHandler("pageLoading",a)},abortPostBack:function(){if(!this._processingRequest&&this._request){this._request.get_executor().abort();this._request=null}},beginAsyncPostBack:function(c,a,f,d,e){if(d&&typeof Page_ClientValidate==="function"&&!Page_ClientValidate(e||null))return;this._postBackSettings=this._createPostBackSettings(true,c,a);var b=this._form;b.__EVENTTARGET.value=a||"";b.__EVENTARGUMENT.value=f||"";this._isCrossPost=false;this._additionalInput=null;this._onFormSubmit()},_cancelPendingCallbacks:function(){for(var a=0,e=window.__pendingCallbacks.length;a<e;a++){var c=window.__pendingCallbacks[a];if(c){if(!c.async)window.__synchronousCallBackIndex=-1;window.__pendingCallbacks[a]=null;var d="__CALLBACKFRAME"+a,b=document.getElementById(d);if(b)b.parentNode.removeChild(b)}}},_commitControls:function(a,b){if(a){this._updatePanelIDs=a.updatePanelIDs;this._updatePanelClientIDs=a.updatePanelClientIDs;this._updatePanelHasChildrenAsTriggers=a.updatePanelHasChildrenAsTriggers;this._asyncPostBackControlIDs=a.asyncPostBackControlIDs;this._asyncPostBackControlClientIDs=a.asyncPostBackControlClientIDs;this._postBackControlIDs=a.postBackControlIDs;this._postBackControlClientIDs=a.postBackControlClientIDs}if(typeof b!=="undefined"&&b!==null)this._asyncPostBackTimeout=b*1000},_createHiddenField:function(c,d){var b,a=document.getElementById(c);if(a)if(!a._isContained)a.parentNode.removeChild(a);else b=a.parentNode;if(!b){b=document.createElement("span");b.style.cssText="display:none !important";this._form.appendChild(b)}b.innerHTML="<input type='hidden' />";a=b.childNodes[0];a._isContained=true;a.id=a.name=c;a.value=d},_createPageRequestManagerTimeoutError:function(){var b="Sys.WebForms.PageRequestManagerTimeoutException: "+Sys.WebForms.Res.PRM_TimeoutError,a=Error.create(b,{name:"Sys.WebForms.PageRequestManagerTimeoutException"});a.popStackFrame();return a},_createPageRequestManagerServerError:function(a,d){var c="Sys.WebForms.PageRequestManagerServerErrorException: "+(d||String.format(Sys.WebForms.Res.PRM_ServerError,a)),b=Error.create(c,{name:"Sys.WebForms.PageRequestManagerServerErrorException",httpStatusCode:a});b.popStackFrame();return b},_createPageRequestManagerParserError:function(b){var c="Sys.WebForms.PageRequestManagerParserErrorException: "+String.format(Sys.WebForms.Res.PRM_ParserError,b),a=Error.create(c,{name:"Sys.WebForms.PageRequestManagerParserErrorException"});a.popStackFrame();return a},_createPanelID:function(e,b){var c=b.asyncTarget,a=this._ensureUniqueIds(e||b.panelsToUpdate),d=a instanceof Array?a.join(","):a||this._scriptManagerID;if(c)d+="|"+c;return encodeURIComponent(this._scriptManagerID)+"="+encodeURIComponent(d)+"&"},_createPostBackSettings:function(d,a,c,b){return {async:d,asyncTarget:c,panelsToUpdate:a,sourceElement:b}},_convertToClientIDs:function(a,f,e,d){if(a)for(var b=0,h=a.length;b<h;b+=d?2:1){var c=a[b],g=(d?a[b+1]:"")||this._uniqueIDToClientID(c);Array.add(f,c);Array.add(e,g)}},dispose:function(){if(this._form){Sys.UI.DomEvent.removeHandler(this._form,"submit",this._onFormSubmitHandler);Sys.UI.DomEvent.removeHandler(this._form,"click",this._onFormElementClickHandler);Sys.UI.DomEvent.removeHandler(window,"unload",this._onWindowUnloadHandler);Sys.UI.DomEvent.removeHandler(window,"load",this._pageLoadedHandler)}if(this._originalDoPostBack){window.__doPostBack=this._originalDoPostBack;this._originalDoPostBack=null}if(this._originalDoPostBackWithOptions){window.WebForm_DoPostBackWithOptions=this._originalDoPostBackWithOptions;this._originalDoPostBackWithOptions=null}if(this._originalFireDefaultButton){window.WebForm_FireDefaultButton=this._originalFireDefaultButton;this._originalFireDefaultButton=null}if(this._originalDoCallback){window.WebForm_DoCallback=this._originalDoCallback;this._originalDoCallback=null}this._form=null;this._updatePanelIDs=null;this._updatePanelClientIDs=null;this._asyncPostBackControlIDs=null;this._asyncPostBackControlClientIDs=null;this._postBackControlIDs=null;this._postBackControlClientIDs=null;this._asyncPostBackTimeout=null;this._scrollPosition=null;this._activeElement=null},_doCallback:function(d,b,c,f,a,e){if(!this.get_isInAsyncPostBack())this._originalDoCallback(d,b,c,f,a,e)},_doPostBack:function(a,k){var f=window.event;if(!f){var d=arguments.callee?arguments.callee.caller:null;if(d){var j=30;while(d.arguments.callee.caller&&--j)d=d.arguments.callee.caller;f=j&&d.arguments.length?d.arguments[0]:null}}this._additionalInput=null;var h=this._form;if(a===null||typeof a==="undefined"||this._isCrossPost){this._postBackSettings=this._createPostBackSettings(false);this._isCrossPost=false}else{var c=this._masterPageUniqueID,l=this._uniqueIDToClientID(a),g=document.getElementById(l);if(!g&&c)if(a.indexOf(c+"$")===0)g=document.getElementById(l.substr(c.length+1));if(!g)if(Array.contains(this._asyncPostBackControlIDs,a))this._postBackSettings=this._createPostBackSettings(true,null,a);else if(Array.contains(this._postBackControlIDs,a))this._postBackSettings=this._createPostBackSettings(false);else{var e=this._findNearestElement(a);if(e)this._postBackSettings=this._getPostBackSettings(e,a);else{if(c){c+="$";if(a.indexOf(c)===0)e=this._findNearestElement(a.substr(c.length))}if(e)this._postBackSettings=this._getPostBackSettings(e,a);else{var b;try{b=f?f.target||f.srcElement:null}catch(n){}b=b||this._activeElement;var m=/__doPostBack\(|WebForm_DoPostBackWithOptions\(/;function i(b){b=b?b.toString():"";return m.test(b)&&b.indexOf("'"+a+"'")!==-1||b.indexOf('"'+a+'"')!==-1}if(b&&(b.name===a||i(b.href)||i(b.onclick)||i(b.onchange)))this._postBackSettings=this._getPostBackSettings(b,a);else this._postBackSettings=this._createPostBackSettings(false)}}}else this._postBackSettings=this._getPostBackSettings(g,a)}if(!this._postBackSettings.async){h.onsubmit=this._onsubmit;this._originalDoPostBack(a,k);h.onsubmit=null;return}h.__EVENTTARGET.value=a;h.__EVENTARGUMENT.value=k;this._onFormSubmit()},_doPostBackWithOptions:function(a){this._isCrossPost=a&&a.actionUrl;var d=true;if(a.validation)if(typeof Page_ClientValidate=="function")d=Page_ClientValidate(a.validationGroup);if(d){if(typeof a.actionUrl!="undefined"&&a.actionUrl!=null&&a.actionUrl.length>0)theForm.action=a.actionUrl;if(a.trackFocus){var c=theForm.elements["__LASTFOCUS"];if(typeof c!="undefined"&&c!=null)if(typeof document.activeElement=="undefined")c.value=a.eventTarget;else{var b=document.activeElement;if(typeof b!="undefined"&&b!=null)if(typeof b.id!="undefined"&&b.id!=null&&b.id.length>0)c.value=b.id;else if(typeof b.name!="undefined")c.value=b.name}}}if(a.clientSubmit)this._doPostBack(a.eventTarget,a.eventArgument)},_elementContains:function(b,a){while(a){if(a===b)return true;a=a.parentNode}return false},_endPostBack:function(a,d,f){if(this._request===d.get_webRequest()){this._processingRequest=false;this._additionalInput=null;this._request=null}var e=this._get_eventHandlerList().getHandler("endRequest"),b=false;if(e){var c=new Sys.WebForms.EndRequestEventArgs(a,f?f.dataItems:{},d);e(this,c);b=c.get_errorHandled()}if(a&&!b)throw a},

When this problem occurs, it is always with the same file types; EXE and MSI files types. Most of the time, FileExplorer will let us delete EXE or MSI files, but occasionally it will not. It does not matter if the file has been listed in FileExplorer for 1 day or 1 year; once you get the above error, you cannot delete the file. You have to find someone who can access the website using Windows Explorer and have them go to the folder where the file is stored, and delete the file.

Is there something that I can change within my Visual Studio project (or IIS website) that will prevent this intermittent problem?

Thank you,
Steven

Vessy
Telerik team
 answered on 08 Jan 2013
1 answer
90 views
I am migrating my data visualization components from Infragistics to Telerik.

I'm having a bit of trouble using Telerik's pie chart. I have the chart databound to a sqldatasource that returns the following table as a result:
Budget Fund
 $  15,264,742.00 General Operating Funds
 $    5,337,148.00 Special Revenue Funds
 $        833,073.00 Debt Service Funds
 $  11,789,840.00 Capital Investment Funds
 $  10,818,935.00 Enterprise Funds
 $    4,691,914.00 Internal Service Funds
 $        201,776.00 Other Funds

The challenge is this, I want the Budget values to show up on the actual pie and on the legend, I want the Fund names to show up. What Telerik does by default is have the Budget values show up on the pie and on the legend block, it just shows the word Budget. I don't think that's very helpful at all for visualization. The end user needs to see the number and they need to be able to see what fund the actual number belongs to.

In Infragistics, this was done by default. Telerik seems to have a different mechanism in plotting this out. Any help is certainly appreciated.
Petar Kirov
Telerik team
 answered on 08 Jan 2013
2 answers
164 views

My application is using version 2012.3.1016.40 of the ASP.NET AJAX telerik controls.  My interface is using a RadTabStrip.  On Tab A I have the following RadGrid defined:

<telerik:RadGrid ID="radGridAttachments" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowCustomPaging="true"
    OnNeedDataSource="radGridAttachments_NeedDataSource" OnInsertCommand="radGridAttachments_InsertCommand" OnItemDataBound="radGridAttachments_ItemDataBound"
    Visible="false" OnDeleteCommand="radGridAttachments_DeleteCommand" OnItemCommand="radGridAttachments_ItemCommand">
    <MasterTableView CommandItemDisplay="Top" DataKeyNames="ID" NoMasterRecordsText="No Attachment records to display">
        <CommandItemTemplate>
            <telerik:RadButton ID="radButtonAdd" runat="server" Text="Add New Attachment" CommandName="InitInsert"
                Visible='<%# !radGridAttachments.MasterTableView.IsItemInserted %>'
                ButtonType="StandardButton" CssClass="button" Skin="Windows7" />
        </CommandItemTemplate>
        <Columns>
            <telerik:GridBoundColumn DataField="FileName" HeaderText="File" ReadOnly="true" />
            <telerik:GridDateTimeColumn DataField="UploadDate" DataFormatString="{0:MM/dd/yyyy hh:mm tt}" HeaderText="Upload Date" ReadOnly="true" />
            <telerik:GridBoundColumn DataField="UploadEmployee" HeaderText="Uploaded By" ReadOnly="true" />
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
            <telerik:GridTemplateColumn HeaderText="Attachment">
                <ItemTemplate>
                    <telerik:RadButton ID="radButtonView" runat="server" CommandName="ViewAttachment" Text="View" CssClass="button" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="PushButton" Text="Delete" CommandName="Delete" />
        </Columns>
        <PagerStyle AlwaysVisible="True" />
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <table>
                    <tr>
                        <td><asp:Label Text="File:" runat="server" /></td>
                        <td><telerik:RadAsyncUpload ID="radAsyncUpload" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" /></td>
                    </tr>
                    <tr>
                        <td><asp:Label Text="Description:" runat="server" /></td>
                        <td><telerik:RadTextBox ID="radTextBoxFileDescription" runat="server" Text='<%# Bind("Description") %>' /></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <telerik:RadButton ID="radButtonInsert" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                OnClientClicking="radButtonInsert_ClientClicking" CssClass="button">
                            </telerik:RadButton>
                            <telerik:RadButton ID="radButtonCancel" runat="server" Text="Cancel" CausesValidation="false"
                                CommandName="Cancel" CssClass="button">
                            </telerik:RadButton>                                                   
                        </td>
                    </tr>
                </table>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

The Tab A RadGrid is shown in the attachment named TabARadGrid.jpg.

On Tab B I have the following RadGrid defined:

<telerik:RadGrid ID="radGridClients" runat="server" AllowCustomPaging="True" AllowFilteringByColumn="true"
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="Horizontal"
    EnableLinqExpressions="False" Width="100%" Visible="false"
    OnNeedDataSource="radGridClients_NeedDataSource" OnItemDataBound="radGridClients_ItemDataBound"
    OnInit="radGridClients_Init" EnableHeaderContextMenu="true" GroupingEnabled="false">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView DataKeyNames="ID" AllowCustomSorting="true" NoMasterRecordsText="No Client records to display">
        <Columns>
            <telerik:GridHyperlinkColumn DataNavigateUrlFields="ID" DataTextField="ID" HeaderText="Client ID" SortExpression="ID" UniqueName="ClientID" />
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last" SortExpression="LastName" UniqueName="LastName" />
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First" SortExpression="FirstName" UniqueName="FirstName" />
            <telerik:GridBoundColumn DataField="MiddleName" HeaderText="Middle" SortExpression="MiddleName" UniqueName="MiddleName" />
            <telerik:GridBoundColumn DataField="SSN4" HeaderText="SSN4" SortExpression="SSN4" UniqueName="SSN4" />
        </Columns>
        <PagerStyle AlwaysVisible="True" />
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

The Tab B RadGrid is shown in the attachment named TabBRadGrid.jpg.

In my Web.Config file I have the following line in the <appSettings> section:

<add key="Telerik.Skin" value="Office2010Blue" />

I am not applying any further styling of my own to the RadGrids.

My first question is why does the Tab B RadGrid have bold lines in the header and footer and around the "No records..." message and the Tab A RadGrid doesn't?

My second question is how do I get the Tab B RadGrid to look like the Tab A RadGrid (no bold lines, etc.)?

 



Chad Johnson
Top achievements
Rank 1
 answered on 08 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?