Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views

Hi,

I have created a custom GridColumnEditor that extends GridTextColumnEditor. My custom editor holds a composite control (consisting of a textbox and some other controls) that is used for editing the value. The composite controls shows up with the correct value when I press the edit button, but I have problems extracting the new value when I press the save button, I always get the old value.

I use the following for extracting the new value: (EditItem.Value (which is the textbox value)  always has the old value)


List
<UIPhaseItem> items = new List<UIPhaseItem>();

foreach
(GridColumn column in e.Item.OwnerTableView.RenderColumns)
{
    if (column is IGridEditableColumn)
    {
        IGridEditableColumn editableCol = (column as IGridEditableColumn);
        if (editableCol.IsEditable)
        {
            IGridColumnEditor editor = editManager.GetColumnEditor(editableCol);
            if (editor is CustomColumnEditor)
            {
                items.Add(((CustomColumnEditor)editor).EditItem);     
            }
        }
    }
}

Any ideas?

Below is my custom column editor.

public class CustomColumnEditor : GridTextBoxColumnEditor
    {
        Public UIPhaseItem EditItem { get; set;}
  
        public CustomColumnEditor(UIPhaseItem item, long id)
        {
            this.EditItem = item;
            this.EditItem.Enabled = true;
            this.EditItem.Visible = true;
            this.EditItem.ID = id.ToString();
        }
  
        protected override void AddControlsToContainer()
        {
            this.ContainerControl.Controls.Add(EditItem);
        }
  
        protected override void LoadControlsFromContainer()
        {
            this.EditItem = (UIPhaseItem)this.ContainerControl.Controls[0];
        }
}
Marin
Telerik team
 answered on 26 Oct 2010
3 answers
84 views
I use client function "radopen" to open RadWindow and show one page in it. 

Scenario: RadWindow is closed, main page is showed. After a while the session expires and, not knowing that, I open RadWindow and it show login page inside (!!!) which is completely wrong and inappropriate to me.

Can RadWindow somehow be limited to display only the page I told him, and if he can not, to close? Login page is not intended there to be loaded!
Georgi Tunev
Telerik team
 answered on 26 Oct 2010
3 answers
74 views
Hi,

I created radgrid edit option. when i open edit option it is fine. but when i clicked enter button in keyboard it is open create new option. i want solution.

Thanks
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 26 Oct 2010
3 answers
442 views
Hello,

I'm wonder if I can insert, update and delete records from Resource.resx file, exactly like handling a data from database using the radgrid control.
Is it is possible can you please explain to how can I do that,

It is apprecited to send me a code .

Regards,
Bader
Vasil
Telerik team
 answered on 26 Oct 2010
5 answers
196 views
I'm using a autocompleting and multicolumns radcombo box to produce an application.

Up to now I've hard coded the itemtemplate in the aspx page bt now I'm trying to roll it out a bit more dynamically.

Part of the application allows users to choose which database fields to include in the query so I won't know what to add to the <itemtemplate> until run time.

What is the best way to dynamically "autogenerate" the columns in the multicolumn combo??
Kalina
Telerik team
 answered on 26 Oct 2010
1 answer
121 views
Hello Team,

I have been searching for any kind performance improvement suggestions of RadGrid using Entity Data Model as source.

I could only find few links on LinqDatasource like
http://demos.telerik.com/aspnet-ajax/grid/examples/client/caching/defaultcs.aspx

Please provide any pointers for the same.


Daniel
Telerik team
 answered on 26 Oct 2010
4 answers
145 views
hi everybody!
I want kknow if there is a way to fire OnUpdateCommand event when the enter key is pressed.
I have already done the OnKeyPress event, but this is a client-side event, and I want when I press the key enter the OnUpdateCommand must be fired.
Radoslav
Telerik team
 answered on 26 Oct 2010
1 answer
193 views
         I need some help, I have a DataTable object from database  , I want to bind each data of DataTable  in Calendar .  Each data  shows in grids of calendar . For example, the first grid of '2010-1-1' shows sunny, the second grid of '2010-1-2' shows rainy, the third grid of '2010-1-3' shows snow, and so on .
         If you know how to do , please tell me , thanks! thanks!
Radoslav
Telerik team
 answered on 26 Oct 2010
1 answer
82 views
         I need some help, I have a DataTable object from database  , I want to bind each data of DataTable  in Calendar .  Each data  shows in grids of calendar . For example, the first grid of '2010-1-1' shows sunny, the second grid of '2010-1-2' shows rainy, the third grid of '2010-1-3' shows snow, and so on .
         If you know how to do , please tell me , thanks! thanks!
Radoslav
Telerik team
 answered on 26 Oct 2010
2 answers
100 views
I have rad windo manager on Home page defined like this:

<

 

telerik:RadWindowManager ID="radWindowManager" Style="z-index: 8001;"

 

 

runat="server" Skin="Vista" OnClientClose="OnClientClose">

 

 

<Windows>

 

 

<telerik:RadWindow ID="radWINModalPostLogin" runat="server" ReloadOnShow="True" DestroyOnClose="true" Behaviors="None"

 

 

Left="" VisibleTitlebar="False" VisibleOnPageLoad="false" Style="display: none;" Top="" Modal="True" KeepInScreenBounds="True" >

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

In the btton which opens Radwindow is Ajaxified. It's kind of wizard pages. But when user cancel out at any stage and clicks on the wizard button again it shows the window where user canclled out and whe I close that window after that start up window is shown. I don't understand what's happening. I have set DestroyONClose to ture.


 

Georgi Tunev
Telerik team
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?