Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
I had a RadMenu on the page and other controls that were working just fine.  I added a RadGrid and it started hosing things up.

It overlaps the other controls to start with, but I spaced it out some more and that appears to be ok, although I need to test some more with different screen configurations.  But there is a positioning issue there.

The other issue was regarding an interaction with the menu.  When the page first loaded, the menu looked fine.  After I selected a row in the grid however, the contents of the two top level menu items that had children were duplicated 10 more times in each one.  I checked, and the post back was occurring just once for the row selection, and it was properly marked as a post back.

I wasn't tying the grid to the menu in any way.  However, on a hunch, I set the FilterMenu Enabled property to False on the grid.  This seems to have remedied the problem, although I don't know why it would automatically be doing anything with that menu.
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2011
1 answer
152 views
I have  RadGrid that has multiple headers. I use GridTemplateColumns to get this effect. I want to colorize a certain row in this header. When I set that row's background color what happens is that just the text cell gets the color and not the entire row cell. Please see attached for desired effect. The inner table won't accept the color right.
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2011
1 answer
81 views
Hi,

I'm following the example for Insert/Update/Delete at database level with queries
http://www.telerik.com/help/aspnet/grid/grdinsertupdatedeleteatdatabaselevel.html

during the insert section, I received the following error:
Unable to cast object of type 'Telerik.Web.UI.GridDataInsertItem' to type 'Telerik.Web.UI.GridEditFormInsertItem'.

the following contains my code behind.

protected

 

 

void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)

{

try

{

//Get the GridEditFormInsertItem of the RadGrid

GridEditFormInsertItem insertedItem = (GridEditFormInsertItem)e.Item;

RadComboBox RadCombobox = insertedItem.FindControl("RadComboBoxArea") as RadComboBox;

string strArea = RadCombobox.SelectedItem.Text; //Area

 RadCombobox = insertedItem.FindControl(

 

 

"RadComboBoxFMT") as RadComboBox

string strFMT = RadCombobox.SelectedItem.Text; //FMT or Asset

RadCombobox = insertedItem.FindControl( 

"RadComboBoxField") as RadComboBox

string strField = RadCombobox.SelectedItem.Text; //Field

 RadCombobox = insertedItem.FindControl(

 

 

"RadComboBoxWell") as RadComboBox;  

string strWell = RadCombobox.SelectedItem.Text; //Well 

RadCombobox = insertedItem.FindControl( 

"RadComboBoxUnloadType") as RadComboBox;  

string strUnloadType = RadCombobox.SelectedItem.Text; //Unload Type  

 

RadDatePicker EventStartDateTime = (RadDatePicker)insertedItem["EventStartDateTime"].Controls[0]; //Events start date time  

 

string strEventStartDateTime = EventStartDateTime.SelectedDate.ToString();  

RadDatePicker EventEndDateTime = (RadDatePicker)insertedItem["EventEndDateTime"].Controls[0]; //Events end date time

string strEventEndDateTime = EventEndDateTime.SelectedDate.ToString();

string CountofEvents = (insertedItem["CountofEvents"].Controls[0] as RadNumericTextBox).Text; //Count of Events

string SalesLinePressure = (insertedItem["SalesLinePressure"].Controls[0] as RadNumericTextBox).Text; //Sales Line Pressure

string ShutInPressure = (insertedItem["ShutInPressure"].Controls[0] as RadNumericTextBox).Text; //Shut In Pressure

string FOpHierarchyID = (insertedItem["FOpHierarchy_ID"].Controls[0] as TextBox).Text; //FOpHierarchy

 }

 

catch (Exception ex)

 {

RadGrid1.Controls.Add( 

new LiteralControl("Unable to insert Event. Reason: " + ex.Message));

 

e.Canceled =

 

true;

 

}

}

Please assist.
thanks,
Minh Bui

Shinu
Top achievements
Rank 2
 answered on 09 Aug 2011
1 answer
79 views
I am having a problem with autocomplete functionality of the RadComboBox when the combobox receives focus by tabbing into it. Everything works fine if you click into the combobox to give it focus. I was able to reproduce this problem using the following autocomplete demo:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

First, unselect the Allow custom text option button. If you then click on the Autocomplete Separator combobox and hit TAB to send focus to the main combobox and type the letter 'a', nothing happens. When you type any other letter, for example 'z', the first 'a' entry is selected, in this case 'alejandra@telerik.com'.

I reproduced using IE 8. I have not looked into other browsers.

We have several forms in our application where the user will tab through and enter values. This autocomplete bug will surely be an issue for them. Thanks.

Damian Martinez
Harris Computer Systems
Thad
Top achievements
Rank 2
 answered on 08 Aug 2011
4 answers
128 views
Hi,
I build an aspx page which contains only one RadTabStrip and its RadMultiPage.

In the page_load event (in the behind code), I build dynamically the RadTabStrip and the RadMultiPage
protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string[] arguments = Session[SessionParameterName.LISTDOCTOVISU] as string[];
            for (int i = 0; i < arguments.Length; i++)
            {
                AddTab(arguments[i]);
                AddPageView(RadTabStripDocView.Tabs[i]);
            }
        }      
    }

For each value the named Session field, i create a RadTab and a PageView, like in the live demo example.
I also implemented the function AddTab and AddPageView
private void AddTab(string codeDoc)
    {
        RadTab tab = new RadTab();
        tab.Text = codeDoc;
        tab.Attributes.Add("CodeDoc", codeDoc);
        tab.Value = codeDoc;
        RadTabStripDocView.Tabs.Add(tab);
    }
 
    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = "PageView_ID_" + tab.Value;
        pageView.Attributes.Add("CodeDoc", tab.Value);
        RadMultiPageDocView.PageViews.Add(pageView);
        tab.PageViewID = pageView.ID;
    }

and the event PageViewCreate on the RadMultiPage
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        string codeDoc = e.PageView.Attributes["CodeDoc"];
        if (!string.IsNullOrEmpty(codeDoc))
        {
            string userControlName = "usercontrol/ViewerDocument.ascx";
            ViewerDocument userControl = Page.LoadControl(userControlName) as ViewerDocument;
            userControl.ID = e.PageView.ID + "_ViewerDocument";
            userControl.CodeDoc = e.PageView.Attributes["CodeDoc"];
            e.PageView.Controls.Add(userControl);
        }
    }


My user control content:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewerDocument.ascx.cs"
    Inherits="Class_iWebAsp.usercontrol.ViewerDocument" %>
<telerik:RadCodeBlock runat="server" ID="PreviewDocumentForMultiDocCodeBlock">
    <script type="text/javascript">       
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadToolBarPaging">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSplitter1" LoadingPanelID="RadAjaxLoadingPanel1"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"
    Orientation="Horizontal">
    <telerik:RadPane ID="RadPaneToolBarPaging" runat="server" Scrolling="None" Height="35px"
        Width="100%">
        <telerik:RadToolBar ID="RadToolBarPaging" runat="server" AutoPostBack="true" OnButtonClick="RadToolBarPaging_buttonClick"
            Width="100%">
            <Items>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_first.gif" Value="first">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_prev.gif" Value="prev">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton PostBack="false" Value="info">
                    <ItemTemplate>
                        <asp:Label ID="LabelInfo" runat="server" Text="Page 1/1"></asp:Label>
                    </ItemTemplate>
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_next.gif" Value="next">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/arrow_last.gif" Value="last">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true" />
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/zoom_arriere_16x.png" Value="zoommois"
                    PostBack="false">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../images_toolbar/zoom_avant_16x.png" Value="zoomplus"
                    PostBack="false">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Icons/pdf.jpg" Value="saveas" Target="_blank"
                    PostBack="false" ToolTip="Télécharger(version PDF)">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Images/saveas.gif" Value="saveasOri" Target="_blank"
                    PostBack="false" ToolTip="Télécharger(vesion original)">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton ImageUrl="../Images/print.gif" Value="print" PostBack="false"
                    Visible="false" ToolTip="Imprimer">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
    </telerik:RadPane>
    <telerik:RadPane ID="RadPanePreviewDoc" runat="server">
        qsfhklqjfqklsfqklfjqlfjqlkf
    </telerik:RadPane>
</telerik:RadSplitter>
<asp:HiddenField ID="HiddenFieldPageNumber" runat="server" Value="1" />
<asp:HiddenField ID="HiddenFieldPageTotal" runat="server" Value="1" />

So When I click on the RadToolBarButton the ajax Postback is well fired, the second times is a not an ajax postback it's a simple postback, the RadAjaxManager is not on ajaxrequest, and my usercontrols disappear.

Could you help me?
Pavlina
Telerik team
 answered on 08 Aug 2011
5 answers
240 views
Hi - my users are asking me to change the text on the buttons in the upload panel to say "Browse" instead of "Select" - on the RadUpload control this would be a <localization> setting, but this doesn't appear to be the case with the FileExplorer's upload panel - what files/settings do I need to look at to make this change?
Jon Shipman
Top achievements
Rank 1
 answered on 08 Aug 2011
6 answers
296 views
Hello everyone,
I posted few days ago about problem with radmenu: http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenu-issue-after-deploy-on-production-machine.aspx

But really rad components didn't work at all, because they couldn't to load CSS. Every request to WebResource.axd returns 404 error.
I tried all advices from there http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html. But it still doesn't work.
I use IIS 7 on production server, and telerik dll lib located in bin directory. After few hours after deploy all begin work fine, but after every update - we need to wait, so we lost too many time after every fix. Please advise, what I should to do to save this time?
blade230
Top achievements
Rank 2
 answered on 08 Aug 2011
1 answer
36 views
Hello,
is button background image remove in telerik radeditor? Attach files look please.

Thank you..
Rumen
Telerik team
 answered on 08 Aug 2011
4 answers
170 views
Hi,

Many users have asked how to remove NOT AND and NOT OR from the dropdown. I have tried an easy way and it works.

            FilterControl1.Localization.GroupOperationNotAnd = "";
            FilterControl.Localization.GroupOperationNotOr = "";

Don't use Null - it will not work.

The same way can be used to remove the operators (for example: IsEmpty and NotIsEmpty) from the dropdown.

            FilterControl1.Localization.FilterFunctionIsEmpty = "";
            FilterControl1.Localization.FilterFunctionNotIsEmpty = "";

Thanks
Bruce
July
Top achievements
Rank 2
 answered on 08 Aug 2011
4 answers
114 views
Hello Telerik team,

First of all, thank you for bringing web components, to the next level! 

I would like to ask, whether there is a way to remove some boolean operators, e.g. all except for AND, to simplify filter expression? We need to simplify end user experience, hence would like to remove unnecessary options (OR, NOT OR, NOT AND).

Thanks in advance!

Ivan
Pavlina
Telerik team
 answered on 08 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?