Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hello all,

i want to add a new button to radwindow's title beside the original buttons. i want call a client method on clicking the button. is it possible with radwindow, any hint?

thanks
benj
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
119 views
Hi:
  When I use the attachement control in my latest control, it seems there is a bug for the attachment control. The control is showed in a pop-up page which is showed by the Telerik windows manager.  Subsequently, if the cursor is put in the textbox of attachment and the corresponding Chinese Input Language is active, nothing will happen when the Select Button is clicked.
  Can anyone tell me what is the problem for it? Thank you.
Yavor
Telerik team
 answered on 16 Dec 2009
2 answers
125 views
Hello.
I have rad grid with templated columns (readonly and edit modes).
I set programmatically some row to edit mode base on my data on ItemDataBound event handler and then try to access control from row by its Id. I can't find control from EditTemplate but exist only from ItemTemplate

I explain on simple example. Here is a grid with templated column
<telerik:RadGrid runat="server" ID="weldsGrid" AllowPaging="True" AllowSorting="True" 
            PageSize="20" GridLines="None"
            <MasterTableView AllowMultiColumnSorting="True" AutoGenerateColumns="False" EditMode="InPlace"
                <Columns> 
<telerik:GridTemplateColumn DataField="Welder" HeaderText="Welder"  
                        SortExpression="Welder" UniqueName="Welder"
                        <EditItemTemplate> 
                            <asp:TextBox ID="WelderEdit" runat="server" Text='<%# Bind("Welder")%>' 
                                ontextchanged="WelderTextBox_TextChanged" AutoPostBack="True" /> 
                        </EditItemTemplate> 
                        <ItemTemplate> 
                            <asp:Literal ID="WelderRd" runat="server" Text='<%# Eval("Welder") %>' /> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
</Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
ItemTemplate contains Literal control with Id = WelderRd   and EditItemTemplate contains control WelderEdit

Here I set one of rows to edit mode when I get data from database.
Private Sub weldsGrid_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles weldsGrid.ItemDataBound 
    If (e.Item.ItemType = Telerik.Web.UI.GridItemType.Item OrElse _ 
        e.Item.ItemType = Telerik.Web.UI.GridItemType.AlternatingItem) Then 
 
      If (e.Item.ItemIndex > -1) Then 
        Dim row = CType(CType(e.Item.DataItem, DataRowView).Row, DSBiasStep.BiasWeldRow) 
        SetControlsVisibility(e.Item, row) 
      End If 
 
    End If 
  End Sub 
 
Private Sub SetControlsVisibility(ByVal row As GridItem, ByVal data As DSBiasStep.BiasWeldRow) 
    'set row to edit mode 
    row.Edit = data.IsActive 
 
    If Not data.IsIsAcceptedNull Then 
      'even row in edit mode next row returns null 
      Dim WelderControl= TryCast(row.FindControl("WelderEdit"), TextBox) 
      If WelderControl Is Nothing Then 
        ''''There is no reason to this but this is just example.  
        'We always find a literal control even row is in edit mode         
        WelderControl = TryCast(row.FindControl("WelderRd"), Literal) 
      End If 
      WelderControl.Enabled = CurrentUser.HasEditorRole 
    End If 
  End Sub 

How can I get controls from EditItemTemplate after setting row to edit mode programmatically?
Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
190 views
Hi,

i have a RadGrid with GridButtonColumns. The user needs to be able to navigate the buttons generated by the GridButtonColumns with the keyboard. There lies the problem: i can't set a TabIndex to the column and consequently the buttons are not included in keyboard navigation.
I can set a Tabindex to the Grid as a whole, but not to the columns. What can be done?
Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
2 answers
106 views
Hi Team,
  I am using model radWindow.
This is opened as a pop-up.
When ever user clicks on the refresh button, its parent page is also getting refresh each time.

Please Repy how can I restrict this behaviour.

Regards,
Snehal
Fiko
Telerik team
 answered on 16 Dec 2009
2 answers
130 views
Hi,

The LinkManager is now extended with the DocumentManager button, that works great.

I need the same functionality with the Image Manager.
I tried to copy and rework the DocumentManager code, but I am stuck on how to get the parameters back to the LinkManager form.

Is there any chance that this functionality can be added?

Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 16 Dec 2009
1 answer
200 views
I've been searching the documentation for a few hours, but have had no luck finding what I'm looking for.  What I need to do is display any integer and decimal data in a RadGrid formatted to a specified culture setting.  I can't hardcode the formats of each column since I am binding a datatable to the grid at runtime and each time it may have different columns with different datatypes.

I want to take a CultureInfo object, and just assign it to the grid and have it automatically format any columns with integer or decimal type data as appropriate to the culture.  Is there any way to do this? 

If its not that easy, is there some way to take the culture numeric format settings and apply them at item data bound time or something?

Also, I don't want to use resource files.  The number formats should be retrieved from the .net CultureInfo object.
Yavor
Telerik team
 answered on 16 Dec 2009
3 answers
134 views
Hi

We are using ajax rad tree view in our application with custom skin. And there is a requirement to change the expanded node font size & font weight.

Please suggest me to get the solution

Thanks in advance,
Balaji Velasiri
Balaji
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
150 views
I want to have my RadCalendar let the user select as many dates as they want on the calendar without causing a postback to the server, because I have a Submit button that causes the PostBack once the user is satisfied with the date selections.

But, I also set Special Days for each month (public holidays, non-working days, special events, etc.) within the view startdate and enddate on the server-side. I cannot do this client-side. Therefor, I need the DefaultViewChanged server-side event to be raised so I can refresh the new Special Days for the given view. Hence, a PostBack is required.

How can I cause a PostBack raising the DefaultViewChanged server-side event, but no PostBack for a date selection?
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
215 views
How to change StartTime and EndTime For TimeView of RadTimePicker in TemplateField Of RadGrid?
Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?