Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hello ,

is it possible to drag and drop from a tree view in a page to another tree view  within a user control ?
same user control will be added multiple times , dynamically .
the main idea ( the page tree view nodes will be divided among the multiple user controls )

Thank you for your help,
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2011
19 answers
762 views
with q1 2008 release, any easy-ish way to make a panel with rounded corners?
Youri
Top achievements
Rank 1
 answered on 18 Oct 2011
1 answer
113 views
Hi,

I am using rad combobox and i want to do that when any <HTML> tag insert in combobox after that user go to click GO button than it should become HTML. I am able to do it on simple asp text box but not able to do it on combobox.

Code example:

On TextBox :
  <script type="text/javascript">
        //remove space from log text box
function RemoveSpecialSymbols(id) {
            var objid = document.getElementById(id);
            if (objid)
                objid.value = html2entities(objid.value);
        }

        function html2entities(sometext) {
            var re = /[<>]/g
            //    if (sometext.length > 2500)
            //        sometext = sometext.substr(0, 2500);
            return sometext.replace(re, function (m) { return replacechar(m) })
        }

        function replacechar(match) {
            if (match == "<")
                return ""
            else if (match == ">")
                return ""
        }
  </script>
<asp:TextBox ID="txtEmail" runat="server" TabIndex="1" MaxLength="50" SkinID="RequiredTextBox" onkeydown="javascript:if (event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {RemoveSpecialSymbols(this.id);}};" onblur="RemoveSpecialSymbols(this.id);" ></asp:TextBox>

Same thing i want to do it on RadCombobox....

     <telerik:RadComboBox ID="RCBSearch" runat="server" Width="250px" Height="150px" Text=""
                    ShowToggleImage="false" EmptyMessage="Search by tags, products, business name"
                    EnableLoadOnDemand="true" ShowMoreResultsBox="true" Style="float: left; margin: 0;
                    padding: 0;" EnableVirtualScrolling="true" ShowDropDownOnTextboxClick="false"
                    onkeydown="PressKeyForProfile(this, event)">
                    <WebServiceSettings Method="GetCompanyNames" Path="wsSellWithMe.asmx" />
                </telerik:RadComboBox>


But it is sowing some kind of javascript error...

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

Thanks
Manish
Ivana
Telerik team
 answered on 18 Oct 2011
4 answers
95 views
Hi,

I have a rad menu that loaded from xml file and one of child menu will call a webservice that will return the child menus.

But it seems that the Breadcrumb RadSiteMap don't work for all the menu return from the webservice, is this an expected behavior ? d

Product | User |  Admin
                                  |_ Substance
                                               |_ List All
                                               |_ Substance A
                                               |_ Substance B

Product, User, Admin and Substance are all in a xml file.
When i click substance, it will call a web service that will return List All, Substance A and Substance B.

However the Breadcrumb seems didn't work when i click List All (all the menus returned from webservice).

Is there any work around if this is the expected behavior ?

Thanks in advance
Genady Sergeev
Telerik team
 answered on 18 Oct 2011
1 answer
269 views
I want to save records if use navigates to other pages I am using general ajax request onbeforeunload.
but it gives me following error

  1. Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0
Sys.WebForms.PageRequestManager._endPostBack
Sys.WebForms.PageRequestManager._onFormSubmitCompleted
(anonymous function)
(anonymous function)
Sys.Net.WebRequest.completed
_onReadyStateChange
Telerik.Web.UI.WeResource.axd:15

I am using following script

<script language="JavaScript1.2" type="text/javascript">
window.onbeforeunload = function() { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(''); }
</script>

ASPX Code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        onajaxrequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="divInterviewEvents">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="divInterviewEvents" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

Code Behind:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            this.SaveRecord();
        }
Maria Ilieva
Telerik team
 answered on 18 Oct 2011
2 answers
107 views
Hi
Im using radpanelbar in my application.
I'm applying  the backcolor for  radpanelitem by ovveriding the skin Black.
Below is my code.
.RadPanelBar_Black a.rpLink         
         {
            background:#2e5ba0 !important;
            filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#2e5ba0,endColorStr=#003366);   
            background: -moz-linear-gradient(0% 100% 90deg,#2e5ba0, #A1BAFF, #003366 100%);
  
         }
Its working for IE.
but in fire fox I'm getting the default color of Black skin.
please help in as early as possible
Ram
Top achievements
Rank 1
 answered on 18 Oct 2011
2 answers
194 views
Hello,

I had a RadComboBox on my screen and able to load the values in it. But when i select any item from DropDown, it is aligned to right.

EX : XYZUXYZUXYZUXYZUXYZ

When i select the item , it is displaying as UXYZ. Not able to see from the first letter since it is aligned to Right.
 
I have tried using Javascript and serverside. But no Luck :(

Please suggest.

Thanks InAdvance.
Chandrasekhar
Top achievements
Rank 1
 answered on 18 Oct 2011
1 answer
115 views
Hi telerik,

I am using RadGrid and I need to do totaling (sum) based on group.

I am using autogenerated column.

Please guid me.

my code:

 

<radG:RadGrid ID="empResults" runat="server" GridLines="Both" OnColumnCreated="RadGrid1_ColumnCreated"

 

 

Skin="Outlook" AutoGenerateColumns="true" ClientSettings-AllowDragToGroup="true" ShowGroupPanel="true"

 

 

OnGroupsChanging="RadGrid1_GroupsChanging" OnItemDataBound="RadGrid1_ItemDataBound" ShowFooter="true">

 

 

<MasterTableView AllowAutomaticUpdates="True" AllowSorting="FALSE" AllowFilteringByColumn="false"

 

 

PagerStyle-AlwaysVisible="true" ShowGroupFooter="true" ShowFooter="true" TableLayout="auto" Width="99%" >

 

 

<FilterItemStyle HorizontalAlign="left" />

 

 

<HeaderStyle ForeColor="Navy" />

 

 

<ItemStyle BackColor="White" />

 

 

<AlternatingItemStyle BackColor="#E5E5E5"/>

 

 

<Columns >

 

<%

-- <radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Time_card_no"

 

UniqueName="Time_card_no" SortExpression="Time_card_no" HeaderText="Time_Card_No">

</radG:GridBoundColumn>

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Emp_name"

UniqueName="Emp_name" SortExpression="Emp_name" HeaderText="Full_Name">

</radG:GridBoundColumn>

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Sub_project_name"

UniqueName="Sub_project_name" SortExpression="Sub_project_name" HeaderText="Sub_Project_Name">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Tsdate"

UniqueName="Tsdate" SortExpression="Tsdate" HeaderText="Date">

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Inshorttime"

UniqueName="Inshorttime" SortExpression="Inshorttime" HeaderText="In_Time">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Outshorttime"

UniqueName="Outshorttime" SortExpression="Outshorttime" HeaderText="Out_Time">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="NH"

UniqueName="NH" SortExpression="NH" HeaderText="NH">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="OT1"

UniqueName="OT1" SortExpression="OT1" HeaderText="OT1">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="OT2"

UniqueName="OT2" SortExpression="OT2" HeaderText="OT2">

</radG:GridBoundColumn>

 

<radG:GridBoundColumn Display="true" ReadOnly="True" DataField="Remarks"

UniqueName="Remarks" SortExpression="Remarks" HeaderText="Remarks">

</radG:GridBoundColumn> --

 

%>

 

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

<ClientSettings Resizing-ClipCellContentOnResize="true" >

 

 

</ClientSettings>

 

 

<ExportSettings>

 

 

<Pdf PageHeight="210mm" />

 

 

</ExportSettings>

 

 

<GroupingSettings ShowUnGroupButton="false" RetainGroupFootersVisibility="true" />

 

 

</radG:RadGrid>

 

Princy
Top achievements
Rank 2
 answered on 18 Oct 2011
3 answers
87 views
Hello,

I am trying to remove the "Css Class" and the "Style Builder" from the "Table Properties" screen. Also I'd like to remove everything from the "CSS Class Layout" screen except for the Preview.

Our version of the Telerik.Web.UI is 2011.1.1413.35.

The attached image basically displays what I want not to display.

Thanks,
Cameron
Rumen
Telerik team
 answered on 18 Oct 2011
2 answers
130 views
Hi,

I  have a rad tree as  a user control ,which i am using in various pages.
I need to read the selected node of the tree using  javascript.
Can i use  OnClientNodeClick click in the page where i am calling the user control ("Rad Tree")

Any help highly appreciated

Arash
Top achievements
Rank 1
 answered on 18 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?