Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 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
87 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
91 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
386 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
118 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.4K+ 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
118 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
70 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
1 answer
107 views
Hi
I am new to telerik controls.I used radscheduler with recurrence but I am not able to get recurrence rule in server side while inserting a appointment in database.
An appointment is inserted with out the recurrence.I am binding the scheduler to a datasource.
<telerik:RadScheduler ID="RadScheduler1" runat="server"
               DataDescriptionField="CH_DESC" DataEndField="CH_TOTIME" 
               DataKeyField="CH_BOOKID" 
               DataStartField="CH_FROMTIME" DataSubjectField="CH_BOOKSUBJECT"                
               OnAppointmentDelete="RadScheduler1_AppointmentDelete"
               OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
               OnAppointmentInsert="RadScheduler1_AppointmentInsert"
               OnAppointmentCreated="RadScheduler1_AppointmentCreated"
               OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
               MinutesPerRow="15" TimeLabelRowSpan="1"
               Skin="Windows7"  GroupBy="Hall"  Height="400px"
               DayStartTime="09:00:00" DayEndTime="19:00:00" 
               WorkDayStartTime="09:00:00" WorkDayEndTime="19:00:00"
               EnableDescriptionField="True" ShowAllDayRow="False"  AdvancedForm-Modal="true"
               StartInsertingInAdvancedForm="True" AdvancedForm-Enabled="true" AdvancedForm-EnableCustomAttributeEditing="true" 
               DataRecurrenceParentKeyField="CH_RECPID"  DataRecurrenceField="CH_REC" EnableRecurrenceSupport="true">
           <AdvancedForm  EnableCustomAttributeEditing="true"/>          
           <AppointmentTemplate>
           <div class="rsCategoryViolet">
           <br />
              Subject:<%# Eval("Subject")%><br />Time:<%#Convert.ToDateTime(Eval("Start")).ToShortTimeString()%>- <%#Convert.ToDateTime(Eval("End")).ToShortTimeString()%>  <br />
          
          
           </div>
           </AppointmentTemplate>
           </telerik:RadScheduler>
       </asp:Panel>


By default CH_RECPID,CH_REC is set to empty string.
Please tell me a solution for this.
thanks in advance
Boyan Dimitrov
Telerik team
 answered on 10 Oct 2012
2 answers
127 views
Hi friends,

<telerik:RadFormDecorator ID="id runat="server" ControlsToSkip="Textbox"></telerik:RadFormDecorator>


Seems not to be working for textboxes, instead, the below serves the purpose.
<telerik:RadFormDecorator ID="id runat="server" ControlsToSkip="Textarea"></telerik:RadFormDecorator>


Am I missing something ?

Thanks,
-Aarsh
Aarsh
Top achievements
Rank 1
 answered on 10 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?