Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
347 views

Is there a way to add custom buttons to a RadListBox control? In addition to Delete and Reorder I need to add 3 more buttons for my custom actions. Also I might need to register those 3 new buttons with RadToolTipManager. Is this possible to do?

Orest
Top achievements
Rank 1
 answered on 17 Nov 2009
1 answer
96 views
Hi

My problem is when Scheduler loads then i can click only once then after that on 2nd time click showing like test.aspx# and i cannot click on any button of RadScheduler after once.

I am adding User Controls dynamically its my requirement like

test.aspx

<form id="form1" runat="server"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
        <tr> 
            <td align="left" valign="top" bgcolor="white"> 
                <div id="iControl" runat="server"> 
                </div> 
            </td> 
        </tr> 
    </table> 
    </form> 
cs
  protected void Page_Load(object sender, EventArgs e) 
    { 
        Control ctrl; 
        ctrl = this.LoadControl("testctrl.ascx"); 
        iControl.Controls.Add(ctrl); 
 
    }    
 

user control

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
</telerik:RadScriptManager> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadScheduler1"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px" Transparency="20"> 
    <table style="width: 100%; height: 100%; background-color: white;"> 
        <tr style="height: 100%"> 
            <td align="center" valign="middle" style="width: 100%"> 
                <img alt="Loading..." src='Icons/loading2.gif' style="border-right: 0px; border-top: 0px; 
                    border-left: 0px; border-bottom: 0px" /> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" SelectedView="WeekView" 
    TimeZoneOffset="00:00:00" DayStartTime="08:00:00" DayEndTime="18:00:00" ReadOnly="true" 
    DataKeyField="ID" DataSubjectField="Title" Skin="Office2007" DataStartField="DateStart" 
    DataEndField="DateEnd" OnClientAppointmentClick="OnClientAppointmentClick"> 
    <AdvancedForm Modal="false" /> 
    <TimelineView UserSelectable="false" /> 
</telerik:RadScheduler> 
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> 
 
    <script type="text/javascript"> 
        function OnClientAppointmentClick(sender, eventArgs) { 
            alert(eventArgs.get_appointment().get_id()); 
        } 
    </script> 
 
</telerik:RadCodeBlock> 
 



Muhammad Imran
Top achievements
Rank 1
 answered on 17 Nov 2009
34 answers
2.3K+ views
Hi. I have a new machine with a fresh install of Vista and VS2008. I just auto-installed Prometheus 2007.31218.

I start a new Web site in .NET Framework 3.5 and also manually add Telerik.Web.Design.dll from the Bin35 folder to my project's bin folder.

The Prometheus controls are already in the toolbox from auto-install, so I try to add them to a Web page. For some (RadMenu) I get a 'Failed to create designer' error. For others (RadGrid), I get Could not load file or assembly 'Telerik.Web.UI, Version=2007.3.1218.35'.

Perhaps there is a step that I overlooked? Please help.
Craig Morgan
Top achievements
Rank 1
 answered on 17 Nov 2009
4 answers
210 views
Hi,

I have this horizontal rule behavior in some of my dropDowns (that inherit RadComboBox)

(2009-11-17_1003.png: image attached)

The tab position is weird as well, as if I use Telerik.Web.UI.dll v.2008.03.1125.20 it shows fantastic!
if I use Telerik.Web.UI.dll v.2009.02.826.2 it shows half the way :(

(2009-11-17_1015.png: 2nd image attached so you see how it shows in the older version)

a simple screen cast to shown the Dropdows.
url: http://bit.ly/jpgK3

you can see by the code (using Firebug) that there is no spaces in the numeric dropdowns, but it gives me an annoying horizontal scroll...

This is a dynamic load, so there is no control code, only adding controls dynamically to a Panel and render them in a webpage.
The code that loads the DropDown controls is exactly the same for all dropdowns you can see in the video, but some act very differently, why?
Simon
Telerik team
 answered on 17 Nov 2009
1 answer
150 views
Is it possible to export only selected rows of a grid?
Daniel
Telerik team
 answered on 17 Nov 2009
1 answer
163 views
I have a problem with. Excel.format="ExcleML"

 

 


 


I don´t know why.
I was looking in the forum to find a solution, but nothing.

Do you have any ideas?

My escenerio:
.aspx

<

 

asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Export" />

 


<

 

telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" FooterStyle-HorizontalAlign="Right" AllowFilteringByColumn="False" AllowSorting="true" ShowFooter="True" runat="server" Skin="MyCustomSkin" EnableEmbeddedSkins="false" OnSortCommand="RadGrid1_SortCommand" OnItemDataBound="RadGrid1_ItemDataBound" OnCustomAggregate="RadGrid1_CustomAggregate">

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true">

 

 

</Scrolling>

 

 

<Resizing EnableRealTimeResize="True" AllowColumnResize="True"></Resizing>

 

 

<ClientEvents OnGridCreated="GridCreated" />

 

 

</ClientSettings>

 

 

<MasterTableView Width="100%" CommandItemDisplay="Top" ShowGroupFooter="true" DataKeyNames="Estado">

 

 

<CommandItemSettings AddNewRecordText="" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToWordButton="true" />

 

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="Descripcion" SortOrder="Ascending" />

 

 

</SortExpressions>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="Descripcion" SortExpression="Descripcion" HeaderText="Descripcin" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="FechaHora" SortExpression="FechaHora" HeaderText="FechaHora" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" DataFormatString="{0:dd/MM/yyyy hh:mm:ss}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="IdOrdenador" SortExpression="IdOrdenador" HeaderText="NCaja" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" ></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Nombre" SortExpression="Nombre" HeaderText="Cajero" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" ></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="PrecioUnitario" SortExpression="PrecioUnitario" HeaderText="Precio U." HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" DataFormatString="{0:###,###,##0.00}" UniqueName="PrecioUnitario" Aggregate="Custom"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Cantidad" SortExpression="Cantidad" HeaderText="Cantidad" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" DataFormatString="{0:####0}" UniqueName="Cantidad" Aggregate="Custom"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Total" SortExpression="Total" HeaderText="Total" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" DataFormatString="{0:###,###,##0.00}" UniqueName="Total" Aggregate="Custom"></telerik:GridBoundColumn>

 

 

</Columns>

 

 

<GroupByExpressions>

 

 

<telerik:GridGroupByExpression>

 

 

<GroupByFields>

 

 

<telerik:GridGroupByField FieldAlias="Descripcin" FieldName="Descripcion" />

 

 

</GroupByFields>

 

 

<SelectFields>

 

 

<telerik:GridGroupByField FieldName="Descripcion"/>

 

 

</SelectFields>

 

 

</telerik:GridGroupByExpression>

 

 

</GroupByExpressions>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


.cs

protected void Button1_Click(object sender, EventArgs e)

 

{

RadGrid1.ExportSettings.ExportOnlyData =

true;

 

RadGrid1.ExportSettings.OpenInNewWindow =

false;

 

RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.

GridExcelExportFormat.ExcelML;

 

RadGrid1.MasterTableView.ExportToExcel();

 

}


My result is this error:

Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter nullWriter, Control form) +864
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8673113
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter nullWriter, Control page) +93
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +594
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +594
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
Daniel
Telerik team
 answered on 17 Nov 2009
1 answer
96 views
Hi, i found the auto complete combo box to be useful for my email form. (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx)
However, as I have discovered that this function doesn't work correctly in chrome, but does for IE and firefox.
is there any fix possible for the future?
Simon
Telerik team
 answered on 17 Nov 2009
2 answers
150 views
I have the checkbox items in the listbox.
When the item is inserted into the  listbox, I want the checkbox to be automatically checked to be true.
However during the postback, the checked value is false on the serverside. How can I retrieve the value set by the client side?

Here is my code.

<

 

script language="javascript" type="text/javascript">

 

 

function AddItems(strDay, strDate, strType1, strType2) {

 

 

var list = $find("<%= lstDFSummary.ClientID %>");

 

 

var items = list.get_items();

 

list.trackChanges();

 

var item = new Telerik.Web.UI.RadListBoxItem();

 

 

var item2 = new Telerik.Web.UI.RadListBoxItem();

 

item.set_text(strDay + " , " + strDate + " - " + strType1 + " " + "<%= strShowName %>");

 

item.set_checked(

true);

 

items.add(item);

 

 

 

 

list.commitChanges();

}

 

</

 

script>

 

yoomee kwon
Top achievements
Rank 1
 answered on 17 Nov 2009
1 answer
126 views
Hi. I am trying to access the value in a combobox. When the user clicks a LinkButton in the grid, I fire a command. Before the breakpoint i reached, I see the combobox resort back to the SelectedIndex of 0. Therefore, when the breakpoint is hit, the value is not the value selected by the user...

I tried both below, the grid is reloading PRIOR to me having a chance to retrieve the value and the combo value is already reset

Dim

 

dataItem As GridDataItem

 

dataItem =

DirectCast(e.Item, GridDataItem)

 

 

Dim ddl As Telerik.Web.UI.RadComboBox

 

ddl =

DirectCast(dataItem.FindControl("ddlTest"), Telerik.Web.UI.RadComboBox)

 

 

Dim qty As String = ddl.SelectedItem.Text

 

 

Dim qty2 As String = ddl.Text

 

 

Dim ddlQty As DropDownList

 

ddlQty =

DirectCast(dataItem.FindControl("ddlQuantity"), DropDownList)

 

 

Dim value As String = ddlQty.SelectedItem.Text

 

 

Dim value2 As String = ddlQty.Text

 

Simon
Telerik team
 answered on 17 Nov 2009
3 answers
510 views
I have template column:

<telerik:GridTemplateColumn HeaderText="salary"><ItemTemplate>  
            <asp:TextBox ID="salary" runat="server"></asp:TextBox></ItemTemplate>  
</telerik:GridTemplateColumn>  

Now I want to change the text in textbox in each row - the text is number, so I want to multiply it by 3.

But I don't know how to get the value of TextBoxes in JavaScript code?

var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();   
  
for(var row = 0; row < masterTable.get_dataItems().length; row++)   
{   
    var salary = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[row], "profit").innerHTML;  
    salary.innerHTML = salary.innerHTML * 2;
}   

It gives me a "NaN" error, because the innerHTML returns me "<span ...> 3.423 </span>"  but not "3.423" for example.

Anyone can help me? The grid is not in edit mode. I have template column with textbox.


Sebastian
Telerik team
 answered on 17 Nov 2009
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?