Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
246 views
Is it possible to change the text of the 'edit' button/link in a detail table after the user has clicked the 'update' button/link? 

Essentially after the user makes changes to the detail table row and clicks the 'update' button I'd like the detail table row to show the 'edit' button again rather than displaying the 'update' and 'cancel' button as it does by default.  I do see that if the user clicks the 'cancel' button then the detail table row will show the 'edit' button.

Thanks!
Amy
Top achievements
Rank 1
 answered on 14 Oct 2010
2 answers
118 views
Hi Telerik,

We use RadComboBox to let our customers to input/choose font family. The idea is when user finish the input/choose,  we try to set the input box font-family equals to what his input, so the user knows what exactly it looks like.

We will use two functions on the client side: OnClientSelectedIndexChanged and OnClientTextChange

but we don't know how to set the style in the client functions.

Please help.

Thanks in advance.

lan
Top achievements
Rank 1
 answered on 14 Oct 2010
3 answers
159 views
I am trying to export only the selected items from a grid. But it exports everything. Here is grid, which is dynamically defined.

<telerik:RadGrid ID="DisplayDataGrid" runat="server" AutoGenerateColumns="False"
               AllowMultiRowSelection="True" AllowSorting="True" AllowPaging="True" PageSize="6"
               OnNeedDataSource="Grid_NeedDataSource" OnItemCreated="ImageryGrid_ItemCreated"
               ShowStatusBar="true" Width="100%" GridLines="None" Skin="Hay" ItemStyle-Font-Size="7pt"
               AlternatingItemStyle-Font-Size="7pt">
               <ClientSettings EnableRowHoverStyle="true">
                   <Scrolling AllowScroll="True" ScrollHeight="230px" UseStaticHeaders="false" />
                   <Selecting AllowRowSelect="true" />
               </ClientSettings>
               <ExportSettings IgnorePaging="true" OpenInNewWindow="true" FileName="ImageryExcel"
                   ExportOnlyData="true" />
               <MasterTableView HeaderStyle-Wrap="false" TableLayout="Fixed">
                   <PagerStyle AlwaysVisible="True" FirstPageToolTip="" LastPageToolTip="" NextPagesToolTip=""
                       PrevPagesToolTip="" PrevPageToolTip="" NextPageToolTip="" />
               </MasterTableView>
           </telerik:RadGrid>

Here is the export button click, which works for exporting everything, but it does not handle selected items.

Public Sub ButtonExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonExcelIMG.Click
        AssignGridDataSource()
        DisplayDataGrid.DataBind()
 
        DisplayDataGrid.MasterTableView.Columns.FindByUniqueName("ClientSelectColumn").Visible = False
         
        DisplayDataGrid.ExportSettings.ExportOnlyData = True
        DisplayDataGrid.ExportSettings.OpenInNewWindow = True
 
        If DisplayDataGrid.SelectedItems.Count > 0 Then
 
            For Each dataItem As GridDataItem In DisplayDataGrid.MasterTableView.Items
            '    If dataItem.Selected Then
            '        DisplayDataGrid.MasterTableView.
            '    End If
                dataItem.Visible = dataItem.Selected
                dataItem.Enabled = dataItem.Selected
                dataItem.Display = dataItem.Selected
 
            Next
        End If
 
        'Export to Excel
        DisplayDataGrid.MasterTableView.ExportToExcel()
    End Sub

Here is the dynamic creation of the select column. The other columns are created in a similar way.
DisplayDataGrid.Columns.Clear()
Dim tcolumn As GridHyperLinkColumn = New GridHyperLinkColumn
Dim clientGrid As GridClientSelectColumn = New GridClientSelectColumn
 
' Checkbox
clientGrid.UniqueName = "ClientSelectColumn"
clientGrid.HeaderStyle.Width = Unit.Pixel(25)
clientGrid.ItemStyle.ForeColor = Color.RoyalBlue
clientGrid.ItemStyle.HorizontalAlign = HorizontalAlign.Center
clientGrid.ItemStyle.Width = Unit.Pixel(25)
DisplayDataGrid.Columns.Add(clientGrid)

Any idea why it is not only doing the selected items? 

Thanks!
Daniel
Telerik team
 answered on 14 Oct 2010
5 answers
65 views
Is there a way to enforce users to only add appointments when the SchedulerTimeViewType is set to DayView? I want them to be able to switch to other views but if they click on a day in MonthView for example, I would like it to redirect them to DaveView to create the actual appointment. I have disabled the TimePicker so clicking on MonthView doesn't allow them to set hourly fields.
Peter
Telerik team
 answered on 14 Oct 2010
2 answers
199 views
By default it is set on business hours. I can't find a property in the control that defaults it to all day. Could you advise?
Peter
Telerik team
 answered on 14 Oct 2010
11 answers
491 views
Hello,
We've started using the FileExplorer to manage files inside our company, what we usually need is simple uploading and downloading. What's the correct way to handle file downloads? Is it with the open method? Because in that case when for example i try to download an .xml file, the browser knows how to interpret the file and it's shown to me in a radwindow. What i want is for it to be downloaded to my computer, but i can't use the usual 'save target as' context menu item as i would usually do to download such a file. The only way we've found until now to handle such files is to zip them beforehand, but it's very inconvenient. Could you point me to a better way to handle this scenario?

Thank you
Fiko
Telerik team
 answered on 14 Oct 2010
1 answer
95 views
Hi,

I have a Grid with more than 100 columns. Is is possible to jump to a specific column in this Grid?

Thanks for your help
Thomas
Dimo
Telerik team
 answered on 14 Oct 2010
4 answers
102 views
Hi
I want to update axaxPanel in source code. i used below code, but it throw exeption. may anyone help me please.
Best Regards. Morteza

 

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

 

function test()

{

 

var id = $get('ddl_AdsPanel').value;

PageMethods.test(id, OnSuccessTypeAds, OnFailureTypeAds);

$get(

 

'RadAjaxPanel1').DataBind();  // this line not work here.

}

 

</script>

 

 

Mira
Telerik team
 answered on 14 Oct 2010
6 answers
149 views
When I try to call GetApointmentsInRange() I get no results back even though my datasource contains appointments. When I call DataBind() explicitly in Page_Load on my RadScheduler, I get results back... Am I supposed to be calling DataBind() explicitly? I don't call it for RadGrid so I wasn't sure. Any idea why I'm getting no results back in my AppointmentInsert() event?

void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e)
{
     //Returns no records
     var aps = RadScheduler1.Appointments.GetAppointmentsInRange(e.Appointment.Start, e.Appointment.End);
}     


Michael Malone
Top achievements
Rank 1
 answered on 14 Oct 2010
3 answers
120 views
Hi All,

I have two radgrids on my page

in first radgrid i am using pagination,
and in second radgrid i am using inline editing.

No my problem is that, when i press enter key on the screen, my second grid goes into edit mode automatically.

How can i pevent it.. please help me...

For more details please see in attached screen shot.
Maria Ilieva
Telerik team
 answered on 14 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?