Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
117 views
Hi,

I want to display Edit column of Rad grid as the first column. Now it shows as the last column of the grid.

Could some one help me how can I move this column to very first column.

Thanks
monika
Top achievements
Rank 1
 answered on 15 Apr 2011
3 answers
136 views
Hello,

We use radwindows in several places in our application.  Errors cause a redirect either to our login page or to an error page.  Most common is due to session timeout. 

It is a problem when this happens while the user is in a radwindow and the radwindow itself displays the login page.   We have fixed this for IE by placing this javascript on our login page:

 

<script type="text/javascript">
        if (window != window.top) window.top.navigate(window.location.href);
</script>

This doesn't work on Mozilla.  This may be because mozilla creates each window on a seperate thread and thinks that the radwindow IS the top window?

Can you please advise how we can handle this issue.

Thanks
Marin Bratanov
Telerik team
 answered on 15 Apr 2011
1 answer
190 views
Page_ClientValidate doesn't seem to work with RadCaptcha, anyone had the same problem?

 

if (typeof (Page_ClientValidate) == 'function') {

 

 

 

// if we are doing a validation, return if it's false

 

 

if (Page_ClientValidate() == false) { return false; }

 

 

}

Thanks.

Pero
Telerik team
 answered on 15 Apr 2011
1 answer
151 views
A little confused about the way Ajax is working.  Based on the markup below, I was under the impression that if RadTextBox1 gets changed, this will cause a autopostback via AJAX, to execute RadTextBox2 server code.  Whats happening is that all three textbox server code is running on Load event.  It seems like the whole page is being refreshed.  Can someone explain why?

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTextBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTextBox2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadTextBox2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTextBox3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
                  </AjaxSettings>

    </telerik:RadAjaxManagerProxy>

    <telerik:RadTextBox ID="RadTextBox1" AutoPostBack="true" runat="server">
    </telerik:RadTextBox>
    <telerik:RadTextBox ID="RadTextBox2" AutoPostBack="true"   runat="server">
    </telerik:RadTextBox>
    <telerik:RadTextBox ID="RadTextBox3" AutoPostBack="true"  runat="server">
    </telerik:RadTextBox>

Tsvetoslav
Telerik team
 answered on 15 Apr 2011
3 answers
113 views
We purchased the Telerik controls through a software development company but did not get documentation.  So sorry if this question is a little basic.

The RadEditor is on a page as follows below.  What is the syntax to add the bulleted list toolbar button?

<

 

telerik:RadEditor ID="txtText" runat="server" Height="200px" Width="400px" ToolTip="Post Body" EnableEmbeddedSkins="false">

 

 

    <Tools>

 

 

        <telerik:EditorToolGroup>

 

 

            <telerik:EditorTool Name="Bold" />

 

 

            <telerik:EditorTool Name="Italic" />

 

 

            <telerik:EditorTool Name="Underline" />

 

 

            <telerik:EditorTool Name="Cut" />

 

 

            <telerik:EditorTool Name="Copy" />

 

 

            <telerik:EditorTool Name="Paste" />

 

 

            <telerik:EditorTool Name="FontName" />

 

 

            <telerik:EditorTool Name="FontSize" />

 

 

            <telerik:EditorTool Name="ForeColor" />
        
</telerik:EditorToolGroup>
    
</Tools>

 

 

    <Content>

 

 

    </Content>

 

 

</telerik:RadEditor>

 

Rumen
Telerik team
 answered on 15 Apr 2011
2 answers
76 views
Hi,

AdvancedInsertTemplate

 

 

doesn't work. save cancel options display and it open after i click options button. I want to open directly this form. How i configure the scheduler components. Thanks you for your helps.

Veronica
Telerik team
 answered on 15 Apr 2011
3 answers
145 views
Hi,

As you can see from the code, the text box is required to have a value. The text box has no value. I click on the button first time everything is working correctly and I have the "Error!" message inside the textbox. When I click on the button second time without changing anything, the text box still has the error style but the message disappears. And if I have EmptyMessage set up, it would appear instead of the error message. How can I make the error message stay?
Thank you

<asp:TextBox ID="txtTest" runat="server" />
<telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="true" Skin="Default">
    <telerik:TextBoxSetting BehaviorID="bhTest" ErrorMessage="Error!" 
        Validation-IsRequired="true" Validation-ValidationGroup="ValidationSummary1">
        <TargetControls>
            <telerik:TargetInput ControlID="txtTest" />
        </TargetControls>
    </telerik:TextBoxSetting>
</telerik:RadInputManager>
<asp:Button ID="btnTest" runat="server" ValidationGroup="ValidationSummary1" Text="Test" />
Pavel
Telerik team
 answered on 15 Apr 2011
1 answer
134 views
Spellcheck works fine on my local machine.  However, when I deploy the application on a server, spellcheck produces the following error:  No dictionary loaded.

The following HTTPHANDLER is in the web.config file:
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>

The dictionary files are in the App_Data/RadSpell directory. 

I verified the ASPNET machine account and NETWORK SERVICE account access to the App_Data directory on the server.  I am running IIS 7 on the server.

I even tried to explicitly set the dictionary path in the editor:
<telerik:RadEditor ID="editorAnswer" Runat="server" Font-Names="Arial" Font-Size="12pt">
                <SpellCheckSettings DictionaryPath="~/App_Data/RadSpell/" />

Am I missing something? 
Dan
Top achievements
Rank 2
 answered on 15 Apr 2011
1 answer
126 views
I'm working on a website where I need a radiobutton list to do an asynchronous postback.  I have my radajaxmanager set up to have a div that surrounds most of the page update itself when a control in the div postsback.  This works great for all of my controls except the radiobuttonlist.  When one of the radiobuttons is clicked the page does a regular postback instead of the asynchronous one I'm expecting.

A couple of interesting things:
1.  My page does not exhibit this behavior in FireFox (i.e. in FireFox asynchronous postback happens) but does in IE and Chrome.
2.  If I replace the radiobuttonlist with a checkbox list and the user clicks on one of the checkboxes the page does an asynchronous postback.
3. This website is an interface for taking surveys that have been predefined.  Each survey has a collection of sections, each section has a collection of pages, and each page has a collection of questions.  If the radio button list is inside a question it does the regular postback.  If the radiobuttonlist is anywhere above the question level (e.g. on a page or section) it does the asynchronous postback fine.

I have attached a stripped down version of my website that is the bare minimum I've found that can reproduce this problem.

Does anyone know what is going on here?

telerik controls version:  2011 Q1 and previous versions
Dustin
Top achievements
Rank 1
 answered on 15 Apr 2011
2 answers
94 views
Dear Friends,
could you please help me to get the way to read a percent value (0, 0.1,... to 1) in a textbox using % value like 0%, 1% to 100%
my database has a column with name of percentcomp as float but i field to read it through my application that i convert the value to string to be appeared in my text box but unlikely when i convert to string I lose the value. kindly find my code below


 Protected Sub DivID_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles DivID.Load
        If Not Page.IsPostBack Then


            If Not (DivID.Text = "") Then
                ' Create a Select statement that searches for a record
                ' matching the specific Call Number from the Value property.
                Dim selectSQL As String
                selectSQL = " SELECT MasterEntry.EquiryType, DivisionsInv.ID, DivisionsInv.LogNumber ,  DivisionsInv.SolutionComp, DivisionsInv.Division, DivisionsInv.ProposedValue, DivisionsInv.Employee, DivisionsInv.Status, DivisionsInv.PercentCompl, DivisionsInv.ClosedDate, DivisionsInv.HrsWorked, DivisionsInv.Remarks, Employees.Name, Employees.EmpNumber"
                selectSQL &= " FROM MasterEntry INNER JOIN DivisionsInv ON MasterEntry.LogNumber = DivisionsInv.LogNumber INNER JOIN Employees ON DivisionsInv.Employee = Employees.EmpNumber "
                selectSQL &= "WHERE DivisionsInv.ID='" & DivID.Text & "' "
                selectSQL &= " AND EmpNumber = '" & Profile.EmpNum & "'"


                ' Define the ADO.NET objects.
                Dim strConnString As String = ConfigurationManager.ConnectionStrings("TSDATA2ConnectionString").ConnectionString()
                Dim con As New SqlConnection(strConnString)

                Dim cmd As New SqlCommand(selectSQL, con)
                Dim reader As SqlDataReader
                ' Try to open database and read information.

                Try
                    con.Open()
                    reader = cmd.ExecuteReader()
                    reader.Read()
                    UpdateButton.Enabled = True
                    Panel1.Visible = True
                    ' Fill the controls.
                    ' If reader("AccManager").ToString() <> orgn.SelectedValue Then
                    'UpdateTXT0.Text = "Sorry your are not Authorized"
                    'End If

                    EngineerName.Text = reader("Name").ToString()

                    Eng_LogNumber.Text = reader("LogNumber").ToString
                    SolutionText.Text = reader("SolutionComp").ToString()
                    DivisionText.Text = reader("Division").ToString()
                    ProposedValueText.Text = reader("ProposedValue").ToString()
                    StatusText.SelectedValue = reader("Status").ToString()
                    PercentCompl.Text = reader("PercentCompl").ToString()
                    If Not (reader("ClosedDate").ToString() = "") Then
                        ClosedDate.SelectedDate = reader("ClosedDate").ToString()
                    End If
                    HrsWorked.Text = reader("HrsWorked").ToString()

                    remark.Text = reader("Remarks").ToString()

                    TypeText.Text = reader("EquiryType").ToString()

                Catch err As Exception
                    Labelerr.Text = "This Call may not assigned to you or an Error present "
                    UpdateButton.Enabled = False
                    Panel1.Visible = False






                Finally
                    con.Close()
                End Try
            End If
        End If
    End Sub


Best Regards,
Mohammed
Top achievements
Rank 1
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?