Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
100 views
Hello Telerik Team,

I have a custom progress area built using the RadProgressArea to depict to the user the percentage of the process when they are sending a request. I would like to know if it is possible to stop the progression of the progress area when the cancel button was clicked. I have been trying multiple solutions, I have injected a javascript that will stop the postback of the request but the progress still continues. Do you have any solutions on this? Thanks! :)
Hristo Valyavicharski
Telerik team
 answered on 27 Mar 2015
4 answers
87 views
I have a RadGrid with hierarchy, and each DetailTable is always editable.  I'm looking for a way to have the group of input controls in the DetailTable (that have been dynamically added to a TextBoxSetting's TargetControls) to be validated in groups. The issue is that if a input in any DetailTable is in an error state, I can't update any of the DetailTables.  I've attempted using Validation Groups, but setting them in the ItemDataBound event is much too late in the page event cycle. 

In this example, I have a list of contacts in my MasterTableView. In the DetailTables, there are inputs that have been dynamically added to the RadInputManager. Can anyone think of a way to allow one DetailTable to be updated (using the btnSubmit button) when another DetailTable has an input that is in an error state?

<telerik:RadInputManager ID="inputManager" runat="server">       
    <telerik:TextBoxSetting BehaviorID="txt" Validation-IsRequired="true" />
</telerik:RadInputManager>
     
<telerik:RadGrid ID="rgUsers" runat="server" AutoGenerateColumns="false">
    <MasterTableView Name="Users" DataKeyNames="ContactId" HierarchyLoadMode="Client">
        <Columns>
            <telerik:GridBoundColumn DataField="ContactId" HeaderText="ID" />
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" />
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" />
        </Columns>
        <ParentTableRelation>
            <telerik:GridRelationFields MasterKeyField="ContactId" DetailKeyField="ContactId" />               
        </ParentTableRelation>
        <DetailTables>
            <telerik:GridTableView Name="FieldLevelChanges" DataKeyNames="ContactId" CommandItemDisplay="Bottom">
                <CommandItemTemplate>
                    <asp:Button ID="btnSubmit" runat="server" Text="Update" CommandName="Update">
                    </asp:Button>
                </CommandItemTemplate>
                <Columns>
                    <rad:GridTemplateColumn HeaderText="Value">
                        <ItemTemplate>
                            <asp:TextBox ID="txtValue" runat="server" Text='<%#Eval("Value")%>' />
                        </ItemTemplate>  
                    </rad:GridTemplateColumn>
                </Columns>                  
            </telerik:GridTableView>                               
        </DetailTables>                   
    </MasterTableView>
</telerik:RadGrid>

Protected Sub rgUsers_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles rgUsers.ItemDataBound
    If TypeOf e.Item Is GridDataItem And e.Item.OwnerTableView.Name = "FieldLevelChanges" Then
        Dim txtValue As TextBox = DirectCast(e.Item.FindControl("txtValue"), TextBox)
        inputManager.GetSettingByBehaviorID("txt").TargetControls.Add(New TargetInput(txtValue.UniqueID, True))
    End If
End Sub





Andy
Top achievements
Rank 2
 answered on 27 Mar 2015
9 answers
229 views
Hi all,
in my radscheduler instance I've a validator on subject field

This is the code

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
 if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
            {
                CustomValidator validatorForFilm1 = new CustomValidator();
                RadScheduler scheduler = (RadScheduler)sender;               
                validatorForFilm1.ValidationGroup = scheduler.ValidationGroup;
                validatorForFilm1.ControlToValidate = "Subject";
                validatorForFilm1.ErrorMessage = "Error";
                validatorForFilm1.ClientValidationFunction = "validationFunctionSubject";
                (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForFilm1);
                //e.Container.Controls.Add(validatorForFilm1);
            }
}


and the javascript part

function validationFunctionSubject(source, arguments) {
            if (arguments.Value.length > 0)
            {
                arguments.IsValid = true;
            }
            else
            {
                arguments.IsValid = false;               
            }
        }


The validator is working because when i click on "Save" button the appointment is not saved, but no error message is showing.
I've hide some component of the advanced form in this way

function OnClientFormCreated(sender, eventArgs) {
                $telerik.$(".rsRecurrenceOptionList").children().each(function (i) {
                if (i < 1 || i >= 2)
                $(this).hide();
                });
          
                $telerik.$(".rsRecurrenceOptionList li:eq(1) input").attr("checked", "checked");
                $telerik.$(".rsRecurrenceOptionList li:eq(1) input").click();         
               
                $telerik.$(".rsAdvRecurrenceRangePanel li:eq(0)").hide();
                $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1) span input").attr("checked", "checked");
 
                $telerik.$(".rsAdvDaily li:eq(1)").hide();
                $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1)").hide();
 
                $telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").attr("checked", "checked");
                //$telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").click();
 
                $telerik.$(".rsAdvOptionsPanel li:eq(1)").hide();
                $telerik.$(".rsAdvOptionsPanel li:eq(2)").hide();           
        }

and

.rsAdvRecurrencePatterns
{
   visibility : hidden !important;
   height: 0px;
}

Could it be the cause? I've tried to remove all this code and nothing changed..
Any help on this?
Thanks a lot

N.
Ivan Danchev
Telerik team
 answered on 27 Mar 2015
2 answers
84 views
HI Telerik

I have a radgrid and in EditFormSettings template of this grid I have a UserControl. This usercontrol contains a radbutton which has its own css defined in the control's ascx file. 

But when I look into the generated html it shows a class Which is added to this radbutton and this is:

.RadGrid_SkinName input
{
   
}

This class is making the button look wierd. Is there a way to remove this class from the button's style.

Thank a lot.
Danail Vasilev
Telerik team
 answered on 27 Mar 2015
1 answer
347 views
Hi,
I have a column called "CauseCode" in a grid. This column has the values like O0205,L1307,etc in each rows. Each CauseCode has corresponding descriptions like
O - Description 1(from a table in database) - Segment
02-Description 2 (from a table in database) - Subgroup
05-Description 3(from a table in database) - cause

I am not displaying these descriptions in the grid but I am getting the values and hiding them. And now when I mouse hover the CauseCode column, it should display the corresponding descriptions in a tooltip dynamically.

In the below code, the tool tip should be displayed for the column "CauseCode" but I am getting its description values like Segment, Subgroup and cause and hiding them by making their display value as false.

 Please help in this regard.
 
Please find below for the code used.

<telerik:GridBoundColumn DataField="CauseCode"
FilterControlAltText="Filter CauseCode column" HeaderText="Cause Code" UniqueName="CauseCode" Display="true" FilterControlWidth="40px">
<HeaderStyle Width="80px" />

</telerik:GridBoundColumn>


<telerik:GridBoundColumn
DataField="MissOppSegmentDesc" HeaderText="Segment Description"
UniqueName="MissOppSegmentDesc"
Visible="true" Display="false">
<HeaderStyle Width="80px" />
</telerik:GridBoundColumn>

<telerik:GridBoundColumn
DataField="MissOppSubgroupDesc" HeaderText="Subgroup Description"
UniqueName="MissOppSubgroupDesc"
Visible="true" Display="false" >
<HeaderStyle Width="80px" />
</telerik:GridBoundColumn>

<telerik:GridBoundColumn
DataField="MissOppCauseDesc" HeaderText="Cause Description"
UniqueName="MissOppCauseDesc"
Visible="true" Display="false">
<HeaderStyle Width="80px" />
</telerik:GridBoundColumn>
Marin Bratanov
Telerik team
 answered on 27 Mar 2015
8 answers
343 views
Hi,

RadNumericTextBox 

 

 is not working properly when culture changed to French - It increases extra zeros.


<EditItemTemplate> 

 

 

    <telerik:RadNumericTextBox ID="SearchAreaTopLeftXRadNumericTextBox" Runat="server" 
                Text='<%# Bind("SearchAreaTopLeftY") %>'

 

 

                Skin="Office2007" MaxLength="6" MaxValue="999.99" MinValue="0" Width="80px" LabelCssClass=""

 

 

        meta:resourcekey="SearchAreaTopLeftXRadNumericTextBoxResource1">

 

 

       <NumberFormat DecimalDigits="2" GroupSeparator="" />
      </telerik:RadNumericTextBox>
</EditItemTemplate>


For e.g. Lets say there is a decimal column "SearchAreaTopLeftY" and it has a value 1.00 (in en-US culture)
when we switch to French culture (fr-FR) its value becomes 1,00 and that is valid as in french culture period is represented by comma.

The problems comes when we edit the column we find a value 100,00 instead of 1,00 in RADNumericTextBox. I don't know from where it is added extra zeros.

Also while updating it gives an error:

=========================================================================================================

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC LM 8; InfoPath.2)
Timestamp: Fri, 28 Aug 2009 06:25:56 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Line: 15
Char: 9278
Code: 0
URI: http://localhost/PIPWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a94b8a2b4-5efc-4f4c-9641-d912b698978d%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1125.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3afr-FR%3afd794f69-50b6-4e80-a52c-60fb1a05429c%3aa9723048%3a393f5085%3a9703c1f0%3aa3f85c94%3a819163f9%3a39249aa4%3a577694e5%3a34f9d57d%3a4b6f7e66%3a6dd34527%3a665c7bcf%3ac6335cbd

========================================================================================================

I am using AJAX RadGrid and Telerik.Web.UI version is 2008.3.1125.35.

Please help me out :)

Thanks - Hemant

 

Viktor Tachev
Telerik team
 answered on 27 Mar 2015
1 answer
82 views
Hello,

After some test I found that seems that theres a limit with exceptions. After some filter added to the recurrence rukle the result is that  we are nmot able to delete some parts of the recurrence rule if older are present. Theres any limit about?
Peter Filipov
Telerik team
 answered on 27 Mar 2015
1 answer
112 views
Hi Telerik

How can i change the color of browse button when clicked.

Please advise.

Thanks!
Dimitar
Telerik team
 answered on 27 Mar 2015
3 answers
243 views
Hello, 

I have a radgrid in edit mode (Inline editMode) and multi rows edit. 
In this grid a have a Date Column (GridTemplateColumn with a raddatepicker in edit template)

I change the date and type enter. This  save the item  automatically and will go to the next row in the same column


To do this a have used OnKeyPressed on the grid and set to radAjaxmanager a methode to execute (javascrip) OnResponseEnd.

My code works fine in Firefox and Mozilla .
With IE the first time it is working than not 

Can some one help me ?

Thanks
Eyup
Telerik team
 answered on 27 Mar 2015
1 answer
59 views
How can I use different FormDecorator skin for different telerik:GridCheckBoxColumn?
I want to use black for GridCheckBoxColumn DataField="admin" and Metro for GridCheckBoxColumn DataField="writer" and Office2010Silver for telerik:GridTemplateColumn with a asp:CheckBox?
Konstantin Dikov
Telerik team
 answered on 27 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?