Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi,

how to disable text box when i am using rasnUploadCompanyLogo.Enabled = false;

Button and text box  get disable but user still can write some text which is wrong.

Suggest please, How i will stop to write if it is disable.

Thanks ,
Reyaz


Please look the following url:
http://www.telerik.com/community/forums/aspnet-ajax/upload/how-to-disable-focus-from-textbox-in-radupload.aspx
Peter Filipov
Telerik team
 answered on 18 Oct 2011
7 answers
527 views
Hi,

I am having problem in disabling the focus from the textbox of this RadUpload Control. We got this as a usuability bug from our test team. Can anyone help?

Thanks,

Sharad
Peter Filipov
Telerik team
 answered on 18 Oct 2011
2 answers
178 views
Hi,

I am opening a rad window from javascript but it opens with parent page reload.

 function OpenAddNewDocument() {
            window.radopen("AddNewDocument.aspx", "rwAddNewDocument");
            return false;
        }


<input id="btnAddDoc" type="button" value="Add New Document" class="btnAddDoc" title="Add New Document" runat="server"
           onClick="return OpenAddNewDocument();" />


Please help to open this window without postback.


Thanks
Manish.
Manish
Top achievements
Rank 2
 answered on 18 Oct 2011
2 answers
239 views
I have the following RadGrid:

<telerik:RadGrid ID="uxFacilityUsage" runat="server" AllowSorting="True"
        AutoGenerateColumns="False" GridLines="None"
        onneeddatasource="uxFacilityUsage_NeedDataSource" ShowGroupPanel="True"
        onitemdatabound="uxFacilityUsage_ItemDataBound"
        onitemcommand="uxFacilityUsage_ItemCommand" AllowPaging="True"
        PageSize="20" AllowFilteringByColumn="True"
        ongroupschanging="uxFacilityUsage_GroupsChanging">
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
<GroupPanel Text="Drag a column header and drop it here to group by that column."></GroupPanel>
 
<AlternatingItemStyle CssClass="AlternatingRowStyle"></AlternatingItemStyle>
 
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<ExportSettings>
    <Pdf PageLeftMargin="0.5in" PageRightMargin="0.5in" />
</ExportSettings>
<MasterTableView CommandItemDisplay="Top" IsFilterItemExpanded="false">
 
<SortExpressions>
                <telerik:GridSortExpression FieldName="StartDate" SortOrder="Descending" />
            </SortExpressions>
<CommandItemSettings ExportToPdfText="Export to Pdf" ShowAddNewRecordButton="False"
        ShowExportToPdfButton="True"></CommandItemSettings>
<GroupByExpressions>
<telerik:GridGroupByExpression>
    <SelectFields>
        <telerik:GridGroupByField FieldName="CylinderType" Aggregate="Count"/>
    </SelectFields>
    <GroupByFields>
        <telerik:GridGroupByField FieldName="CylinderType" FormatString="{0:0}"/>
    </GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="LotNumber"
            FilterControlAltText="Filter LotNumber column" HeaderText="LotNumber"
            SortExpression="LotNumber" UniqueName="LotNumber">
            <HeaderStyle Width="150px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CylinderType"
            FilterControlAltText="Filter CylinderType column" HeaderText="Cylinder Type"
            SortExpression="CylinderType" UniqueName="CylinderType">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="GasType"
            FilterControlAltText="Filter GasType column" HeaderText="Gas Type"
            SortExpression="GasType" UniqueName="GasType">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Facility"
            FilterControlAltText="Filter Facility column" HeaderText="Facility"
            SortExpression="Facility" UniqueName="Facility" Visible="False">           
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="StartDate"
            DataType="System.DateTime"
            FilterControlAltText="Filter StartDate column"
            HeaderText="Start Date" SortExpression="StartDate"
            UniqueName="StartDate">
            <HeaderStyle Width="150px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="PatientName"
            FilterControlAltText="Filter PatientName column" HeaderText="Patient"
            ReadOnly="True" SortExpression="PatientName" UniqueName="PatientName">
            <HeaderStyle Width="120px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="PayerType"
            FilterControlAltText="Filter PatientName column" HeaderText="Payer Type"
            ReadOnly="True" SortExpression="PayerType" UniqueName="PayerType">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>         
        <telerik:GridBoundColumn DataField="RoomNumber"
            FilterControlAltText="Filter RoomNumber column" HeaderText="Room"
            SortExpression="RoomNumber" UniqueName="RoomNumber">
            <HeaderStyle Width="50px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="BedAssignment"
            FilterControlAltText="Filter BedAssignment column" HeaderText="Bed"
            SortExpression="BedAssignment" UniqueName="BedAssignment">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Location"
            FilterControlAltText="Filter Location column" HeaderText="Location"
            SortExpression="Location" UniqueName="Location">
            <HeaderStyle Width="150px" />
        </telerik:GridBoundColumn>      
        <telerik:GridBoundColumn DataField="FacilityUsername"
            FilterControlAltText="Filter FacilityUsername column"
            HeaderText="Assigned By" ReadOnly="True" SortExpression="FacilityUsername"
            UniqueName="FacilityUsername">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<GroupingSettings ShowUnGroupButton="True"></GroupingSettings>
 
        <ClientSettings AllowDragToGroup="True">
 
<Resizing AllowColumnResize="True" EnableRealTimeResize="True"></Resizing>
        </ClientSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
     
    </telerik:RadGrid>

And my NeedDataSource:

using (var context = new DataContext(SqlHelper.NewConnection))
{
    var results = context.ReportCylinderFacilityUsage(Master.FacilitySelection.SelectedValue);
     uxFacilityUsage.DataSource = results.ToList();
}

ReportCylinderFacilityUsage is a stored procedure.  One of the columns it returns is CylinderType

What I'd like to do is group by CylinderType and have the Count for each type of Cylinder displayed in the header.

When I have the following set up in the GroupBy Expressions:
<telerik:GridGroupByExpression>
    <SelectFields>
        <telerik:GridGroupByField FieldName="CylinderType" />
    </SelectFields>
    <GroupByFields>
        <telerik:GridGroupByField FieldName="CylinderType" Aggregate="Count" />
    </GroupByFields>
</telerik:GridGroupByExpression>
I get an error: FieldName contains invalid characters: count(CylinderType)

if I put the Aggregate on the SelectField then I get the error: A column named "CylinderType" already belongs to this datatable.


Thanks,

Jason
Radoslav
Telerik team
 answered on 18 Oct 2011
1 answer
68 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
736 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
89 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
87 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
255 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
95 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
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?