Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
118 views
Hi All,

I want to RadScheduler DayStartTime in client side like 9:30. i am not sure how to Set the timing in Client Side.

Please let me know is it possible or not?


Thanks in Advance,
Dhamu,
Boyan Dimitrov
Telerik team
 answered on 11 Oct 2012
2 answers
50 views
I'm trying to change the scheduler to add an option to change all occurrences in a series OR to change just this and future occurrences. The problem I just ran into is that when you select "edit all" it opens the parent schedule item and I cannot seem to find any reference to the date of the occurrence that was selected to actually make the change. Is there a way to get this?

Thanks!
Plamen
Telerik team
 answered on 11 Oct 2012
14 answers
608 views
I am trying to migrate from a homegrown composite "DualListBox" control. One of the things I spent a lot of time on is making sure that if I moved an item from listbox1 to listbox2, if I moved it back, it moved in the same place. Especially if the source listbox is "sorted." I need to make sure that when I transfer back from one listbox to the original, the sort is maintained. How do I do this?

Andrew
Yien
Top achievements
Rank 1
 answered on 11 Oct 2012
2 answers
183 views
If I open a word document and upload the document by RadAsyncUpload, it will throw the javascript error " Error while uploading, The process cannot access the file 'XXX' because it is being used by another process" if enable show js error. My question is there are a way to show a friendly message to user in that case?
Plamen
Telerik team
 answered on 11 Oct 2012
1 answer
118 views
In an already existing application I need to make an adjustment. If a user wants to edit a record, the record should be edited on a new page in stead of using a popup. The RadGrid Editmode does not support such function. How can I adjust the control, so I have a link to a new page for editing?
Princy
Top achievements
Rank 2
 answered on 11 Oct 2012
4 answers
75 views
Hi,
How to set default PageIndex of RadGrid from markup and not in code-behind.

Thanks in advance...
Abhijit Shetty
Top achievements
Rank 2
 answered on 11 Oct 2012
1 answer
79 views
Hi All,

            I am using RadASyncUpload control to upload the files. But I wanted to give my own name to the file, while uploading. Is it possible? If anybody knows, can you please let me know.


Thanks,
Geetha Rani.
Princy
Top achievements
Rank 2
 answered on 11 Oct 2012
1 answer
367 views
Hi
I have a link button inside the GridTemplateColumn, and i want to know the row index when i click on the link button client side.
Below is the code i have:

<telerik:RadGrid ID="grdDetailSummary" runat="server">
         <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id">
                <Columns>
                     <telerik:GridTemplateColumn HeaderText="Open" UniqueName="colOpenLink">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lnkReason" Font-Underline="true"  Text="Open" OnClientClick="javascript:OpenNewWindow()"></asp:LinkButton>
                        </ItemTemplate>
                     </telerik:GridTemplateColumn>
                </Columns>
        </MasterTableView>
    </telerik:RadGrid>
 
<script language="javascript" type="text/javascript">
        function OpenNewWindow() {
            //I want to know the row index here, and ultimately i want to get the value from datakeyvalues.
        }
        </script>
Shinu
Top achievements
Rank 2
 answered on 11 Oct 2012
2 answers
101 views
Hi,

I have created a dynamic tooltip for a radcombobox with checkboxes.  As items in the combobox are checked or unchecked I change the tooltip for the combobox to the items that are selected.  I have been able to get this to work successfully using the following code.
Private Sub rcbCompany_ItemChecked(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles rcbCompany.ItemChecked
 
       prpSelectedCount = Me.rcbCompany.GetCheckedIndices.Count
       Dim strToolTipField = IIf(prpDisplayType = "Name", e.Item.Text, e.Item.Value.ToString)
 
       If e.Item.Checked = True Then
           'If an item has been checked, add the company number to the prpSelectedValue list and the company code/name to the prpToolTip list.
           prpSelectedValue = prpSelectedValue + "," + e.Item.Attributes("CompanyNumber")
           prpToolTip = prpToolTip + strToolTipField
 
       Else
           'If no companies are check set prpSelectedValue and the prpToolTip to Nothing,
           If prpSelectedCount = 0 Then
               prpSelectedValue = ""
               prpToolTip = ""
           Else
               'otherwise remove the unchecked company from the prpSelectedValue property
               prpSelectedValue = prpSelectedValue.Replace("," + e.Item.Attributes("CompanyNumber"), "")
               prpToolTip = prpToolTip.Replace(";" + strToolTipField, "")
           End If
       End If
 
       'Remove the extra comma, if any at the beginning of the string
       If prpSelectedValue.StartsWith(",") = True Then
           prpSelectedValue = prpSelectedValue.Remove(0, 1)
       End If
 
       If prpToolTip.StartsWith(";") = True Then
           prpToolTip = prpToolTip.Remove(0, 1)
       End If
 
       Me.rcbCompany.ToolTip = prpToolTip
       rttManagerCompany.TargetControls.Clear()
       rttManagerCompany.TargetControls.Add(Me.rcbCompany.ClientID, True)
 
       RaiseEvent OnItemCheckedCompanyHandler(sender, e)
   End Sub
 
Private Sub rttManagerCompany_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles rttManagerCompany.AjaxUpdate
       Dim lblToolTip As New Label()
       lblToolTip.Text = prpToolTip
       e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblToolTip)
   End Sub

My problem becomes when I try to put in a new line in the tooltip text to separate the selected items.
I changed the tooltip expression to

prpToolTip = prpToolTip + "<br/>" + strToolTipField. 
After I added the new line character(<br/>) I get the following error.
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

As a test to see if it was my generated tooltip that was causing the problem, I changed the lblToolTip.Text in the rttManagerCompany_AjaxUpdate to "line1 <br/> line2" and I still get the error.  If I remove the <br/> I do not get an error and the tooltip displays as line1line2. 

Can anyone tell me how to get a new line in the tooltip.

Thank you for your help.
Tracy

After I add the new line

Tracy
Top achievements
Rank 1
 answered on 11 Oct 2012
8 answers
1.3K+ views
Hi ,I want create a ComboBox with multi-column ,and with dynamic from database.

I have searched a helpfull article:
http://andrewwhitten.wordpress.com/2010/05/15/multiple-select-telerik-radcombobox-in-code-behind/

but I don't know how to get the value from client-side and code behind side

private string item1
        {
            get
            {
                RadComboBoxItem item = this.combobox1.SelectedItem; 
                if (item != null)
                {
                    Label lbl= item.FindControl("item1") as Label;
                    if (lbl!= null) // is always be null
                        return  lbl.Text;
                }
                return "";
            }
        }

how could I get the selectedItem? 

or have other better ideas for multi-column radcomboBox? 

Thanks
Satish
Top achievements
Rank 1
 answered on 10 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?