Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
274 views
Hi friends am using radnumeric Textbox control in my Application.
Here am facing the Problem is when I logging in as Dutch Culture.
Becoz it is considering "." as "," and vice versa.

For Example :

I am giving input as [ 2.25 in US] for this 
                  in dutch am giving as 2,25 when am selecting / submitting it is going as 225 in Database.
where am doing mistake, kindly help me.

Please find attachment of File one and two..
file 01 contains actual value and when I click mouse inside textbox changes. refer second image
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
11 answers
466 views
hi, i am more and more getting in love testing your product and i am thinking seriously to move all my work in the future to depend on your control .
i am having this scenario
i want to have a gird with articles dta source where the article db will have an image
now what i want to know how to do is
- how can i save the name of the uploaded image in the image field in DB
- if the user uploads a file that don't have the same name of the one already in DB how can i delete that and upload the new file and update the Image DB filed name with it ?
thx in advanced.

Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
10 answers
381 views
when sorting a column in descending order in the telerik grid, the grid display scrolls the far left, forcing the user to scroll back to the right to view the column that was sorted on. This does not happen when sorting a column in ascending order and its happening in chrome browser only.

Please suggest me to fix the issue
Konstantin Dikov
Telerik team
 answered on 29 Nov 2013
1 answer
247 views
Hi,

I want to read GridBoundColumn value inside radgrid update command ..

how to acces bound column inside rad grid update commmand event.


Thanks
Princy
Top achievements
Rank 2
 answered on 29 Nov 2013
3 answers
153 views
Hi,
how can i do increase Textbox width and validation in automatic editmode alongwith i am using custom template mode for insert
previously i used like this but its not working now
i have also attached image ,look it for reference

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
   {
       if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode))
       {
           //-------------Find TextBox In EditMode And Apply Css To Them------------
           //GridEditableItem edititem = (GridEditableItem)e.Item;
           //TextBox TxtEntityName = (TextBox)edititem["EntityName"].Controls[0];
           //TextBox TxtEntityType = (TextBox)edititem["EntityType"].Controls[0];
           //TextBox TxtEntityPath = (TextBox)edititem["EntityPath"].Controls[0];
           //TextBox TxtDescription = (TextBox)edititem["Description"].Controls[0];
           //TextBox TxtFileName = (TextBox)edititem["FileName"].Controls[0];
           //TxtEntityName.CssClass = "riEditFormTextBox";
           //TxtEntityType.CssClass = "riEditFormTextBox";
           //TxtEntityPath.CssClass = "riEditFormTextBox";
           //TxtDescription.CssClass = "riEditFormTextBox";
           //TxtFileName.CssClass = "riEditFormTextBox";
       }
 
           //Validations For Textbox In Insert And Edit Mode
       if ((e.Item is GridEditableItem && e.Item.IsInEditMode) || (e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted))
       {
           GridEditableItem item = e.Item as GridEditableItem;
           GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)item.EditManager.GetColumnEditor("EntityName");
           TableCell cell = (TableCell)editor.TextBoxControl.Parent;
           RequiredFieldValidator validator = new RequiredFieldValidator();
           validator.ControlToValidate = editor.TextBoxControl.ID;
           validator.ErrorMessage = " * Required";
           validator.Font.Bold = true;
           cell.Controls.Add(validator);
       }
Thanks
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
3 answers
287 views
Hi telerik, 
I have a problem using the RadAjaxManager Control, I'm trying to load a combobox depending on the selected item in another combobox in a webform, but for do that the autopostback of the combobox has to be in true mode, so i add a RadAjaxManager so I would not reload the whole page, but it doesn't work.

I want to load the combobox cmbCuenta depending on the selected item in cmbBanco without reload the whole page. Thanks, for your help.

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="cmbBanco">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cmbCuenta" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="cmbCuenta">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cmbChequera" />
                        <telerik:AjaxUpdatedControl ControlID="cmbMoneda" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="cmbTipoCuentaC">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cmbCuentaContable" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager> 

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2010Silver">
            <div class="loading">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Imagenes/loading1.gif" AlternateText="loading"></asp:Image>
            </div>
        </telerik:RadAjaxLoadingPanel>  


<table align="center" style="width: 98%">
                <tr>
                    <td class="auto-style4">
                        Banco:
                    </td>
                    <td colspan="2" class="auto-style4">
                        <telerik:RadComboBox ID="cmbBanco" runat="server" AutoPostBack="true" DataSourceID="SqlDataBanco" DataTextField="Nombre" DataValueField="IdBanco" EmptyMessage="Seleccione un Banco" OnSelectedIndexChanged="cmbBanco_SelectedIndexChanged">
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 20%" align="left" class="auto-style5">
                        <asp:Label ID="lblCuenta" runat="server" Text="Cuenta:"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 30%" align="left">
                        <telerik:RadComboBox ID="cmbCuenta" Runat="server" Width="211px" AutoPostBack="true" OnSelectedIndexChanged="cmbCuenta_SelectedIndexChanged" EmptyMessage="Seleccione una Cuenta Bancaria">
                        </telerik:RadComboBox>
                    </td>
                    <td style="vertical-align: top; width: 20%" align="left" class="auto-style3">
                        <asp:Label ID="lblFecha" runat="server" Text="Fecha de emisión:"></asp:Label>
                    </td>
                    <td style="vertical-align: top; width: 30%" align="left" class="auto-style4">
                        <telerik:RadDatePicker ID="dttFechaEmision" runat="server">                            
                        </telerik:RadDatePicker>
                    </td>
                </tr>
            </table>
</asp:Content>
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
1 answer
359 views
Hi,
I am having data in Session and casting it to a Datatable.
and I want to delete some of the rows from that Datatable based on a comparison (please the code below).
it doesnt give the expected result.
could you please advise me on this??


           
            DataTable dtchange = (DataTable)Session["Data"];
            DataSet ds = getdata(txt_HideDual.Text.ToString());
            if (dtchange.Rows.Count != 0)
            {
                for (int i = 0; i < dtchange.Rows.Count; i++)
                {
                    for (int j = 0; j < ds.Tables[0].Rows.Count; j++)
                    {
                        if (dtchange.Rows[i]["Name"].ToString() == ds.Tables[0].Rows[j]["Name"].ToString())
                        {
                            //dtchange.Rows.RemoveAt(i); --- This doesnt work
                            dtchange.Rows[i].Delete();
                            dtchange.AcceptChanges();
                        }
                    }
                }
                             Session["Data"] = dtchange;
            }


Thanking you,


AGM Raja
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
2 answers
88 views
Hi,

we are displaing more than 120 columns in the Radgrid which are generated dynamically from the Store Procedure.  we have enabled sorting, Filtering and DragandDrop.

The issue is that, some of the columns in the right most side is not visible when scrolling.

I have even set the Header Item style width and Filter Control width. Still it doesn' t work.

Any fix or work around for this?

Best Regards,
satz

Satz
Top achievements
Rank 1
 answered on 29 Nov 2013
1 answer
99 views
Can someone please look at the demo link below?

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultvb.aspx?product=grid#qsf-demo-source

When I clicked on Add New Record link button to bring up the Edit form, I could not find the code the show the Edit form (please see attachment for the screenshot)

Thanks,
Sam
Shinu
Top achievements
Rank 2
 answered on 29 Nov 2013
1 answer
128 views
I wrote an application for a client earlier this year that enables drag and drop functionality between two grids (assigned measures and available measures).  The drag and drop works for most of their associates but for a few, it's not functional and they would like me to create a secondary way for them to select and move measures.

They asked for a single button that would allow them to select one or more rows in the available grid, click the button, and move selected rows to the assigned grid, but I thought in my research earlier this year that I found that wasn't possible.  Is it?  Or is it possible to create a command column in each grid with, for example, an arrow pointing to the other grid that when clicked would move the row?

Looking for a push in the right direction on this and examples would be greatly appreciated.

Thanks!
Pavlina
Telerik team
 answered on 28 Nov 2013
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?