Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
163 views
Hi,

I have a grid that contains a templated column containing a RadToolbar.  The Toolbar contains one or more buttons and a dropdown list of additional options.  Currently I am doing a postback on row click and performing an ajax call to update a panel.  Everything works fine except when I try to click the dropdown list in my toolbar in the grid.  It is performing the postback which is killing the dropdown open.  It never displays.  If I click the other toolbar buttons then the postback does not fire.  How can I get the dropdown options to display and suppress the postback/selection?  Can I add conditional logic on the client side that will suppresss the postback if they are clicking a particular cell of my column containing my toolbar?   I'm not sure how to do that.

thanks

Peter
Telerik team
 answered on 01 Jul 2008
2 answers
206 views
Hi,

I am experiencing an odd problem with IE 7 but not FF or anything else. The first time I open up my page, the slider is incomplete - it looks like it is missing numbers, its background image etc.

If I refresh, it is perfect. This is intensely frustrating! I have the latest build - 5/15.
Tsvetie
Telerik team
 answered on 01 Jul 2008
1 answer
144 views
I have a series of pages (forms) that use the tabstrip to seperate sections into easy chunks.  There is a global Save button that sits outside the tabbed area.

My question is, how can I achieve one (or more) of the following when there is an invalid (required) field on another tab.

  1. Highlight the tab related to the pageview on which the error occurs (turn it's label red and/or bold).
  2. Jump straight the the error by automatically switching tabs and focus on the errored field.
  3. Provide a link in the validation summary that will change tabs and focus on the errored field.

I am happy with the tab strip, but need to make the validation a bit more usuable.

Thanks

Paul
Telerik team
 answered on 01 Jul 2008
2 answers
157 views
I've got a RadGrid which uses a User Control to edit its records. Inside the User Control are two other RadGrids and the user drags items from one to the other and then hits the Update button. This is working fine, and I'm really pleased with it, but there is one problem. I want to implement a Javascript onRowDropping handler as in your DragDrop demo so as to cancel the event if necessary. Putting the handler script on the Web page itself is no good because the page cannot resolve expressions like:

if (sender.get_id() == '<%=TitleAvailable.ClientID %>')

because the ClientID of the TitleAvailable RadGrid is only known by the UserControl and only after the user has clicked the Edit button to Load the UserControl. Also putting the handler script on the User Control page with the rest of the html markup doesn't work: I get a JScript error saying "'[onRowDropping function name]' is undefined". So I tried emitting the Javascript dynamically from within the Page Load event of the User Control, like so:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim scriptKey As String = "DragDropScript"
        If Not Page.ClientScript.IsClientScriptBlockRegistered(scriptKey) Then
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), scriptKey, GetDragDropScripts(), True)
        End If
        TitleAvailable.ClientSettings.ClientEvents.OnRowDropping = "onListTitleRowDropping"
    End Sub

    Private Function GetDragDropScripts() As String
        Dim sb As New StringBuilder()
        sb.AppendLine("function onListTitleRowDropping(sender, args) {")
        sb.AppendLine("}")
        Return sb.ToString()
    End Function

But if I do that, then right after the UserControl Page_Load event has completed, I again get a JScript error message " 'onListTitleRowDropping' is undefined" from this function of yours:

    function Sys$_Application$add_init(handler) {
        /// <summary locid="E:J#Sys._Application.init" />
        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
        if (e) throw e;
        if (this._initialized) {
            handler(this, Sys.EventArgs.Empty);
        }
        else {
            this.get_events().addHandler("init", handler);
        }
    }

Any ideas how to solve this?

Ben
Top achievements
Rank 1
 answered on 01 Jul 2008
1 answer
137 views
hi,

i have inserted a control in a tab1 and when the page is loaded then that control didn't open in that tab. but when i click on other tab and then on that tab then control open in first tab.

how can i do that control should open in first tab when the page load for the first time.
i have done selectedindex = 0
but not ....

<telerik:RadTabStrip ID="tabStripEdit" runat="server"

Skin="Outlook" MultiPageID="multiPage_Details"

Orientation="VerticalLeft" AutoPostBack="True" SelectedIndex="0" >

and also i have applied it on pageLoad method

tabStripEdit.SelectedIndex = 0;

then also it is not working.

altaf
Top achievements
Rank 1
 answered on 01 Jul 2008
3 answers
200 views
Hi, can you tell me if it is possible to autoscale the dates, so if I had 20 values to plot at various dates, it can scale the x-axis in 7 day scales, ie Sunday 6th, Sunday 13th, Sunday 20th, Sunday 27th etc, and then plots the values in between these, each date is not that important as I can use the tooltip to show the actual value. The problem I have is because telerik can't bind dates to the grid I have converted the dates to strings and displayed them with the 

RadChart1.PlotArea.XAxis[i].TextBlock.Text = dateTime.ToShortDateString();

But if I get 2 dates the same it plots them next to each other. If I change the autoscale to True it substitutes the dates with incremented numbers (ie 1....20).

Thanks,

Pete Walker.

Pete
Top achievements
Rank 1
 answered on 01 Jul 2008
3 answers
241 views
I'm customizing the automatic grid editors as follows:

<telerik:RadGrid ID="InvoiceLines" runat="server" AllowMultiRowSelection="true" AllowMultiRowEdit="true" 
    Skin="Office2007" OnNeedDataSource="InvoiceLines_NeedDataSource" AutoGenerateColumns="false" 
    OnUpdateCommand="InvoiceLines_UpdateCommand" OnDeleteCommand="InvoiceLines_DeleteCommand" OnInsertCommand="InvoiceLines_InsertCommand">  
    <ClientSettings> 
        <Selecting AllowRowSelect="true" /> 
    </ClientSettings> 
    <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id" EditMode="InPlace" AutoGenerateColumns="false" CommandItemDisplay="Bottom" InsertItemDisplay="Bottom">  
        <CommandItemSettings AddNewRecordImageUrl="~/Images/favorites_16.png" AddNewRecordText="Add New Line" RefreshImageUrl="~/Images/document_refresh_16.png" RefreshText="Refresh Lines" /> 
        <Columns> 
            <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="20px" /> 
            <telerik:GridClientDeleteColumn ButtonType="ImageButton" ItemStyle-Width="20px" ImageUrl="~/Images/trash_16.png" DataType="System.Guid" ConfirmText="Delete this item?" /> 
            <telerik:GridBoundColumn DataField="LineNumber" HeaderText="" ReadOnly="true" ItemStyle-Width="20px" /> 
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description" ColumnEditorID="DescriptionEditor" /> 
            <telerik:GridNumericColumn DataField="Quantity" HeaderText="Qty" UniqueName="Quantity" ItemStyle-Width="50px" ColumnEditorID="QuantityEditor" /> 
            <telerik:GridNumericColumn DataField="PricePerUnit" HeaderText="Price / Rate" UniqueName="PricePerUnit" ItemStyle-Width="50px" ColumnEditorID="PricePerUnitEditor" /> 
            <telerik:GridNumericColumn DataField="TotalPrice" HeaderText="Amount" UniqueName="TotalPrice" ReadOnly="true" ItemStyle-Width="75px" /> 
            <telerik:GridCheckBoxColumn DataField="Taxable" HeaderText="Tax" UniqueName="Taxable" ItemStyle-Width="25px" /> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 
<telerik:GridTextBoxColumnEditor ID="DescriptionEditor" runat="server">  
    <TextBoxStyle Width="200px" BackColor="Aqua" /> 
</telerik:GridTextBoxColumnEditor> 
<telerik:GridNumericColumnEditor ID="QuantityEditor" runat="server">  
    <NumericTextBox runat="server" Width="50px" /> 
</telerik:GridNumericColumnEditor> 
<telerik:GridNumericColumnEditor ID="PricePerUnitEditor" runat="server">  
    <NumericTextBox runat="server" Width="50px" BackColor="AliceBlue" /> 
</telerik:GridNumericColumnEditor> 

I'm really just trying to adjust the width (it would be nice if the edit controls automatically set their width to the column width), but I added some background colors just to be sure I'm not crazy.

The GridTextBoxColumnEditor always works, but the GridNumericColumnEditor only works if there is only one row in edit mode. Once I put a second row into edit mode the text boxes get huge again and the background color goes away.

Is there an easy fix for this?
Veli
Telerik team
 answered on 01 Jul 2008
1 answer
94 views
I have a page where I load an ascx control on the page when a linkbutton is clicked. I use the RadAjaxManager to define that.

The strange part is that once the ascx control is loaded, it is apparently ajaxified as if it had been placed in a RadAjaxPanel. Using the old RadControls, the controls in that ascx were causing full postback.

What could have caused that change?
Iana Tsolova
Telerik team
 answered on 01 Jul 2008
3 answers
270 views
I have a rad grid and use drop down lists( three of them) as filter options.

The filtering works fine, but when i select the first item from the drop down list

the selectindexchanged method doesnt fire.

But when i go to the other drop down (say number 2) select something ..

and then go back to the previos drop down and select the first one .. it does fire...


so to rectify this i used radcombo box which corrected my previos issue.

Bt a new problem sprung up... when i filter by one drop down and go and filter by the second drop down the value selected on the first drop down goes back to its default value.. this wasnt the problem when i was using normal drop downs..

Is there any way i can do this ... iam open to using either of them...

thanks...
Veli
Telerik team
 answered on 01 Jul 2008
1 answer
106 views

Hi,
We have a situation where we are using 3rd party components built against a previous version of the AJAX.NET control toolkit (Arc GIS). However we are using the latest version within our project to maintain compatibility with the Telerik Rad Control Suite of components. Thus so the Arc GIS components throw an error.
Is there any way that we can instruct the AJAX.Net controls to impersonate an older version, thus fixing the compatibility issues I have mentioned?

Kind Regards

Sebastian
Telerik team
 answered on 01 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?