Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
221 views
Hi,

All the examples show spell checking occurring when a user clicks on a button.

I have a text box which I would like to be spell checked as the user writes.  If the word does not appear in the dictionary, it underlines the word in red. 

Is this implemented in RadSpell or is there a way of doing this?

Thanks.
Rumen
Telerik team
 answered on 18 Feb 2010
4 answers
264 views
I have several columns in my grid that are not working properly. When I add a ColumnEditorID my application throws an error when I try to enter edit mode. I do have one column that is of type GridNumericColumn that does have a ColumnEditorID assigned that is working (I'm trying to use the same one). They are both of type money in the database. The only difference between the two is the one that does not work comes through a view while the one that does work is pulled straight from a table.

Error Message:
Source: System.Web  
Message: Specified argument was out of the range of valid values. Parameter name: index  
Stack trace: at System.Web.UI.ControlCollection.get_Item(Int32 index) at Telerik.Web.UI.GridNumericColumnEditor.LoadControlsFromContainer() at Telerik.Web.UI.GridColumnEditorBase.InitializeFromControl(Control containerControl) at Telerik.Web.UI.GridBoundColumn.OnDataBindColumn(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) at Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode) at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.GridTableView.Rebind() at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) at Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
 
Column:
<telerik:GridNumericColumn   
   DataField="SellerPaidBuyerCost"   
   DataFormatString="{0:C}" 
   HeaderText="Seller Paid Buyer Cost"   
   UniqueName="SellerPaidBuyerCost">  
   <HeaderStyle  HorizontalAlign="Center" Width="100px"></HeaderStyle> 
   <ItemStyle HorizontalAlign="Right"></ItemStyle> 
</telerik:GridNumericColumn> 
GridNumericColumnEditor:
<telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" NumericTextBox-EnabledStyle-HorizontalAlign="Right" runat="server" NumericTextBox-Width="75px">  
    <NumericTextBox runat="server">  
        <NumberFormat DecimalDigits="2" /> 
     </NumericTextBox> 
</telerik:GridNumericColumnEditor> 
Iana Tsolova
Telerik team
 answered on 18 Feb 2010
1 answer
79 views
hi

i wanna make my own skin for tabstrip

is there any tutorial on making 1?

css, img etc...

thanks in advance

regards
webster
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2010
5 answers
168 views
hi all,
i have a RadUpload control in a RadGrid. i added a CustomValidator, i'm validating file extensions in a javascript function, and i need to validate the file size in a server side function bcoz this can't be validated on client side except if i had a RadProgressArea, which i don't (like this example http://www.telerik.com/help/aspnet-ajax/upload_howtoclientfilesize.html).

so i need to add "OnServerValidate" function to the CustomValidator, the problem is how can i access the RadUpload control in this function??

am i in the correct way, or the whole approach is not applicable? how can i do it?

thnx in advance
FreshOne
Top achievements
Rank 1
 answered on 18 Feb 2010
4 answers
215 views
Hi All,
        I have a dropdown in radgrid1.  I would like to populate another radgrid based on dropdownselected item. How can i do that.
The dropdownlist is in edit mode in radgrid1.  Please help me....

Thanks in advance
Iana Tsolova
Telerik team
 answered on 18 Feb 2010
1 answer
271 views
I have a Radgrid with 2 columns SKU,ModelNumber...and a select command button in each row of the grid.When I select each row the values should be passed on to another screen...Below is the code I used...I am getting an error at Dim SKU as string value which says "Object reference not set to an instance of object"...can any one explain me how should I correct my code??????

Public

 

Event RowClicked(ByVal SKUvalue As String, ByVal modelNumber As String)

 

 

Protected Sub rgridModelList_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgridModelList.ItemCommand

 

 

 

If e.CommandName = "Select" Then

 

 

Dim SKU As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("SKU").ToString

 

 

Dim ModelNumber As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ModelNumber").ToString

 

 

RaiseEvent RowClicked(SKU, ModelNumber)

 

 

End If

 

 

End Sub

 

Shinu
Top achievements
Rank 2
 answered on 18 Feb 2010
1 answer
206 views
hi my dear friends

i have a little problem about using jquery...(i reeally do not know jquery but i forced to use it)

i am using vs 2008 - asp.net web app with c#

also i am using telerik controls in my pages

also i am using sqldatasources (Connecting to storedprocedures) in my pages

my pages base on master and content pages and in content pages i have mutiviews

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

in one of the views(inside one of those multiviews)i had made two radcombo boxes for country and city requirement like cascading dropdowns as parent and child combo boxes. i used old way for doing that , i mean i used update panel and in the SelectedIndexChange Event of Parent RadComboBox(Country) i Wrote this code :

    protected void RadcomboboxCountry_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
     
    { 
     
    hfSelectedCo_ID.Value = RadcomboboxCountry.SelectedValue; 
     
    RadcomboboxCity.Items.Clear(); 
     
    RadcomboboxCity.Items.Add(new RadComboBoxItem(" ...", "5")); 
     
    RadcomboboxCity.DataBind(); 
     
    RadcomboboxCity.SelectedIndex = 0; 
     
    } 


my child radcombo box can fill by upper code , let me tell you how : the child sqldatasource have a sp that has a parameter and i fill that parameter by this line -> hfSelectedCo_ID.Value = RadcbCoNameInInsert.SelectedValue;
RadcbCoNameInInsert.SelectedValue means country ID.

after doing that SelectedIndexChange Event of Parent RadComboBox(Country) could not be fire therefore i forced to set the autopostback property to true.

afetr doing that every thing was ok until some one told me can u control focus and keydown of your radcombo boxes

(when u press enter key on the parent combobox[country] , so child combobox gets focus -- and when u press upperkey on child radcombobox [city], so parent combobox[country] gets focus)

(For Users That Do Not Want To Use Mouse for Input Info And Choose items)

i told him this is web app , not win form and we can not do that. i googled it and i found jquery the only way for doing that ... so i started using jquery . i wrote this code with jquery for both of them :

    <script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script> 
     
    <script type="text/javascript"> 
     
    $(function() { 
     
    $('input[id$=RadcomboboxCountry_Input]').focus(); 
     
    $('input[id$=RadcomboboxCountry_Input]').select(); 
     
    $('input[id$=RadcomboboxCountry_Input]').bind('keyup', function(e) { 
     
    var code = (e.keyCode ? e.keyCode : e.which); 
     
    if (code == 13) {    -----------> Enter Key 
     
    $('input[id$=RadcomboboxCity_Input]').focus(); 
     
    $('input[id$=RadcomboboxCity_Input]').select(); 
     
    } 
     
    }); 
     
    $('input[id$=RadcomboboxCity_Input]').bind('keyup', function(e) { 
     
    var code = (e.keyCode ? e.keyCode : e.which); 
     
    if (code == 38) {       -----------> Upper Key 
     
    $('input[id$=RadcomboboxCountry_Input]').focus(); 
     
    $('input[id$=RadcomboboxCountry_Input]').select(); 
     
    } 
     
    }); 
     
    }); 
     
    </script> 


this jquery code worked BBBBBBUUUUUUUTTTTTT autopostback=true of the Parent RadComboBox Became A Problem , Because when SelectedIndex Change Of ParentRadComboBox is fired after that Telerik Skins runs and after that i lost parent ComboBox Focus and we should use mouse but we don't want it....

for fix this problem i decided to set autopostback of perentCB to false and convert

 
   protected void RadcomboboxCountry_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
     
    { 
     
    hfSelectedCo_ID.Value = RadcomboboxCountry.SelectedValue; 
     
    RadcomboboxCity.Items.Clear(); 
     
    RadcomboboxCity.Items.Add(new RadComboBoxItem(" ...", "5")); 
     
    RadcomboboxCity.DataBind(); 
     
    RadcomboboxCity.SelectedIndex = 0; 
     
    } 


to a public non static method without parameters and call it with jquey like this : (i used onclientchanged property of parentcombo box like onclientchanged = "MyMethodForParentCB_InJquery();" insread of selectedindexchange event)

 
   public void MyMethodForParentCB_InCodeBehind() 
     
    { 
     
     
     
    hfSelectedCo_ID.Value = RadcomboboxCountry.SelectedValue; 
     
    RadcomboboxCity.Items.Clear(); 
     
    RadcomboboxCity.Items.Add(new RadComboBoxItem(" ...", "5")); 
     
    RadcomboboxCity.DataBind(); 
     
    RadcomboboxCity.SelectedIndex = 0; 
     
    } 


for doing that i read the blow manual and do that step by step :

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



http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=732




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

but this manual is  about static methods and this is my new problem ...

when i am using static method like :
 
    public static void MyMethodForParentCB_InCodeBehind() 
     
    { 
     
     
     
    hfSelectedCo_ID.Value = RadcomboboxCountry.SelectedValue; 
     
    RadcomboboxCity.Items.Clear(); 
     
    RadcomboboxCity.Items.Add(new RadComboBoxItem(" ...", "5")); 
     
    RadcomboboxCity.DataBind(); 
     
    RadcomboboxCity.SelectedIndex = 0; 
     
    } 


so i recieved some errors and this method could not recognize my controls and hidden field...

one of those errors like this :

Error 2 An object reference is required for the non-static field, method, or property 'Darman.SuperAdmin.Users.hfSelectedCo_ID' C:\Javad\Copy of Darman 6\Darman\SuperAdmin\Users.aspx.cs 231 13 Darman

any idea or is there any way to call non static methods with jquery

(i know we can not do that but is there another way to solve my problem)???????????????


Majid Darab
Top achievements
Rank 1
 answered on 18 Feb 2010
3 answers
186 views
Hello... ^^

help me please..

i want week tooltip hide..


jaewung i
Top achievements
Rank 1
 answered on 18 Feb 2010
2 answers
327 views
Hi,
    I am using RadNumericTextBox inside the <edititemtemplate> tag of a RadGrid. I have set autopostback property of RadNumericTextBox to false.  Still when I press Enter key postback happens.  Given below is my code:

 <telerik:RadGrid ID="grdTrans" GridLines="None"  AutoGenerateColumns="false" Height="500px"
           AutoGenerateEditColumn="false" AutoGenerateDeleteColumn="false"
           runat="server"  OnCancelCommand="grdTrans_CancelCommand"
           AllowPaging="false" AllowSorting="false"
           OnDeleteCommand="grdTrans_DeleteCommand"  OnUpdateCommand="grdTrans_UpdateCommand"
           onneeddatasource="grdTrans_NeedDataSource"
           oninsertcommand="grdTrans_InsertCommand"
           onitemdatabound="grdTrans_ItemDataBound"
           oneditcommand="grdTrans_EditCommand" >
            <MasterTableView Name="master"  EditMode="InPlace" GridLines="None" DataKeyNames="accid" CommandItemDisplay="Bottom" >
                <Columns>
                  <telerik:GridEditCommandColumn>
                   </telerik:GridEditCommandColumn>

<telerik:GridTemplateColumn  HeaderText="Debit" UniqueName="debit" DataType="System.Decimal" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" >
                        <ItemTemplate>
                                       <asp:Label ID="lblDbAmt" Text= '<%# Eval("dbamt") %>' CssClass="labels"   runat="server"> </asp:Label>
                        </ItemTemplate>
           
                       <EditItemTemplate>
                              <telerik:RadNumericTextBox ID="txtDbAmt" Text  = '<%# bind("dbamt") %>' MinValue="0" MaxValue="99999999.99" MaxLength="11" DataType="System.Decimal" Culture="en-GB"  AutoPostBack="false" ClientEvents-OnKeyPress="KeyPressed" EnabledStyle-HorizontalAlign="Right" runat="server">                   
                            <NumberFormat AllowRounding="false" DecimalDigits="2" DecimalSeparator="." GroupSeparator="," GroupSizes="3"   />
                             </telerik:RadNumericTextBox>            
           
                       </EditItemTemplate>
 </telerik:GridTemplateColumn>   

I had to use the following javascript function to avoid postback:
 function KeyPressed(ctrl, e) {
             if (e.get_domEvent().rawEvent.keyCode == 13) { //enter  
                 //special handling (focus other control and so on) here  
                 e.get_domEvent().preventDefault();
                 e.get_domEvent().stopPropagation();
             }

Is there any workaround other than using the above javascript.

Alphonse



alphonse joseph
Top achievements
Rank 1
 answered on 18 Feb 2010
1 answer
113 views
please i want a way to get the dataset of the grid after sorting and filtering the data
Tsvetoslav
Telerik team
 answered on 18 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?