Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
I have the following problem:
I am developing in Visual Studio 2010 (ASP.Net and Visual Basic) and I use Firebird 2.5, the Firebird Client 3.1 dll. Using RadGrid and SQLDataSource controls, I have no trouble using Firebird, I can do inserts, updates and deletes, but I need to refer to the Firebird library, and when running the application generates RadScripManager error. The error is as follows:
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'.
But remove the reference and project works again
Oscar
Top achievements
Rank 1
 answered on 27 Dec 2013
4 answers
101 views
Hi!

I am trying to reload a radcombobox after a radwindow has closed using the onclientclose event.

I have pieced together this code from google searches. It seems to want to work but doesn't quite hit the mark.

My javascript:

           <script type="text/javascript">
 function UseRadWindow() {
                var oWnd = $find("<%= RadWindow1.ClientID %>");
                oWnd.show();
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
                oWnd.OnclientClose = "OCC";
                 
            }
            function OCC() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}

My relevant aspx:

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">
      <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="rcbCustomer" />
            </UpdatedControls>
            </telerik:AjaxSetting>
      </AjaxSettings>
</telerik:RadAjaxManager>
  
 
         <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index: 7001">
                <Windows>
                    <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="addcust.aspx" Height="600px" Width="800px" Animation="Slide" OnClientClose="OCC">
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
 
 
 <telerik:RadComboBox ID="rcbCustomer" Runat="server" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="ID" Skin="Default" EmptyMessage="Select Customer..." Filter="Contains" BorderColor="LightSteelBlue" BorderStyle="Dashed" BorderWidth="2px" Width="150px">
        <FooterTemplate>
           <telerik:RadButton ID="RadButton3" runat="server" OnClientClicked="UseRadWindow" Text="Add New..." AutoPostBack="False">
               </telerik:RadButton>
        </FooterTemplate>
 </telerik:RadComboBox>


And finally my only bit of cs:

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
    //Bind the RadComboBod
    rcbCustomer.DataBind();
}

EDIT: I just enabled ENABLE LOADONDEMAND for the combobox but it did nothing.

When I put a breakpoint on my ajaxrequest in the code behind, it DOES fire and does the DataBind() without issue, so I know that all the javascript is working. However the control does not rebind unless I refresh the page, which I do not want to do.
Garrett
Top achievements
Rank 1
 answered on 27 Dec 2013
5 answers
145 views
Hi,

The code on that address

http://www.telerik.com/support/kb/aspnet-ajax/editor/different-set-of-tools-when-switching-to-full-screen-mode.aspx

doesn't work for ie11 anymore. I used that code almost in every page on my project and when we test it on ie11 we cannot use neither any functionality of editor, also we cannot type anything on design mode when we open the page. Evetything works well with chrome and firefox but not with ie anymore :(

what should we change in that code, in order to make it work in ie also?

Thanks...

EDIT: I just tried changing user agent string in ie11's emulation settings to chrome and firefox. All the errors are gone. When I close developer tools (f12) or change user agent string to ie11 again, editor is no longer accepting scripts, buttons not working and can't type anything in design mode.

The problem is urgent! I hope someone can take a look at that one and provide a solution...
İlter
Top achievements
Rank 1
 answered on 27 Dec 2013
2 answers
103 views
Hi,

I am using the client side approach for load on demand. When my page first loads its shows the Root node A and when i click on node A it displays all the child nodes b,c,d and E which in turn have child nodes.

What i want to do is when the page is loaded for the first time, the parent node A should be displayed in expanded mode., basically i want to the achieve the Client click event  programatically. How can i achieve this.


Thank you
-Sekhar
Sekhar
Top achievements
Rank 1
 answered on 27 Dec 2013
1 answer
192 views
I'm using Telerik ASP.NET OrgChart to display a simple chart organization, I've a rather small problem: my chart doesn't show any thing for expanding/collapsing the chart, so my chart (which can be large) is displayed with all nodes and it is not I want, I want to be able to hide/show my nodes so that user can navigate chart easily, I've exactly used the code in this sample:
http://www.telerik.com/help/aspnet-ajax/orgchart-expand-collapse.html
but my chart doesn't show hide/show icons, what is going wrong? Do you I miss anything? it is my code:

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadOrgChart ID="RadOrgChart1" runat="server" EnableCollapsing="true">
    <Nodes>
        <telerik:OrgChartNode>
            <GroupItems>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
            </GroupItems>
            <Nodes>
                <telerik:OrgChartNode>
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                </telerik:OrgChartNode>
                <telerik:OrgChartNode Collapsed="true">
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                    <Nodes>
                        <telerik:OrgChartNode>
                            <GroupItems>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                            </GroupItems>
                        </telerik:OrgChartNode>
                    </Nodes>
                </telerik:OrgChartNode>
            </Nodes>
        </telerik:OrgChartNode>
    </Nodes>
</telerik:RadOrgChart>


I use Q3 2011, also when I want to run my code, I should remove Collapsed="true", I think it is not supported, and I think it is my problem, how can I solve this problem? how can I have an org chart with collapsable/expandable nodes? I use Q3 2011, is it possible at all? I've included only Telerik.Web.UI dll, do I need anything else? any css? Js?

thanks and merry Christmas!!!
Peter Filipov
Telerik team
 answered on 27 Dec 2013
4 answers
245 views
Hi

We noted an issue with our "dashboard" website (a portal for our clients to query data and view charts etc.). The issue was that the RadControl styling seemed not to work and the controls were not responding to user input in the newly released IE11 only. 

The Telerik ASP.NET AJAX controls were upgraded from the Q3-2012 version to the Q3-2013 version the problem seems to have been fixed in dev but when published to the test server (identical to the live environment) the issue still exists with IE11 returning a JS error:

in Telerik.Web.UI.WebResource.axd:
line 6418 - window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this;
Unable to get property 'PageRequestManager' of undefined or null reference 

NB: I did not originally discover these faults and have been drafted in to perform the Telerik component upgrade only but now I must see the issue through to the end.

I believe that this is either an issue with the Telerik Component or .NET Framework or IE11.

Your help is appreciated


Ivan Zhekov
Telerik team
 answered on 27 Dec 2013
11 answers
588 views
We have a client who complaining that if you copy word document and paste to the design view and select Yes I would like to clean this from WORD. the html output different in different in different browsers


Here is my Test document


Here is the output in Google Chrome

<p><span style="text-decoration: underline; color: #0070c0;">Other City Services</span> – Link to event app pdf</p>
<p>Other services the City offers for events include, trash cans, street sweeping, electrical hook up, street closures, security and much more! These items may be requested through the Special Events Application.</p>
<p><span style="text-decoration: underline; color: #0070c0;">Mobile Food Vendor Program</span> (photo) – link to mobile vendor app pdf<strong><span style="text-decoration: underline;"></span></strong></p>
<p>Do you have a Food Truck? A Food Trailer? A Hot Dog Cart? This program is for you! The City offers locations downtown and throughout our City parks where you can park your truck, cart or trailer and sell your wonderful cuisine! Complete the above application and provide all requested documentation and we can get you permitted today!</p>


Here is the output in IE 9

<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="color: #0070c0; text-decoration: underline;">Other City Services</span> – Link to event app pdf</span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;">Other services the City offers for events include, trash cans, street sweeping, electrical hook up, street closures, security and much more! These items may be requested through the Special Events Application.</span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="color: #0070c0; text-decoration: underline;">Mobile Food Vendor Program</span> (photo) – link to mobile vendor app pdf<b><span style="text-decoration: underline;"></span></b></span></p>
<p style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;">Do you have a Food Truck? A Food Trailer? A Hot Dog Cart? This program is for you! The City offers locations downtown and throughout our City parks where you can park your truck, cart or trailer and sell your wonderful cuisine! Complete the above application and provide all requested documentation and we can get you permitted today!</span></p>




Ianko
Telerik team
 answered on 27 Dec 2013
7 answers
436 views
 ##LOC[OK]##  ##LOC[Cancel]##  is displayed in the top of the page where a radwindowmanager is used.

part of View source of the page is as below


</div>
		</div><div id="Singleton_prompttemplate" style="display:none;">
		 <div class="rwDialogPopup radprompt">			
			    <div class="rwDialogText">
			    {1}				
			    </div>		
			    <div>
				    <script type="text/javascript">
				    function RadWindowprompt_detectenter(id, ev, input)
				    {							
					    if (!ev) ev = window.event;                
					    if (ev.keyCode == 13)
					    {															        
					        var but = input.parentNode.parentNode.getElementsByTagName("A")[0];					        
					        if (but)
						    {							
							    if (but.click) but.click();
							    else if (but.onclick)
							    {
							        but.focus(); var click = but.onclick; but.onclick = null; if (click) click.call(but);							 
							    }
						    }
					       return false;
					    } 
					    else return true;
				    }	 
				    </script>
				    <input  onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text"  class="rwDialogInput" value="{2}" />
			    </div>
			    <div>
				    <a onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"				
					    class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
				    <a onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
			    </div>
		    </div>				       
		</div><div id="Singleton_confirmtemplate" style="display:none;">
		<div class="rwDialogPopup radconfirm">			
			<div class="rwDialogText">
			{1}				
			</div>						
			<div>
				<a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>
				<a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
			</div>
		</div>		
		</div><input id="Singleton_ClientState" name="Singleton_ClientState" type="hidden" />
</div>
Ianko
Telerik team
 answered on 27 Dec 2013
1 answer
111 views
Hi,

what styles are applied to radgrid header and body?i have asp:gridview which i want to look like telerik radgrid.
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2013
3 answers
475 views
i have created a RadNumericTextBox inside a Talerik Rad Grid Edit form template as below:

<pre lang="xml">&lt;telerik:RadNumericTextBox ID=&quot;rdtbTPCCommissionAmount&quot; DataType=&quot;System.Decimal&quot;
                                                EnabledStyle-HorizontalAlign=&quot;Right&quot; Type=&quot;Number&quot; NumberFormat-DecimalDigits=&quot;2&quot;
                                                ReadOnly=&quot;true&quot; AutoPostBack=&quot;false&quot; CssClass=&quot;amountDueWidth disableInputStyle&quot;
                                                runat=&quot;server&quot; NumberFormat-AllowRounding=&quot;true&quot; Style=&quot;width: 100% !important;&quot;
                                                Width=&quot;100%&quot;&gt;
                                                &lt;IncrementSettings InterceptMouseWheel=&quot;false&quot; InterceptArrowKeys=&quot;false&quot; /&gt;
                                            &lt;/telerik:RadNumericTextBox&gt;</pre
On a another RadNumericTextBox blur event i calling a Javascript funtion as below:
<pre lang="xml">function validateThirdPartyCommissionRate(){
               validateThirdPartyRate(&quot;&lt;%= rgThirdPartyCommissions.ClientID %&gt;&quot;);
           }</pre>
From this above funtion i am calling a method written in JS file like below and setting some value to that RadNumericTextBox:

<pre lang="cs">function validateThirdPartyRate(radGridId) {
    var grid = $find(radGridId).get_element();
    var commissionAmt = $telerik.findElement(grid, &quot;rdtbTPCCommissionAmount&quot;);</pre>
<pre lang="cs">var calculatedAmount = parseFloat(rate) * parseFloat(premiumFeeAmt) / 100;
           commissionAmt._setNewValue(calculatedAmount);
           $(&quot;#ctl00_cphMainContentPage_rgThirdPartyCommissions_ctl00_ctl07_rdtbTPCCommissionAmount&quot;).val = calculatedAmount;
           commissionAmt._value = calculatedAmount.toFixed(2);
           commissionAmt._text = calculatedAmount.toFixed(2);
           commissionAmt.value = calculatedAmount
}</pre>

I have used all diffrent property/methods to set the value some of them are setting the value on UI but when i tried to DirectCast this control on serverside it gives me it's old value not the updated which i set from Javascript just like above.

<pre lang="sql">commissionAmt = DirectCast(editedItem.FindControl(&quot;rdtbTPCCommissionAmount&quot;), RadNumericTextBox).Text
</pre>

So suggestion will be welcome to to fix this issue?
Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
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?