Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
876 views
Hello, I am having a troublesome issue with the RadGrid in the PopUp Edit mode.  I have a RadGrid that allows users to enter data into the grid via the modal popup edit style form.  I'm having two issues on insert or edit (deletes work fine):
  1. The modal pop-up does not close/go away after the user inserts a record or updates it if all the fields are not filled out.  If the user populates a value for all of the fields when they insert, then the modal closes itself (the desired behavior)
  2. On updates/edits if the user changes the value in a field from having a value to not having a value (e.g. deletes out the value for the example field "Middle Name") then attempts to save that back, the modal both does not close and the update does not occur.  If the user populates a value for each field then the update occurs and the modal popup is closed on submit/save.

I have tried trapping any errors on the data grid insert, update, or delete and no errors are being caught there, so I am not sure what the issue is and am seeking help with this.  I would like the updates that change values to empty to be valid and for the modal to close itself on insert or update even if the user has not filled out values for each field.
Milena
Telerik team
 answered on 20 Jun 2014
1 answer
144 views
Hello,

I'm working on a project that has a UserControl which contains a RadGrid.
I need to create a new UserControl for a certain action performed by the user.
This must be done in runtime.

I can't create the UserControl in the Page_Load() or Page_Init() functions.

How can I create a new UserControl dynamically during runtime, without the UserControl's and the RadGrid's functionality being compromised ?


Thanks, Daniel.
Eyup
Telerik team
 answered on 20 Jun 2014
1 answer
570 views
Hi,

I need a grid without paging (all rows are shown) but with the number of rows displayed (like it is displayed in pager). Is it possible ? Is there a PagerStyle who display only the number of rows ?


Thank you !
Princy
Top achievements
Rank 2
 answered on 20 Jun 2014
9 answers
276 views
Hi,
I just upgrade from 2013.2.611.35 to 2014.1.403.35. And now the callback stopped working on the Toolbar. 

<telerik:RadToolBar ID="toolBar" runat="server" BackColor="White" Width="850px" AutoPostBack="True"
        OnButtonClick="toolBar_ButtonClick">
        <Items>
...
The event "OnButtonClick" is not fired.
Have you any idea about this issue ?
Regards
Bernard
Bernard
Top achievements
Rank 1
 answered on 20 Jun 2014
4 answers
316 views
Hi, I have a RADTabStrip defined in my page.
On clicking one of the tabs i load a user control.
Now in the user control, i have a button and a click handler for the same.
In the button click handler (client side function), i would like to change the text of the tab.
I saw examples which use something like $find("<%= RadTabStrip1.ClientID %>")
But I am not sure how to use this when the RadTabStrip is defined in the parent page.
Please provide clues / suggestions on how to get this done.

Thanks
Suchitra

Suchitra
Top achievements
Rank 1
 answered on 20 Jun 2014
3 answers
149 views
Hi,

My appologies if this is a very basic question.

Please see the attached image. When we drag a row there is some white area above the row. Where are the styles defined for the row being dragged?  All I see in the css file for Drag/Drop is GridItemDropIndicator_blah.

Any pointers would be appreciated.

Thanks!
Rich
Konstantin Dikov
Telerik team
 answered on 20 Jun 2014
3 answers
159 views
I have these settings for radtreelist object
RadGrid1.ClientSettings.Scrolling.AllowScroll = true;
RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = true;

When I use ExporttoPDF features Adobe gives me error message, that pdf is not valid
ExportTOCSV is working fine


Could you give me some advise what I Can do in the code or the settings to have this nice feature
UseStaticHeaders and able to Export to PDF without any issue.

Thanks
Princy
Top achievements
Rank 2
 answered on 20 Jun 2014
1 answer
468 views
Hi 

I have radtextbox I need to find the length of the characters  entered  on each entry of a letter in rad textbox ? I am not able to understand which client event to be fired as i have tried onKey press but none of the events are firing.Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 20 Jun 2014
2 answers
287 views
Hi,

Is there a way to get the list of available built-in skins without referencing a SkinManager? 

I understand that this will allow me to iterate through a SkinManager's list of skins:

Dim oChooser As RadComboBox = CType(oSkinManager.FindControl("SkinChooser"), RadComboBox)
For Each Item As RadComboBoxItem In oChooser.Items
...

However this won't work for us under certain situations because there may not be a SkinManager available when we need to find out if a skin still exists or not.
I tried to create a new RadSkinManager programmatically and then attempted to access its skin chooser, but the chooser comes back as an empty object.

Thank you for you help.
Condorito
Top achievements
Rank 1
 answered on 19 Jun 2014
2 answers
415 views
I have a radgrid in which the last column is a text box. I have added the text box through a GridTemplateColumn.
templateColumn = new GridTemplateColumn();
templateColumnName = "Billing Number"
this._RadGrid1.MasterTableView.Columns.Add(templateColumn);
templateColumn.ItemTemplate = new TextBoxTemplate(templateColumnName);
templateColumn.HeaderText = templateColumnName;;
templateColumn.DataField = templateColumnName;
templateColumn.AllowFiltering = false;
 The TextBoxTemplate is as follows:
   public class TextBoxTemplate : ITemplate
    {
        protected RadTextBox _textBox;      
        string _columnName;
        public TextBoxTemplate(string columnName)
        {
            this._columnName = columnName;
        }
        public void InstantiateIn(System.Web.UI.Control container)
        {
            
            this._textBox = new RadTextBox();
            this._textBox.ID = this._columnName;           
            container.Controls.Add(this._textBox);
            this._textBox.DataBinding += new EventHandler(_textBox_DataBinding);
        }
        void _textBox_DataBinding(object sender, EventArgs e)
        {
            RadTextBox txt = (RadTextBox)sender;
            GridDataItem container = (GridDataItem)txt.NamingContainer;
            txt.Text = ((DataRowView)container.DataItem)[this._columnName].ToString();
        }
}

This works fine when the grid is loaded for the first time. But when the text in the text box is changed and the "Save" button is clicked, instead of showing the new value it displays the previous one.
I checked that the value in the DB is not saved till the whole process ends. Hence the code :((DataRowView)container.DataItem)[this._columnName].ToString(), gets the value from the DB which is the old value. After the process finishes, the db gets the new value. 
For example, when the grid loads for the first time, the Billing number is displayed as 90. If I change it to 91, it again displays 90 instead of 91!
RB
Top achievements
Rank 1
 answered on 19 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?