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

 Hi, greetings from Mexico

 I have a problem grouping Grid fields (a Grid with 32 columns)
When I do, the horizontal scrollbar is hidden, and the fields width is reduced,
and the Grid keeps its width (assigned on the designer)

Does anyone have any suggestion?
Thanks
Dimo
Telerik team
 answered on 03 Oct 2008
3 answers
486 views
Hi there,

I am new to RadControls, and I have the problem as follows:

I put a Rad Combobox in the detailview. This combobox is bound with Sqldatasource so that the users can choose a item from this dropdownlist to insert/update into the database. Everything works fine.

But I also want to set to allow Custom text, and when users want something which is not in the list, they can type in the box whatever they want to create new items. But I cannot find how to bind this new typed items with the database. Nothing happens when I type new texts into the box.

Please help.

Thanks.
Rosi
Telerik team
 answered on 03 Oct 2008
3 answers
103 views
Greetings,

Ok, so I'm doing an insert into my grid via itemcommand, and here is the code.

case "PerformInsert":  
                    rgdStatusList.Columns.FindByUniqueName("Active").Visible = true;  
                    rgdStatusList.Columns.FindByUniqueName("Archived").Visible = false;  
                    AddStatus(e);  
                    break;  
 
protected void AddStatus(Telerik.Web.UI.GridCommandEventArgs e)  
        {  
            Telerik.Web.UI.GridEditableItem insertItem = e.Item.OwnerTableView.GetInsertItem();  
            //e.Item as Telerik.Web.UI.GridEditableItem;  
            Status mStatus = new Status();  
            AdminManager mAdminManager = new AdminManager();  
 
            //Pull in all needed info to create a new record in the database.  
            mStatus.StatusDescription = (insertItem["StatusDescription"].Controls[0] as TextBox).Text;  
            mStatus.Active = (insertItem["Archived"].Controls[0] as CheckBox).Checked;  
            mStatus.CommunityID = ParentKNPage.CoPID;  
 
            try  
            {  
                mAdminManager.InsertStatus(mStatus);  
            }  
            catch (Exception ex)  
            {  
                rgdStatusList.Controls.Add(new LiteralControl("Unable to insert Status.  Reason: " + ex.Message));  
            }  
        } 

In there, my mAdminManager.InsertStatus(mStatus) does add the data into my database, and once the page refreshes, the grid rebinds and displays the data.  The problem is, once the page does it's postback, the insert textbox is still visible.  Is there a way to kick the grid out of insert mode?

Thanks.
Chad Johnson
Top achievements
Rank 1
 answered on 03 Oct 2008
2 answers
137 views
Hi,

when I call pasteHtml of a RadEditor instance the text gets inserted as expected but when I click inside the editor I get this error:
"Could not complete the operation due to error 800a025e".

What does this mean? Did I do something wrong? Here's the code which performs
the pasteHtml:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
        <script type="text/javascript"> 
            function insertPlaceholder() { 
                var placeholerSelector = $find("<%= PlacholderSelectBox.ClientID %>"); 
                var editor = $find("<%= TemplateEditor.ClientID %>"); 
 
                editor.pasteHtml(placeholderSelector.get_value()); 
            } 
        </script> 
    </telerik:RadCodeBlock> 

Best Regards,
Robert
George
Telerik team
 answered on 03 Oct 2008
8 answers
347 views

I have a RadGrid with an associated RadContextMenu. When I right-click a row on the grid and click one of the context menu items I need to get at the selected row in the context menu's event handlers. However, I found that the SelectedItems collection is empty.

I was able to work around this by adding an OnRowContextMenu handler, with code like this:

function Grid_OnRowContextMenu(sender, args)
{
    var index = args.get_itemIndexHierarchical();
    var row = sender.MasterTableView.get_dataItems()[index];
    row.set_selected();
}

This partially works, but it seems like there should be an easier way to do this. For one, it doesn't deselect other selected rows. Right now I have to add this client-side handler to every single one of my grids. It seems like there should be some sort of property on the grid that enables row selection on right click.

One other problem I have is that I do not want the context menu to show when the grid has no rows. With the old RadGrid I was able to check the row's ItemType property. If it was "NoRecordsItem", I would not show the context menu.

Rosen
Telerik team
 answered on 03 Oct 2008
1 answer
318 views
Hi,

I am using Rad combo box , i want to know how I can reduce the spacing between items in dropdownlist. Any help appreciated.
Regards,
Jincy
Yana
Telerik team
 answered on 03 Oct 2008
3 answers
272 views
URL:
http://www.alchemedia.com.my/inpageedit.aspx


1. I have an editor in this page with display:none by default.
2. When user click on the content, the editor will be displayed.
3. When user click on outside, the editor should be hidden by using blur event.

However, the blur event is not working if the editor textarea is not focused.

I tried to use the code below but not working:

var editor = GetRadEditor("<%=RadContent.ClientID%>");  
editor.SetFocus();  


Am I missing something? Thanks



Rumen
Telerik team
 answered on 03 Oct 2008
1 answer
264 views
Hi,
 I am using tabstrip with vista skin and it is 2 level tabstrip. I want to make the selected tab's text to be bold.  And I want to make the whole second level tabs to be grey and and other tabs white with grey border.Like the menu in http://www.abb.com/ProductGuide/Alphabetical.aspx. Any help appreciated.

Regards,
Jincy
Yana
Telerik team
 answered on 03 Oct 2008
3 answers
240 views
Hi,

I have set

HTML
{
      overflow-x:hidden;
      overflow-y:hidden
}

to delete the scrollbars for RadWindow.
Now the problem is that RadEditor inside a RadWindow do not have a scrollbar in the editor area.

What´s the correct way to get both working?

Thanks and enjoy,
Chris
Martin
Telerik team
 answered on 03 Oct 2008
4 answers
112 views
I have some data that I am displaying in a child detail grid.  The data in one column is encrypted in the database.  I need to decrypt the data using a method in my code for display in the grid.  How can I accomplish this?
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?