Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
76 views
hi

How do i achieve no push down effect on an asp.net button on IE9.

I have a piece of code when view with firefox, the search button can be clicked without the push down effect. Which is what i wanted.
But when i view it IE9, it has the push down effect when clicked which i do not want.

How do i achieve the same thing as firefox when i view it with IE9. Thanks a lot.

<td>
<div style="text-align: center">
<telerik:RadTextBox ID="RadTextBox1" runat="server" Style="border-style: solid; border-width: 8px;
border-color: #e9e5d9; font-size: medium; border-radius: 3px 0px 0px 3px; font: bold 15px/10px 'lucida sans', 'trebuchet MS', 'Tahoma';"
Height="48px" Width="470px" EmptyMessage="search here......">
</telerik:RadTextBox><asp:Button ID="btnSearch" runat="server" Style="overflow: visible; position: absolute;
border: 0px none #d83c3c; padding: 0; cursor: pointer; height: 48px; width: 110px;
font: bold 15px/0px 'lucida sans', 'trebuchet MS', 'Tahoma'; color: #fff; text-transform: uppercase;
border-radius: 0px 3px 3px 0px; background-color: #d83c3c;" Text="SEARCH" />
</div>
</td>

L
Top achievements
Rank 1
 asked on 28 Aug 2012
1 answer
338 views

I need to create some controls dynamically from code behind, and then, I need to add a JavaScript code to this control.. something like this:

 

Dim radTextbox As Telerik.Web.UI.RadTextBox

radTextbox = New Telerik.Web.UI.RadTextBox

radTextbox.TextMode = Telerik.Web.UI.InputMode.SingleLine

radTextbox.ID = drRow.item("CampoAlias")   'Name added dynamically

radTextbox.EnableViewState = False

radTextbox.Width = "200"

radTextbox.ClientEvents.OnValueChanged = "Titulo___onChange()"  'Function name added dynamically

Dim strString as string  'code will be added dynamically too

strString  = "<script type='text/javascript'>"

strString  +="        function Titulo___onChange() { alert(' Hello!!!'); }"

strString  +="</script>"

//here I have to add the javascript code to the page… how???? I don’t now!!!

// how can I be sure the postback will work very well too.


Other option I tested and It didn’t work out:

 

------------------------------------------------------------------

I need to create some controls dynamically from code behind, and then, I need to add a JavaScript code to this control.. something like this:

 

Dim radTextbox As Telerik.Web.UI.RadTextBox

radTextbox = New Telerik.Web.UI.RadTextBox

radTextbox.TextMode = Telerik.Web.UI.InputMode.SingleLine

radTextbox.ID = drRow.item("CampoAlias")   'Name added dynamically

radTextbox.EnableViewState = False

radTextbox.Width = "200"

radTextbox.ClientEvents.OnValueChanged = "Titulo___onChange()"  'Function name added dynamically

        Dim scriptText As String = ""

        scriptText = "function Titulo___onChange(){"

        scriptText += "  alert(' Hello ');  "

        scriptText += " }"

        ClientScript.RegisterClientScriptBlock(Me.GetType(), "CounterScript", scriptText, True)

 

‘The first execution work out well, but in the postback send a error: “Microsoft JScript runtime error: Object expected”

Eyup
Telerik team
 answered on 28 Aug 2012
4 answers
131 views
Hello,

I am using the example code as described on on this page, in order to provide for editing grid cells, then submitting all changed cells as a batch.  I have had to adapt this code, because my grid is created entirely in the code-behind instead of within the page markup.  However, I don't think this makes a difference to my question.

The question is, how do I detect only those columns within the grid that are not readonly?  I only have two columns in my grid that I want to allow the user to edit.  Therefore, I don't need or want all of the grid cells to have the dblclick event handler added.  I only need the event handler added to the editable cells.

I would imagine there would be some sort of technique on the client, within the RowCreated function, to determine if a column is readonly or not.

Thanks for any help!
Regards,
Steve
CarmenM
Top achievements
Rank 1
 answered on 28 Aug 2012
0 answers
35 views
 WANT ELMAH exception handling framework to work with Telerik AJAX

SO THAT unhandeled (system) exceptions get automatically logged to ELMAH table and System Error page is displayed when an such exception occurs.

Can anybody give solution for this?

Hari krishna
Top achievements
Rank 1
 asked on 28 Aug 2012
1 answer
131 views
I am decoratively creating a Spline chart and need to change the line colors:

<telerik:RadChart
           ID="RadChartModelingZones"
           runat="server"
           DataSourceID="SqlDataSourceModelingZones"
           DefaultType="Spline"
           Skin="Gray"
           ChartTitle-TextBlock-Text="Merit">
           <Appearance Corners="Round, Round, Round, Round, 7">
               <FillStyle FillType="ComplexGradient">
                   <FillSettings GradientMode="Horizontal">
                       <ComplexGradient>
                           <telerik:GradientElement Color="236, 236, 236" />
                           <telerik:GradientElement Color="248, 248, 248" Position="0.5" />
                           <telerik:GradientElement Color="236, 236, 236" Position="1" />
                       </ComplexGradient>
                   </FillSettings>
               </FillStyle>
               <Border Color="130, 130, 130" />
           </Appearance>
           <Series>
               <telerik:ChartSeries Name="Series 1" Type="Spline">
                   <Appearance>
                       <FillStyle MainColor="164, 164, 164">
                       </FillStyle>
                       <TextAppearance TextProperties-Color="51, 51, 51">
                       </TextAppearance>
                   </Appearance>
               </telerik:ChartSeries>
               <telerik:ChartSeries Name="Series 2" Type="Spline">
                   <Appearance>
                       <FillStyle MainColor="108, 108, 108">
                       </FillStyle>
                       <TextAppearance TextProperties-Color="51, 51, 51">
                       </TextAppearance>
                   </Appearance>
               </telerik:ChartSeries>
           </Series>
           <Legend>
               <Appearance Dimensions-Margins="17.6%, 3%, 1px, 1px"
                           Dimensions-Paddings="2px, 8px, 6px, 3px" Position-AlignedPosition="TopRight">
                   <ItemMarkerAppearance Figure="Square">
                       <Border Width="0" />
                   </ItemMarkerAppearance>
                   <FillStyle MainColor="">
                   </FillStyle>
                   <Border Width="0" />
               </Appearance>
           </Legend>
           <PlotArea>
               <XAxis>
                   <Appearance Color="182, 182, 182" MajorTick-Color="216, 216, 216">
                       <MajorGridLines Color="216, 216, 216" PenStyle="Solid" />
                       <TextAppearance TextProperties-Color="51, 51, 51">
                       </TextAppearance>
                   </Appearance>
                   <AxisLabel>
                       <TextBlock>
                           <Appearance TextProperties-Color="51, 51, 51">
                           </Appearance>
                       </TextBlock>
                   </AxisLabel>
               </XAxis>
               <YAxis>
                   <Appearance Color="182, 182, 182" MajorTick-Color="216, 216, 216"
                               MinorTick-Color="223, 223, 223">
                       <MajorGridLines Color="216, 216, 216" />
                       <MinorGridLines Color="223, 223, 223" />
                       <TextAppearance TextProperties-Color="51, 51, 51">
                       </TextAppearance>
                   </Appearance>
                   <AxisLabel>
                       <TextBlock>
                           <Appearance TextProperties-Color="51, 51, 51">
                           </Appearance>
                       </TextBlock>
                   </AxisLabel>
               </YAxis>
               <Appearance>
                   <FillStyle FillType="Solid" MainColor="White">
                   </FillStyle>
                   <Border Color="182, 182, 182" />
               </Appearance>
           </PlotArea>
           <ChartTitle>
               <Appearance>
                   <FillStyle MainColor="">
                   </FillStyle>
               </Appearance>
               <TextBlock>
                   <Appearance TextProperties-Color="102, 102, 102"
                               TextProperties-Font="Arial, 18pt">
                   </Appearance>
               </TextBlock>
           </ChartTitle>
       </telerik:RadChart>
 
Here is the DataSource:

<asp:SqlDataSource
    ID="SqlDataSourceModelingZones"
    runat="server"
    ConnectionString="<%$ ConnectionStrings:...%>"
    SelectCommand="GetMeritModelingZones"
    SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter
            ControlID="RadSlider"
            DefaultValue="0.00"
            Name="Merit"
            PropertyName="SelectedValue"
            Type="Decimal" />
    </SelectParameters>
</asp:SqlDataSource>

I would prefer to keep all markup in aspx as opposed to changing the line colors in the code behind if that is possible.

The attached shows the chart w/ the default colors and cannot seem to change.

Thanks,

Steve

Evgenia
Telerik team
 answered on 28 Aug 2012
4 answers
439 views
Hi
My problem with ExportToPDF is that columns is being overlapped when not wide enough to display text.
So I'm trying to use "word-wrap:break-word". It works fine at grid control and IE displays all of text.
But It doesn't work if it is exported to a PDF. It doesn't break word at all in pdf output.
In PDF output, is there any way to display all text by extending height of row?
I don't want text to be truncated.

Thanks 
Daniel
Telerik team
 answered on 28 Aug 2012
4 answers
491 views
Hello,

I want to add ComboBox to RAD Grid header columns. For e.g. I have many columns in RAD Grid and each column header will have a dropdown with items. On selecting the drop down the grid column get populated with the data related to the field column from database. Please see the attached image to get more idea on my request.

Is this possible? Please advise.

Thank you,
Asok
Asok
Top achievements
Rank 1
 answered on 28 Aug 2012
10 answers
250 views
HI

i have linkbutton with commandargments to find the selectd value  inside a Gridview which on click navigates to new page with selectd value  in Quey String whic is used in landing page to show some data,this GridView  is ajaxified using radajaxmanger.
 
we shows 100 rows grouping 10rows are a group,

in page load if we click 14th row i..e  4th row in second group its giving correct values in command arguments
after a search im showing only rows of 2nd group i..e 11 to 20 rows
now if i clik the 14th row in  command arguments its giving 4th row of  first group

two days back only we have implemented  radajaxmanger,from then we are facing this issue

Please help me




Maria Ilieva
Telerik team
 answered on 28 Aug 2012
1 answer
101 views
Dear Sir/Madam


I'm Maha From India.


Advance Thank you for Helping me


I have RadGrid1(using Mutiselect checkbox option) in my project


Problem : Label Text inside CommandItemTemplate not visible in after i click Delete(LinkButton1)
==================================================================
Inside CommandItemTemplate I have Label(lblmsg) to display some message to user for validation and DB Deleted Message


If user clicking LinkButton(LinkButton1) without seelcting any checkbox means I write validation 


That validation message will display on this lblmsg correctly


But if user select the check box and then click Delete means I want to show Confirmation message to user


Message format : Customer ID1,Customer ID2 deleted from DB succesfully


The above message will not visible in RadGrid


But If i debug means Thats Label Text Properly assigned using C#(RadGrid1_ItemCommand)


Note:
====
After execution of RadGrid1_ItemCommand() ->RadGrid1_NeedDataSource() method invoked Automatically


So My Doubt is  whether RadGrid Reassign my Label Text as Empty.


Becoz in Browser View Source <span id="RadGrid1_ctl00_ctl03_ctl01_lblmsg"></span>


Inside span my Text is not there


Code.aspx
=========
Ajax Settings
==========================================================================================
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                   
               <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    
                        <UpdatedControls>
                           
                            <telerik:AjaxUpdatedControl  ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            
                            
                        </UpdatedControls>
                     
                 </telerik:AjaxSetting>
                    
                     
                    </AjaxSettings>
            </telerik:RadAjaxManager>
             
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Skin="Default" runat="server"></telerik:RadAjaxLoadingPanel>
    
Grid Code
==========================================================================================
 <telerik:RadGrid ID="RadGrid1"  Width="100%" AllowFilteringByColumn="True"
            PageSize="12" ShowFooter="false" AllowPaging="True" runat="server"
            AutoGenerateColumns="False" GridLines="None" ShowStatusBar="false" 
            onneeddatasource="RadGrid1_NeedDataSource" AllowSorting="true" AllowMultiRowSelection="true" 
                ShowGroupPanel="false" onitemcommand="RadGrid1_ItemCommand">
              <GroupingSettings CaseSensitive="false" />
   
           <MasterTableView CommandItemDisplay="Bottom" Width="100%" AllowFilteringByColumn="true" GroupsDefaultExpanded="false">
<CommandItemTemplate>
<div style="padding-left:8px;">
<asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Jobs?')"
runat="server" Font-Size="13px" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete</asp:LinkButton>&nbsp;&nbsp;
<asp:Label ID="lblmsg" runat="server"></asp:Label>
</div>
</CommandItemTemplate>


                <Columns>
----
</Columns>


</MasterTableView>
            
   <ClientSettings EnableRowHoverStyle="true">
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
 </telerik:RadGrid>
==========================================================================================
code.cs(C#)
======
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "DeleteSelected")
            {
                GridCommandItem commandItem = e.Item as GridCommandItem;


                Label lbl = commandItem.FindControl("lblmsg") as Label;
                lbl.Text = "";
                if (RadGrid1.SelectedIndexes.Count == 0)
                {
                    lbl.Text = "Not Selected any Customer IDs";
                    lbl.ForeColor = System.Drawing.Color.Red;
                    return;
                }


                System.Text.StringBuilder sbJobIds = new System.Text.StringBuilder();




                foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
                {
                    if (item.Selected)
                    {
                        string customerid = item["CusID"].Text;
                        if (customerid != null && customerid.Trim().Length > 0)
                            sbJobIds.Append(customerid + ",");
                    }
                }
               
//DB Coding


-----
//
            
  lbl.Text = sbJobIds.ToString()+"deleted from DB succesfully";  //This Message will not be visible to user
  lbl.ForeColor = System.Drawing.Color.Green;
               
               
               
            }


        }


==========================================================================================


Please advice me whats can i do?


Awaiting for your favourable reply




With Regards,
Maha
Maria Ilieva
Telerik team
 answered on 28 Aug 2012
1 answer
97 views
I am trying to use the RadTimePicker on several web pages.  I've kept it pretty simple at first and put the following telerik-specific code on a page:

first, at the top of the page is this:

%@ Control Language="c#" AutoEventWireup="false" Codebehind="service_category_admin.ascx.cs" Inherits="vtvn_service.service_category_admin" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>

then in the body is this:
<telerik:RadTimePicker ID="start_time_picker" visible="true" ZIndex="30001" runat="server">
</telerik:RadTimePicker>

One one page, it works...sometimes.  That is, if I click on the clock icon, a popup with times to select from appears.

On a couple other pages that I put the code on, clicking the clock icon does nothing, except generate the following javascript errror:

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 23 Aug 2012 18:28:49 UTC

Message: Object doesn't support this property or method
Line: 179
Char: 3
Code: 0
URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2012.1.411/Calendar/RadCalendarCommonScript.js

I am running version 2012.1.411.40 of the tererik.web.ui dll.

Any and all help will be appreciated as I am pretty much dead in the water right now.
Maria Ilieva
Telerik team
 answered on 28 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?