Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
196 views
Hi,

I've got a problem with the ClientEvents-OnFocus of RadTextBox.
The scenario is: 
In the RadTextBox I've a text with a ForeColor, when the user click in the textbox (ClientEvents OnFocus) a javascript function delete the text and change the ForeColor of the textbox, but when I test the page the browser notify me that there's an error in the page. The error is with the registration of the js call on the page:
 

<

 

 

telerik:RadTextBox ID="txtComuneBene" runat="server" Width="350px" AutoPostBack="true" ClientEvents-OnFocus="javascript:setControlFocus('txtComuneBene');">

 

 

 

</telerik:RadTextBox>
I also tried with :

 

<telerik:RadTextBox ID="txtComuneBene" runat="server" Width="350px" ClientEvents-OnFocus="javascript:setControlFocus('txtComuneBene');">

 

 

 

</telerik:RadTextBox>
and

 

<telerik:RadTextBox ID="txtComuneBene" runat="server" Width="350px" ClientEvents-OnFocus="setControlFocus('txtComuneBene');">

 

 

 

 

 

 

 

</telerik:RadTextBox>

and

<telerik:RadTextBox ID="txtComuneBene" runat="server" Width="350px" ClientEvents-OnFocus="setControlFocus('txtComuneBene')">

 

 

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

and finally I try with a js alert to test if I write something wrong but the result is always the same.

<telerik:RadTextBox ID="txtComuneBene" runat="server" Width="350px" ClientEvents-OnFocus="alert('test alert');">

 

 

 

</telerik:RadTextBox>

 
a js error with this message :
Message: Expected '}'

And this is the ajax registration ( the problem is the italic style text):
Sys.Application.add_init(

 

function() {

 

$create(Telerik.Web.UI.RadTextBox, {

 

"_focused":false,"_postBackEventReferenceScript":"setTimeout(\"__doPostBack(\\\u0027ctl00$MainContent$ucRichiestaServizio$txtComuneBene\\\u0027,\\\u0027\\\u0027)\", 0)","_skin":"Default","clientStateFieldID":"ctl00_MainContent_ucRichiestaServizio_txtComuneBene_ClientState","enabled":true,"styles":{HoveredStyle: ["width:350px;", "riTextBox riHover"],InvalidStyle: ["width:350px;", "riTextBox riError"],DisabledStyle: ["width:350px;", "riTextBox riDisabled"],FocusedStyle: ["width:350px;", "riTextBox riFocused"],EmptyMessageStyle: ["width:350px;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:350px;", "riTextBox riRead"],EnabledStyle: ["width:350px;", "riTextBox riEnabled"]}}, {"focus":javascript:setControlFocus('txtComuneBene');}, null, $get("ctl00_MainContent_ucRichiestaServizio_txtComuneBene"));

 

});



any ideas?

another question :

I've got a page with a RadWindowManager that shows a confirm window, if I click on the "Ok" button the page is refreshed with a complete postback, is there a way to avoid this complete postback? I register in the RadAjaxManager that the RadWindowManager has to refresh a panel inside the page with the RadAjaxLoadingPanel that I have in the page.

thanks in advance,
regards
Alessandro
Alessandro
Top achievements
Rank 1
 answered on 02 Nov 2011
5 answers
350 views
Hello Telerik team,

I am having a grid with few columns bound to it. I have set datasource for grid in code behind. Also i want to insert/update & delete in code behind.
Please refer the .aspx & .aspx.cs code page below.
ASPX Page.
<telerik:RadGrid ID="Grid_products" AllowPaging="true" PageSize="25" Skin="Vista" runat="server"  
            OnNeedDataSource="Grid_products_NeedDataSource" Width="100%" AutoGenerateColumns="false" HorizontalAlign="NotSet"  
            OnUpdateCommand="Grid_products_UpdateCommand" OnInsertCommand="Grid_products_InsertCommand" OnDeleteCommand="Grid_products_DeleteCommand"> 
                
                <PagerStyle Mode="NextPrevAndNumeric" /> 
                
                <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ProductID" EditMode ="InPlace"> 
                
                <Columns> 
                
                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit" UniqueName="EditCommandColumn"> 
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
                
                    <telerik:GridBoundColumn UniqueName="ProductName" HeaderText="Product Name" DataField="ProductName" ColumnEditorID = "Grid_ProductsTextBox_ProductName"> 
                    </telerik:GridBoundColumn> 
                     
                     
                     
                     
                    <telerik:GridBoundColumn UniqueName="RetailPrice" HeaderText="Retail Price" DataField="RetailPrice" ColumnEditorID = "Grid_ProductsTextBox_RetailPrice"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="WholesalePrice" HeaderText="WholesalePrice Name" DataField="WholesalePrice" ColumnEditorID = "Grid_ProductsTextBox_WholesalePrice"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="CustomerPrice" HeaderText="CustomerPrice Name" DataField="CustomerPrice" ColumnEditorID = "Grid_ProductsTextBox_CustomerPrice"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="Description" HeaderText="Description" DataField="Description" ColumnEditorID = "Grid_ProductsTextBox_Description"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="UsageTime" HeaderText="Usage Time" DataField="UsageTime" ColumnEditorID = "Grid_ProductsTextBox_UsageTime"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="FollowupTime" HeaderText="Followup Time" DataField="FollowupTime" ColumnEditorID = "Grid_ProductsTextBox_FollowupTime"> 
                    </telerik:GridBoundColumn> 
                     
                    <telerik:GridBoundColumn UniqueName="ReminderTime" HeaderText="Reminder Time" DataField="ReminderTime" ColumnEditorID = "Grid_ProductsTextBox_ReminderTime"> 
                    </telerik:GridBoundColumn> 
                     
                     
                     
                
                    <telerik:GridButtonColumn HeaderText="Delete" ConfirmText="Delete this product?" ConfirmDialogType="RadWindow" 
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                    UniqueName="DeleteColumn"> 
                
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                
                </telerik:GridButtonColumn> 
                 
                </Columns> 
                 
                <ExpandCollapseColumn Visible="False"> 
                    <HeaderStyle Width="10px" /> 
                </ExpandCollapseColumn> 
                 
                <RowIndicatorColumn Visible="False"> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                 
                </MasterTableView> 
                <ClientSettings> 
                    <ClientEvents OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" 
                        OnCommand="GridCommand" /> 
                </ClientSettings> 
            </telerik:RadGrid> 
            <telerik:GridTextBoxColumnEditor ID="Grid_ProductsTextBox_ProductName"  
                runat="server"/> 
                <telerik:GridTextBoxColumnEditor ID="Grid_ProductsTextBox_Description"  
                runat="server"/> 
                
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_RetailPrice" runat="server"> 
               <NumericTextBox ID="NumericTextBox1" runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="false" AllowRounding="true" DecimalDigits="2" /> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_WholesalePrice" runat="server"> 
               <NumericTextBox ID="NumericTextBox2" runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="false" AllowRounding="true" DecimalDigits="2" /> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_CustomerPrice" runat="server"> 
               <NumericTextBox runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="false" AllowRounding="true" DecimalDigits="2" /> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 
                
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_UsageTime" runat="server"> 
               <NumericTextBox ID="NumericTextBox3" runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="true" AllowRounding="false"/> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_FollowupTime" runat="server"> 
               <NumericTextBox ID="NumericTextBox4" runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="true" AllowRounding="false"/> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 
               <telerik:GridNumericColumnEditor ID="Grid_ProductsTextBox_ReminderTime" runat="server"> 
               <NumericTextBox ID="NumericTextBox5" runat="server" Type="Number"> 
               <NumberFormat KeepNotRoundedValue="true" AllowRounding="false"/> 
               </NumericTextBox> 
               </telerik:GridNumericColumnEditor> 


ASPX.CS page

 #region Products Grid 
 
    protected void Grid_products_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        Grid_products.DataSource = GetDataTable(); 
    } 
    //string connectionString = WebConfigurationManager.ConnectionStrings["SchedulerConnectionString"].ConnectionString; 
    private DataTable GetDataTable() 
    { 
        DataTable datatable; 
        if (txt_productsearch.Text.Trim() != "") 
        { 
            string selectSQL = "SELECT [ProductID], [ProductName], [RetailPrice], [WholesalePrice], [CustomerPrice], [Description],[UsageTime],[FollowupTime],[ReminderTime] FROM [Products] where ProductName LIKE '%" + txt_productsearch.Text + "%'  and AdminID =1"; 
            //string selectSQL = "SELECT ProductID,ProductName FROM [Products] Where ProductName LIKE '%" + txt_productsearch.Text + "%'  and AdminID =1"; 
            SqlConnection con = new SqlConnection(connectionString); 
            SqlCommand cmd = new SqlCommand(selectSQL, con); 
            //SqlDataReader reader; 
            SqlDataAdapter da = new SqlDataAdapter(selectSQL, connectionString); 
            datatable = new DataTable(); 
            //da.Fill(datatable); 
 
            //OleDbConnection connection1 = new OleDbConnection(); 
            //OleDbDataAdapter adapter1 = new OleDbDataAdapter(); 
            //adapter1.SelectCommand = new OleDbCommand(query, connection1); 
            //DataTable table1 = new DataTable(); 
            //connection1.Open(); 
            try 
            { 
                //adapter1.Fill(table1); 
                da.Fill(datatable); 
            } 
            finally 
            { 
                //connection1.Close(); 
            } 
 
        } 
        else 
        { 
            string selectSQL = "SELECT [ProductID], [ProductName], [RetailPrice], [WholesalePrice], [CustomerPrice], [Description],[UsageTime],[FollowupTime],[ReminderTime] FROM [Products] Where ProductName= ' ' and AdminID =1"; 
            SqlConnection con = new SqlConnection(connectionString); 
            SqlCommand cmd = new SqlCommand(selectSQL, con); 
            //SqlDataReader reader; 
            SqlDataAdapter da = new SqlDataAdapter(selectSQL, connectionString); 
            datatable = new DataTable(); 
            da.Fill(datatable); 
 
        } 
        return datatable; 
    } 
    protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) 
    { 
        if (e.Argument.IndexOf("FilterGrid") != -1) 
        { 
            Grid_products.Rebind(); 
        } 
    } 
    protected void Grid_products_InsertCommand(object source, GridCommandEventArgs e) 
    { 
        GridEditableItem editedItem = e.Item as GridEditableItem; 
        //(editedItem.EditManager.GetColumnEditor("") as GridNumericColumnEditor). 
        //GridTextBoxColumnEditor itemupdate = e.Item.DataItem as GridTextBoxColumnEditor; 
        //Get the primary key value using the DataKeyValue. 
        //int ProductID = Convert.ToInt32(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ProductID"].ToString()); 
        string ProductName = (editedItem.EditManager.GetColumnEditor("ProductName") as GridTextBoxColumnEditor).Text; 
        string RetailPrice = (editedItem.EditManager.GetColumnEditor("RetailPrice") as GridNumericColumnEditor).Text; 
        string WholesalePrice = (editedItem.EditManager.GetColumnEditor("WholesalePrice") as GridNumericColumnEditor).Text; 
        string CustomerPrice = (editedItem.EditManager.GetColumnEditor("CustomerPrice") as GridNumericColumnEditor).Text; 
        string Description = (editedItem.EditManager.GetColumnEditor("Description") as GridTextBoxColumnEditor).Text; 
        string UsageTime = (editedItem.EditManager.GetColumnEditor("UsageTime") as GridNumericColumnEditor).Text; 
        string FollowupTime = (editedItem.EditManager.GetColumnEditor("FollowupTime") as GridNumericColumnEditor).Text; 
        string ReminderTime = (editedItem.EditManager.GetColumnEditor("ReminderTime") as GridNumericColumnEditor).Text; 
        //string RetailPrice = (editedItem.EditManager.GetColumnEditor("RetailPrice") as GridNumericColumnEditor).Text; 
         
        //string FirstName = (itemupdate.FindControl("Grid_contactsTextBox_FirstName") as GridTextBoxColumnEditor).Text; 
        string InsertSQL = "Insert into Products(ProductName,RetailPrice,WholesalePrice,CustomerPrice,Description,UsageTime,FollowupTime,ReminderTime,AdminID) Values('" + ProductName +","+ Convert.ToInt32(RetailPrice) + "," + Convert.ToInt32(WholesalePrice) + "," + Convert.ToInt32(CustomerPrice) + "," + Description + "," + Convert.ToInt32(UsageTime) + "," + Convert.ToInt32(FollowupTime) + "," + Convert.ToInt32(ReminderTime) + "',1)"; 
        SqlConnection con = new SqlConnection(connectionString); 
        SqlCommand cmd = new SqlCommand(InsertSQL, con); 
        int flag; 
        try 
        { 
            con.Open(); 
            flag = cmd.ExecuteNonQuery(); 
        } 
        catch (Exception Error) 
        { 
 
        } 
        finally 
        { 
            con.Close(); 
        } 
 
    } 
    protected void Grid_products_DeleteCommand(object source, GridCommandEventArgs e) 
    { 
 
    } 
    protected void Grid_products_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
        GridEditableItem editedItem = e.Item as GridEditableItem; 
        //GridTextBoxColumnEditor itemupdate = e.Item.DataItem as GridTextBoxColumnEditor; 
        //Get the primary key value using the DataKeyValue. 
        int ProductID = Convert.ToInt32(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ProductID"].ToString()); 
        string ProductName = (editedItem.EditManager.GetColumnEditor("ProductName") as GridTextBoxColumnEditor).Text; 
        //string FirstName = (itemupdate.FindControl("Grid_contactsTextBox_FirstName") as GridTextBoxColumnEditor).Text; 
        string UpdateSQL = "Update Products set ProductName='" + ProductName + "' where ProductID =" + ProductID + "  where AdminID =1"; 
        SqlConnection con = new SqlConnection(connectionString); 
        SqlCommand cmd = new SqlCommand(UpdateSQL, con); 
        int flag; 
        try 
        { 
            con.Open(); 
            flag = cmd.ExecuteNonQuery(); 
        } 
        catch (Exception Error) 
        { 
 
        } 
        finally 
        { 
            con.Close(); 
        } 
    } 
    #endregion 



My problem is that:
1)  I am not able to insert any new record. when i click on add new record it goes to "Grid_products_InsertCommand" event. There it takes the value of "ProductName" but when it try to execute for getting "RetailPrice" it throws an exception "Object reference not set to an instance of an object.". Its just taking "ProductName" and for rest of them its showing the same exception. I dont know what the problem is with it.

2) I am not able to validate these text boxes used in grid for insert/update. There are 2 types of GridColumnEditor that i hav used. they are
a) Textbox.
b) Numeric.
It would be helpful if i could have a sample application that validates both.
Please help me as soon as possible.
Its kind of very urgent.


Thank You,
Chinmay Sharma.
Sebastian
Telerik team
 answered on 02 Nov 2011
3 answers
239 views
Hello smart minds of the Telerik forums,

I'm trying to put together something like a "timeline" graph which shows phases of a project versus the actual dates certain items occurred. What I was thinking was:

1) A horizontal stacked bar graph (which could indicate the phases)
2) Point-type dots along the graph that would indicate the individual dates that things occurred.

Anyone have a better idea? I haven't tried to flesh it out yet, but I will shortly. Just wanted to see if anyone had tried something like this before and had issues? or am I going about it the completely wrong way?

Thanks! 
Kori
Ves
Telerik team
 answered on 02 Nov 2011
1 answer
159 views
Hi

I cant find the reason why the chart display's X (no image) on the server but works fine on my localhost : view attachements.

Yes in is registered in the web.config for IIS 6 and 7

I have full trust : <trust level="Full" />

I have just added 2 new images calling the file directly with the url

Thanks

Mike
Ves
Telerik team
 answered on 02 Nov 2011
1 answer
240 views
Hi,

I am binding a ASP.NET AJAX RADGrid to a dynamic datatable that is part of a dataset. The datatable is filled by a Stored Procedure. The returned datatable column names, column data types, and the number of columns is unknown until run time. So, essentially the grid has no idea what to expect. The Stored Porcedure takes an ID and a date range as parameters. The column headers are survey questions and the rows contain the answers. The survey questions vary from survey to survey, thus the column name, number, and data type are unknown.
 
The grid loads fine but all the column Filter Option Menus do not show up. My first test brought back 5 columns and only the last column had a filter menu. My next test for another survey brought back 25 columns and the first two and last column had a filter menu while the rest did not.

I tried testing the grid with a known data structure and the filter menus showed up as they should, so, I am guessing that the problem has something to do with my dynamic datatable. I have tried a number of grid settings and configurations but nothing works. Among other things, I have tried adding the columns programmatically and setting the column datatype to string - didn't work.

I am working with the most recent version of the Telerik ASP.NET AJAX Controls. I just did the download and install today.

Please help me figure out how to get all the Filter Menus to show,

Eric

My most recent code is below:

protected void Page_Load(object sender, EventArgs e)
        {
            DateTime start = new DateTime(2009, 10, 1, 0, 0, 0);
            DateTime end = new DateTime(2012, 10, 1, 0, 0, 0);
            BusinessObject.Objects.Survey svy = new BusinessObject.Objects.Survey();
            DataSet ds = new DataSet();
            ds = BusinessObject.Objects.Survey.GetSurveyDetailsBySurveyId("233", start, end);
            RadGrid1.MasterTableView.DataSource = ds.Tables[0];
        }


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test2.aspx.cs" Inherits="MoZeus.Report.Web.WebRole.ReportViewer.test2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>kjggkgjh</title>
 
</head>
<body>
    <form id="form1" runat="server">
     <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
        
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
     <div class="dvGrid" id="dvGrid" style="width:1000px">
     <telerik:RadGrid ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" AllowSorting="True" AllowPaging="True" PageSize="20"
                    runat="server" Width="1000px" Height="600px" AllowFilteringByColumn="True"
                   AutoGenerateColumns="true" ShowStatusBar="true" Skin="Black" 
                    AllowAutomaticUpdates="true" AllowAutomaticInserts="true" ShowHeader="true"
                    OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender"
                    AllowMultiRowEdit="true" HeaderStyle-HorizontalAlign="Center"
                    EnableAjaxSkinRendering="true" ShowHeadersWhenNoRecords="true"
                      EnableNoRecordsTemplate="true" OnItemCommand="RadGrid1_ItemCommand"  ShowFooter="true"  EnableLinqExpressions="false">
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                    </HeaderContextMenu>                   
                    <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom"></PagerStyle>
                    <MasterTableView EditMode="InPlace" ShowFooter="true" AutoGenerateColumns="true" 
                    CommandItemDisplay="TopAndBottom" EnableNoRecordsTemplate="true" GridLines="None"  AllowFilteringByColumn="true">
                     <NoRecordsTemplate>No records found.</NoRecordsTemplate>
                        <CommandItemTemplate>
                            <div style="padding: 5px 5px;text-align:right;">
                                <asp:LinkButton ID="btnRebind" runat="server" CommandName="RebindGrid">
                                <img style="border:0px;vertical-align:middle;" alt="" src="img/Refresh.gif" />Refresh</asp:LinkButton>
                            </div>
                        </CommandItemTemplate>
                        <Columns>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
        </div>    
         
        </telerik:RadAjaxPanel>
    </form>
</body>
</html>

Eric
Top achievements
Rank 1
 answered on 02 Nov 2011
1 answer
94 views
Hey folks, 

When I scroll down a page displayed as rich text in the radeditor using the mouse wheel, or by sliding the editor's scrollbar towards the bottom of the page, phantom line droppings appear over the text that scrolls up from the bottom of the editor's frame.  More precisely, numerous light grey 1pt thick horizontal lines are drawn across the text set at random intervals ranging from a few points to a couple of text lines apart.  As soon as I move the windows mouse pointer to outside of the radeditor's control boundaries, the lines disappear.  I've seen this behavior in other sites that use the telerik radeditor such as the forums in http://devhub.author-it.com/

As a user trying to key text into the control, I find this behavior most annoying because it obliterates the readability of almost everything being displayed, rendering the point of having such an editor available in the first place as being useless.  I have to spend time haphazardly scrolling the text up and down until I can get a clean display in which I can find the location of what I want to edit OR review.

As a developer, I'ld like to find a way to prevent these lines from ever appearing.  What's causing this problem and how can it be fixed?  It doesn't seem to happen when the editor is working with plain text.

I'm using Telerik RAD controls 2011.2.915.35 in visual studio C# build 91605-270-2201135-60151 and am viewing this on Internet Explorer 9  (9.0.8112.16421 with update version 9.0.3) on windows 7 SP1

this is some text
to scroll down on
so you can see the
phenomena happen
here as it seems
this is also a radeditor
telerik control
Rumen
Telerik team
 answered on 02 Nov 2011
6 answers
535 views
Hello everyone,

What is the easiest way to add/edit/delete records from a rad grid?
I tried to look for online tutorials but there are none, the one I found is in VB but I need it in C#.
I tried checking the videos but they wouldn't load even though I have a good connection.

If you can guide me step by step, I'll be appreciated.

Thanks.
Elliott
Top achievements
Rank 2
 answered on 02 Nov 2011
1 answer
116 views
Hi all,

Is it possible to have a RadTreeView Context Menu that as an horizontal orientation instead of a vertical one? And can I set it to have just images with no text?

Tks,
Bruno.
Plamen
Telerik team
 answered on 02 Nov 2011
3 answers
102 views
Hi All,

I am trying to implemenent login function following the Tooltip/server side properties/Modality demo example. 

The probelm is that it is not working when I use masterpage. either put the everything in the masterpage or put in the content page, nothing will happen when click the button to show the login form.

Please help

TIA 

Jerry
 
Fraser
Top achievements
Rank 1
 answered on 02 Nov 2011
2 answers
142 views
I've a problem with Tab.
I attach
- How see in in IE .
-How see in FF.

I need see in IE such as FF.

This is my code:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadAjaxPanel ID="RadJax1" runat="server" Width="100%" Height="100%">
        <div class="headerPage">
            <asp:Label ID="lblTitle" runat="server"></asp:Label>
        </div>
        <div class="containerSub">
            <div class="TabSubContainer">
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Vista" MultiPageID="RadMultiPage1"
                    SelectedIndex="0" CssClass="tabStripOrg" Width="100%">
                    <Tabs>
                        <telerik:RadTab Value="Information">
                        </telerik:RadTab>
                        <telerik:RadTab Value="Emails">
                        </telerik:RadTab>
                        <telerik:RadTab Value="Settings">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <div style="width: 100%; margin-left: 30%; top: 8%">
                    <asp:Label ID="lblValidationText" Style="margin-bottom: 50px" CssClass="validator"
                        runat="server" Font-Italic="true"></asp:Label></div>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPageOrg">
                    <telerik:RadPageView ID="RadPageViewInformation" runat="server" Width="100%">
                        <div class="TabTitleOrganization">
                            <asp:Label ID="lblTitleTab1" runat="server"></asp:Label>
                        </div>
                        <div class="BodyContainter">
                            <asp:Table ID="Table3" CssClass="organizationTable" runat="server">
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblName" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL">
                                            <asp:TextBox ID="txtName" MaxLength="250" CssClass="TextBoxPopUp" runat="server">
                                            </asp:TextBox><asp:RequiredFieldValidator ID="rfName" runat="server" ErrorMessage="*"
                                                ControlToValidate="txtName" CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                            <asp:Label runat="server" CssClass="fontLabel" ID="lblAddress" /></asp:TableCell><asp:TableCell
                                                CssClass="CellTextBoxR">
                                                <asp:TextBox ID="txtAddress" MaxLength="250" CssClass="TextBoxPopUp" runat="server" />
                                            </asp:TableCell></asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblDescription" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL" ColumnSpan="3">
                                            <asp:TextBox ID="txtDescription" TextMode="MultiLine" MaxLength="250" runat="server"
                                                CssClass="TextBoxPopUpDescription" />
                                        </asp:TableCell></asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblPhone1" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL">
                                            <telerik:RadMaskedTextBox ID="txtPhone" runat="server" MaxLength="250" CssClass="TextBoxPopUp"
                                                Mask="(###) ###-####-####" DisplayMask="(###) ###-####-####">
                                            </telerik:RadMaskedTextBox>
                                        </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                            <asp:Label runat="server" ID="lblPhone2" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                CssClass="CellTextBoxR">
                                                <telerik:RadMaskedTextBox ID="txtPhone2" runat="server" MaxLength="250" CssClass="TextBoxPopUp"
                                                    Mask="(###) ###-####-####" DisplayMask="(###) ###-####-####">
                                                </telerik:RadMaskedTextBox>
                                            </asp:TableCell></asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblState" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL">
                                            <asp:TextBox ID="txtState" MaxLength="250" CssClass="TextBoxPopUp" runat="server" />
                                        </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                            <asp:Label runat="server" ID="lblCity" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                CssClass="CellTextBoxR">
                                                <asp:TextBox ID="txtCity" MaxLength="250" CssClass="TextBoxPopUp" runat="server" />
                                            </asp:TableCell></asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblCodePost" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL">
                                            <telerik:RadMaskedTextBox ID="txtCodePost" runat="server" MaxLength="250" CssClass="TextBoxPopUp"
                                                Mask="#####" DisplayMask="#####">
                                            </telerik:RadMaskedTextBox>
                                        </asp:TableCell><asp:TableCell CssClass="CellLabelL">
                                            <asp:Label runat="server" ID="lblHome" CssClass="fontLabel" /></asp:TableCell>
                                    <asp:TableCell CssClass="CellTextBoxL">
                                        <asp:TextBox ID="txtHome" MaxLength="250" CssClass="TextBoxPopUp" runat="server" />
                                        <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtHome" runat="server"
                                            CssClass="validator"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ControlToValidate="txtHome" Display="Dynamic" runat="server"
                                            ID="reURL" CssClass="validator" ValidationExpression="(((https?||http):((//)|(\\\\)))?[\w\d:#@%/;$()~_?\+-=\\\.&]*)"></asp:RegularExpressionValidator></asp:TableCell></asp:TableRow>
                            </asp:Table>
                        </div>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageEmailSetting" runat="server" Width="100%">
                        <div class="TabTitleOrganization">
                            <asp:Label ID="lblTitleTab2" runat="server"></asp:Label></div>
                        <div class="BodyContainter">
                            <div id="CommonEmails_DIV" runat="server">
                                <asp:Panel ID="CommonEmails" runat="server" Direction="LeftToRight" CssClass="pnlEmail">
                                    <asp:Table ID="Table2" CssClass="organizationTable" runat="server">
                                        <asp:TableRow>
                                            <asp:TableCell CssClass="CellLabelL">
                                                <asp:Label runat="server" ID="lblItPort" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                    CssClass="CellTextBoxL">
                                                    <asp:TextBox ID="txtItPort" MaxLength="250" CssClass="TextBoxPopUp" runat="server">
                                                    </asp:TextBox><asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="txtItPort"
                                                        CssClass="validator" Display="Dynamic" />
                                                </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                                    <asp:Label runat="server" CssClass="fontLabel" ID="lblItServer" /></asp:TableCell><asp:TableCell
                                                        CssClass="CellTextBoxR">
                                                        <asp:TextBox ID="txtItServer" MaxLength="250" CssClass="TextBoxPopUp" runat="server" /><asp:RequiredFieldValidator
                                                            runat="server" ErrorMessage="*" ControlToValidate="txtItServer" CssClass="validator"
                                                            Display="Dynamic" />
                                                    </asp:TableCell></asp:TableRow>
                                        <asp:TableRow>
                                            <asp:TableCell CssClass="CellLabelL">
                                                <asp:Label runat="server" ID="lblServerPassword" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                    CssClass="CellTextBoxL">
                                                    <asp:TextBox ID="txItServerPassword" MaxLength="250" CssClass="TextBoxPopUp" runat="server">
                                                    </asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                        ErrorMessage="*" ControlToValidate="txtItPort" CssClass="validator" Display="Dynamic" />
                                                </asp:TableCell><asp:TableCell CssClass="CellLabelR">
                                                    <asp:Label runat="server" CssClass="fontLabel" ID="Label2" /></asp:TableCell><asp:TableCell
                                                        CssClass="CellTextBoxR">
                                                
                                                    </asp:TableCell></asp:TableRow>
                                        <asp:TableRow>
                                            <asp:TableCell CssClass="CellLabelL">
                                                <asp:Label runat="server" ID="lblSsl" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                    CssClass="CellTextBoxL">
                                                    <asp:DropDownList ID="ddlSSL" runat="server">
                                                    </asp:DropDownList>
                                                </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                                </asp:TableCell><asp:TableCell CssClass="CellTextBoxR">
                                                   
                                         
                                                </asp:TableCell></asp:TableRow>
                                        <asp:TableRow>
                                            <asp:TableCell CssClass="CellLabelL">
                                                <asp:Label runat="server" ID="lblSendEmail" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                    CssClass="CellTextBoxL">
                                                    <asp:DropDownList ID="ddlSendEmail" runat="server">
                                                    </asp:DropDownList>
                                                </asp:TableCell><asp:TableCell CssClass="CellLabelRTW">
                                                    <asp:Label runat="server" CssClass="fontLabel" ID="lblisHtml" /></asp:TableCell><asp:TableCell
                                                        CssClass="CellTextBoxR">
                                                        <asp:DropDownList ID="ddlIsHTML" runat="server">
                                                        </asp:DropDownList>
                                                    </asp:TableCell></asp:TableRow>
                                    </asp:Table>
                                </asp:Panel>
                            </div>
                            <div id="SettingbyAreas_DIV" runat="server">
                                <asp:Panel ID="SettingbyAreas" runat="server" CssClass="pnlEmail">
                                    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%">
                                        <Items>
                                            <telerik:RadPanelItem Expanded="True" Value="RadPanelIT" runat="server" Selected="true"
                                                Width="100%">
                                                <Items>
                                                    <telerik:RadPanelItem Value="IT" runat="server">
                                                        <ItemTemplate>
                                                            <asp:Table CssClass="organizationTable" runat="server">
                                                                <asp:TableRow>
                                                                    <asp:TableCell CssClass="CellLabelL">
                                                                        <asp:Label runat="server" ID="lblITFromAddress" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                                                            CssClass="CellTextBoxL">
                                                                            <asp:TextBox ID="txtITFromAddress" MaxLength="250" CssClass="TextBoxPopUp" runat="server">
                                                                            </asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                                                                ErrorMessage="*" ControlToValidate="txtITFromAddress" CssClass="validator" Display="Dynamic" />
                                                                            <asp:RegularExpressionValidator ControlToValidate="txtItFromAddress" CssClass="validator" ID="reITFromAddress"
                                                                                Display="Dynamic" ValidationExpression="^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$"  runat="server"></asp:RegularExpressionValidator>
                                                                        </asp:TableCell><asp:TableCell CssClass="CellLabelR">
                                                                            <asp:Label runat="server" CssClass="fontLabel" ID="lblITFromName" /></asp:TableCell><asp:TableCell
                                                                                CssClass="CellTextBoxR">
                                                                                <asp:TextBox ID="txtItFromName" MaxLength="250" CssClass="TextBoxPopUp" runat="server" /><asp:RequiredFieldValidator
                                                                                    ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtItFromName"
                                                                                    CssClass="validator" Display="Dynamic" />
                                                                            </asp:TableCell></asp:TableRow>
                                                            </asp:Table>
                                                        </ItemTemplate>
                                                    </telerik:RadPanelItem>
                                                </Items>
                                            </telerik:RadPanelItem>
                                        </Items>
                                    </telerik:RadPanelBar>
                                </asp:Panel>
                            </div>
                            <%-- <div style="width: 100%; text-align: left">
                            <asp:ImageButton ID="btnAddEmail" runat="server" ImageUrl="~/UI/Images/add.png">
                            </asp:ImageButton><asp:Label ID="lblAdd" runat="server"></asp:Label></div>--%>
                        </div>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView1" runat="server" Width="680px">
                        <div class="TabTitleOrganization">
                            <asp:Label ID="lblTitleTab3" runat="server"></asp:Label></div>
                        <div class="BodyContainter">
                            <asp:Table CssClass="organizationTable" runat="server">
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblCulture" CssClass="fontLabel" /></asp:TableCell><asp:TableCell
                                            CssClass="CellTextBoxL">
                                            <telerik:RadComboBox ID="cblenguages" runat="server">
                                                <Items>
                                                    <telerik:RadComboBoxItem Value="en-US" Text="United States - English" ImageUrl="../Images/Flags/en-US.png" />
                                                    
                                                </Items>
                                            </telerik:RadComboBox>
                                        </asp:TableCell>
                                    <asp:TableCell CssClass="CellLabelRTW">
                                        <asp:Label runat="server" CssClass="fontLabel" ID="lblExpireDays" /></asp:TableCell>
                                    <asp:TableCell CssClass="CellTextBoxR">
                                        <asp:TextBox ID="txtExpireDays" MaxLength="250" CssClass="TextBoxPopUp" runat="server" /><asp:RequiredFieldValidator
                                            ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ControlToValidate="txtExpireDays"
                                            CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </asp:TableCell></asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell CssClass="CellLabelL">
                                        <asp:Label runat="server" ID="lblLogo" CssClass="fontLabel" /></asp:TableCell>
                                    <asp:TableCell CssClass="CellTextBoxL">
                                        <%--    <asp:FileUpload   ID="FileUpload1" runat="server"  />
                                       <asp:CustomValidator ControlToValidate="FileUpload1" runat="server" Display="Dynamic"
                                                                         Id="cvFile"   CssClass="validator" OnServerValidate="cvFile_ServerValidate">
                                       ></asp:CustomValidator>--%>
                                        <telerik:RadUpload runat="server" ID="radUpload" MaxFileInputsCount="1" OverwriteExistingFiles="true"
                                            MaxFileSize="1000000" ControlObjectsVisibility="None">
                                        </telerik:RadUpload>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="CellLabelR" ColumnSpan="2">
                                        <asp:Label CssClass="fontLabel" ID="lblUpload" runat="server"></asp:Label></asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </div>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </div>
        </div>
        <div class="footerSaveOrg">
            <asp:Table ID="Table5" runat="server" Width="100%" HorizontalAlign="Right">
                <asp:TableRow>
                    <asp:TableCell HorizontalAlign="center">
                        <telerik:RadButton ID="btnSave" runat="server" Skin="Vista" Width="100px" OnClick="btnSave_OnClick" />
                        <telerik:RadButton ID="btnCancel" runat="server" Skin="Vista" Width="100px" CausesValidation="False"
                            ToolTip="Cancel" CommandName="Cancel">
                        </telerik:RadButton>
                    </asp:TableCell></asp:TableRow>
            </asp:Table>
        </div>
    </telerik:RadAjaxPanel>
    <UC:Notification ID="Notification" runat="server" />
</asp:Content>


CSS:
.TabSubContainer{ margin-top:6px; margin-left:5px; position:relative; height:50%; width:100%}
 
 .BodyContainter{width:100%; height:100%;  margin-top:5px; margin-left:5px}
 
 .organizationTable{width:100%; max-width:760px; height:50%; }
 
 .TabTitleOrganization
{       
    height:4%;    
    text-align:center;  
    background-color: #C1E3F7;   
    font-Family:inherit;
    font-weight:bolder;           
    font-size: 11px;    
    position:static;
    color:#555555;    
    width:100%;     
    max-width:760px;
    margin-left:0%;
    margin-top:0%

}


.multiPageOrg
{
    position:absolute;
    top:45px;
    color: white;
    text-align:left;
    width: 100%;
    max-width:100%;
    max-width:760px;
    height: 100%;      
}

.tabStripOrg
{
   position:absolute;
   top:2%;
   width:100%;  
   max-width:760px;
   text-align:left;
      
}


.pnlEmail
{
 width:100%;
 font-family: inherit;
 font-size:10px;
 font-weight:bolder;
 color:Black;
 }
 
 .TextBoxPopUpSignature
{
    max-width:250px;
    min-width:250px;
    font-family:Arial;
     font-size:10px;
     max-height:50px;
     min-height: 50px
}

 .TextBoxPopUpDescription
{
    max-width:500px;
    min-width:500px;
    font-family:Arial;
    font-size:10px;
    max-height:120px;
    min-height: 120px
}

 
.footerSaveOrg
{
      
    margin-bottom:0%;
   
    width: 100%;   
    bottom:0%;  
    position:static;
    background-color:#115678 ;
    height:30px;    
    
}
July
Top achievements
Rank 2
 answered on 02 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?