Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
381 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
92 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
418 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
1 answer
40 views
I am using javascript to trigger the radmenu item. But when I enter value in textbox and press "Enter", the page is postback without trigger the radmenu item. my code as below:

Javascript:
function CkKeyPress(e) {
      var evt = (e) ? e : window.event;
      var key = (evt.keyCode) ? evt.keyCode : evt.which;
      if (key == 13) {
           var dealer = document.getElementById('<%=textbox1.ClientID%>').value;
                        var menu = $find("<%= radMenu1.ClientID%>");
                        var templateButton = menu.findItemByText("Next");
                        templateButton.click();
            }
}

Asp.net
<telerik:RadMenu ID="radMenu1" runat="server" Style="top: 0px; left: 0px">
     <Items>
            <telerik:RadMenuItem runat="server" Text="Next" Value="Next">
             </telerik:RadMenuItem>
      </Items>
</telerik:RadMenu>

<telerik:RadNumericTextBox ID="txtAmount" runat="server" Culture="en-US" DbValueFactor="1" LabelWidth="64px" Width="160px" AutoCompleteType="Disabled" onkeypress="CkKeyPress(event)">
</telerik:RadNumericTextBox>

Vb.net
Private Sub radMenu1_ItemClick(sender As Object, e As RadMenuEventArgs) Handles radMenu1.ItemClick
       Response.Redirect("sample.aspx")
End Sub

I am using vs 2012 and telerik 2013
Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
1 answer
51 views
RadEditor toolbar mode "ShowOnFocus" is not working in IE 11 (Version 11.0.9600.16476)  and toolbar is not displayed at all, unless toolbar mode is "default".

This problem also exists in your own demo site at the following link:

http://demos.telerik.com/aspnet-ajax/editor/examples/toolbarmode/defaultcs.aspx

Please visit this link using IE 11 and you will notice that toolbar is not accessible at all.

This is a blocking issue for us. Any quick response is appreciated.

Thanks.
Ianko
Telerik team
 answered on 27 Dec 2013
5 answers
123 views
Hi,

Is it possible to insert a selected folder name into the RadEditor using DocumentManager. I can insert the documents fine but I also want to insert the selected folder in to the editor as well. I have customised the DocumentManager.ascx control to enable the folder selection but I could not find the way to enable the Insert button in that case. Insert button gets disabled when folder is selected. I have attached the screenshot of the document manager to demonstrate the idea. The reason I want the folder selection is that I am showing a database driven site map in the document manager using content providers, where each folder is actually acting as a site page and documents are files attached to that page.
Ianko
Telerik team
 answered on 27 Dec 2013
6 answers
156 views
Hi,
 how can i get the row index of selected row.
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2013
6 answers
153 views
Hi support team,

Our customer recently found an issue that the Telerik splitter's radPane don't work well with Openlayers which is a famous map engine. Here is a link to show the issue http://www.screencast.com/t/bQUC5MQg4V2u

Like the video shows, the issue is the map didn't fill the whole div, but if when I pan the map, then it full. If I remove the map div from splitter, the map can also fill the whole div. What I am guessing is when the map is initialized, it doesn't know what's the exact size of the div of the map as the Splitter generates the div dynamic. I also tested the latest version of Openlayer, but encountered the same issue.

In order to make the issue smallest, I created a sample to recreate the issue and type some comments.(seems your forums don't support to attach .zip, please download it from http://www.screencast.com/t/gdh0MWOF )

Thanks in advanced.
Troy
Ianko
Telerik team
 answered on 27 Dec 2013
1 answer
47 views
I have a user control .asx with radgrid inside updatePanel . I am trying to display error(s) during insert Command and keep grid in edit mode. But its not working... code below...

 

 

 

 

<asp:UpdatePanel...
<telerik:RadGrid ID="rgGroups" 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnUpdate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
rgGroups.MasterTableView.IsItemInserted = False
             RadAjaxManager1.ResponseScripts.Add("radalert('<b>Group Already Exists!</b>', 200, 150);")

 

 

 

Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
3 answers
203 views

hi

i want to display live data in RadHtmlChart for every second with time axis(programmatically).can u Pls send me the example  like below image.at present we are using RadChart to display charts but it is showing error like (Error loading RadChartImage?).thats why we want to use Radhtmlchart for better performance.


i am updating htmlchart for every second  do i need to add series every time.

Thank you.......
Stanimir
Telerik team
 answered on 27 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?