Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
602 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
178 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
117 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
74 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
365 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
98 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
1 answer
95 views
I am using a radgrid with gridclientselectcolumn with AllowMultiRowSelection="true", the shift key select works however, it selects the rows from the top most selected row till the currently selected row. Say, If I select row 2, then row 4 and then i hold shift and select row 7 it will select all rows from 2 till 7 instead of 2 and 4 to 7
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Oct 2012
3 answers
52 views
If I right click on a schedule entry that is an exception from a series, select edit, then select the entire series I get the following when debugging:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

It works fine so long as I edit the series from any item in the series that is not an exception.

Thanks!
Ivana
Telerik team
 answered on 10 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?