Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
153 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
153 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
135 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
108 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
757 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
225 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
708 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
2 answers
229 views
I'm new to Telerik controls, so I apologize if this is an easy thing that I've missed in the documentation. 

We used to use a competitor's product that allowed for modifying cell values in a Row Initialization Event.  How would I go about modifying the value in a cell through code before the grid is displayed?  I haven't been able to figure this out yet. 
Dan
Top achievements
Rank 2
 answered on 14 Apr 2011
4 answers
109 views
I am using VS2010 with the latest Telerik controls for asp.net AJAX with ASP.NET 4.0.

I have a business intelligence application that needs to have a customer insert commentary into a report.  Currently we are using AJAX contol toolkit's Modal Popup Extender with Winthusiasm for the WYSIWYG editor.

We would like to replace all controls with Telerik controls.  I was thinking about some kind of modal dialog with a good looking editor.  I am open to other suggestions.

Can anyone point me to a control or two that would help me accomplish what I need.

Thanks,
--jeff
Jeff Kershner
Top achievements
Rank 1
 answered on 14 Apr 2011
2 answers
102 views
Hello-

I have created an aspx page that has a RadGrid on it and when a user inserts, deletes or edits a row in the grid, the correct callback is made and everything works perfectly.

The problem is that when I tie that same aspx page to a master page and put the grid inside a content control, the Insert/Delete/Edit callback is never made.

I spent a lot of time looking to see if this help page applied:  http://www.telerik.com/help/aspnet/grid/grdmakepostbackajaxrequestfromusercontrolwebformmasterpage.html

But I wasn't able to understand how to make it work for the Insert/Delete/Edit callbacks, so hopefully someone can provide me with an answer that is specific to my code.

Thanks in advance for your help!

- G  
Greg
Top achievements
Rank 1
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?