Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 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
93 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
63 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
119 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
109 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
109 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
83 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
13 answers
667 views
Dear,
How to access the controls , example subject textbox and description textbox found in scheduler Advanced Form (by clicking options). I would like to open in edit mode only (not insert mode) and assign some text in description textbox. How to do?

Kind regards
Arockiasamy
Chris
Top achievements
Rank 1
 answered on 14 Apr 2011
1 answer
204 views
I am using RadAjaxPanel on my page, on one button click, i am using Response.Redirect, but redirect not working.
I am getting error :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

Please help.
Daniel
Telerik team
 answered on 14 Apr 2011
2 answers
628 views

Hi.!

 

I have a Rad Grid control in my ASPX page,  then I bind this control (server side binding) to a data table that I get from a web service. I want to implement a client side filtering, but I don’t know how to do this or what things I need to change in order to do that. I think this is possible, because all the information I got, is now in client side (My table with all the rows.!! )

 

I successfully implement server side filtering but this is very slow, so sadly this is not an option for me. :(

 

Here’s a sample of my code (server side filtering):

 

ASPX: 

 

<telerik:RadGrid ID="gdOrders" AllowFilteringByColumn="True" runat="server" OnItemCommand="onItemCmd">
        <MasterTableView AllowFilteringByColumn="True">
              <Columns>
                    <telerik:GridBoundColumn DataField="CSOL_FOLIOOTID" ShowFilterIcon="false" HeaderText="Folio"     UniqueName="CSOL_FOLIOOTID"  Resizable="False" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" AllowFiltering="true"  />
                     .
                     .
                     .
             </Columns>
      </MasterTableView>
</telerik:RadGrid>

 

 

CODE BEHIND

//My binding (Loading function)

myDataTable = myObjInstance.GetOrders();
gdOrders.DataSource = myDataTable;
gdOrders.DataBind();

 
protected void onItemCmd(object source, Telerik.Web.UI.GridCommandEventArgs e)
      {
              switch (e.CommandName)
              {                 
                   case  RadGrid.FilterCommandName:
                      Pair filterPair = (Pair)e.CommandArgument;                      
                      TextBox filterBox = (e.Item as GridFilteringItem) [filterPair.Second.ToString()].Controls[0] as TextBox;
                      this.ApplyFilter((string)filterPair.Second, filterBox.Text);
                      break;
              }
          }        
      }
 
 
 private void ApplyFilter(string clmnName, string value)
      {
         string query = clmnName + " like '%" + value.Trim() + "%'";
         gdOrders.DataSource = myDataTable.Select(query);
         gdOrders.DataBind();
      }

 

Can any one suggest me how to do this, what should I change or implement?

 

Tnks :D

 

 

Sorry for my English!!

 

 

 

Angel
Top achievements
Rank 1
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?