Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Following the rad upload example I can not get the bind results section to work for me.
Everything else is working fine, I can upload files.  As soon as I add the progress bar it crashes.

Private Sub BindResults()
        If Radupload1.UploadedFiles.Count > 0 Then
            labelNoResults.Visible = False
            reportResults.Visible = True
            reportResults.DataSource = Radupload1.UploadedFiles
            reportResults.DataBind()
        Else
            labelNoResults.Visible = True
            reportResults.Visible = False
        End If
    End Sub


Compiler Error Message: 
BC30451: Name 'labelNoResults' is not declared.

Source Error:

Line 20:     Private Sub BindResults()
Line 21:         If Radupload1.UploadedFiles.Count > 0 Then
Line 22:             labelNoResults.Visible = False
Line 23:             reportResults.Visible = True
Line 24:             reportResults.DataSource = Radupload1.UploadedFiles
Dimitar Terziev
Telerik team
 answered on 29 Sep 2011
3 answers
68 views
Hello,

                I have a aspx page with four ascx controls. In one of the control i have three buttons, one grid and one tree. i have used the radajaxmanagerproxy for ajax operation. In one of the button's clientclick function i called doPostBack function. The entire page is refreshed when i called the doPostBack function, ajax is not working in this situation. I am using radajaxmanager in my aspx page so i use radajaxmanagerproxy in my control for ajax. Radajaxmanager has only the property ajaxrequest.Please give the solution for this problem.

Thanks,
Velkumar.
Dimitar Terziev
Telerik team
 answered on 29 Sep 2011
5 answers
178 views
Hi,

I am new to the rad editor spell check control. i hava a requirement that i want to do the spell check in silent mode i.e when i click on the spell check button it will do the spell check without showing the modal dialog. how can i do this?

i checked in the telerik forum but i could not find the answer  for this.

Can anybody help on this?

Regards,
Karunakar.
Lini
Telerik team
 answered on 29 Sep 2011
3 answers
79 views

Hi,

I have a Client Side CustomValidator Control, Is there a way to access selected item's CityCode value from comboxbox's itemtemplate. using client side javascript
--JD
( Please advice, some easy workable workaround )

<telerik:RadComboBox ID="RadComboBox2" Runat="server" TabIndex="3"
                      DropDownWidth="320px"
                       HighlightTemplatedItems="true"
                         DataSourceID="EDSStateList" DataTextField="StateName"
                        DataValueField="StateCode" SelectedValue='<%# Bind("FK_StateCode") %>'>
                         <HeaderTemplate>
                          <ul>
                             <li class="col1">StateName</li>
                             <li class="col2">CityName</li>
                             <li class="col3">CityCode</li>
                         </ul>
                         </HeaderTemplate>
  
                         <ItemTemplate>
                             <ul>
                                 <li class="col1">
                                     <%# DataBinder.Eval(Container.DataItem, "StateName")%></li>
                                 <li class="col2">
                                     <%# DataBinder.Eval(Container.DataItem, "CityName")%></li>
                                 <li class="col3">
                                     <%# DataBinder.Eval(Container.DataItem, "CityCode") %></li>
                             </ul>
                         </ItemTemplate>
  
                         <FooterTemplate>
             
                        </FooterTemplate>
  
                    </telerik:RadComboBox>
Vasil
Telerik team
 answered on 29 Sep 2011
2 answers
214 views
Hi Telerik team,


I am trying to add htmlbutton to radgrid header instead of default text header. Below is my code.

void radgrid1_PreRender(object sender, EventArgs e)
        {
            HiddenField hdfSortcolumn1 = (HiddenField)this.Page.FindControl("hdfSortColumn");
            RadGrid RadGrid1 = (RadGrid)Cache["radgrid1"];
            foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns)
            {
                foreach (GridHeaderItem headeritem in RadGrid1.MasterTableView.GetItems(GridItemType.Header))
                {
                    HtmlInputButton headerButton = new HtmlInputButton();
                    headerButton.Value = col.UniqueName;
                    Session["col"] = col.UniqueName;
                    string strColumn = col.UniqueName.Replace(" ", "%20");
                    string script = " document.getElementById('" + hdfSortcolumn1.ClientID + "').value = '" +
                                            strColumn + "'; RefreshSort('" +  Request.QueryString["ItemID"].ToString() + "');";
                    headerButton.Attributes["onclick"] = script;
                    headeritem[col.UniqueName].Controls.Add(headerButton);
                }
            }
        }
But duplicate header names are coming one is normal text and another one is dynamically added htmlbutton.
How to remove the default header text and only displaying htmlinputbutton.
Hope I can hear from you soon.
Thank you
Pratap.K
Pratap
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
83 views
Hello,

I want to fire radcombobox SelectedIndexChanged  to RadGrid1_ItemDataBound,

I'm passing like that not fired

this.RadGrid1.ItemDataBound += new Telerik.Web.UI.GridItemEventHandler(this.RadGrid1_ItemDataBound);

Reply soon ,
very urgent


Thanks,
Mohamed.
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
2 answers
36 views

I am using both IE9 and Firefox 7 on the popup edit they display differently. I have a required validation on some fields.

<telerik:GridTemplateColumn HeaderText="First Name" UniqueName="First_Name" AllowFiltering="False">
    <EditItemTemplate>
        <telerik:RadTextBox ID="tbFirstName" runat="server" Text='<%# Bind("First_Name") %>'>
        </telerik:RadTextBox>
        <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ErrorMessage="(Required)"
            ControlToValidate="tbFirstName" ForeColor="Red"> </asp:RequiredFieldValidator>
    </EditItemTemplate>
    <ItemStyle HorizontalAlign="Left" />
    <ItemTemplate>
        <asp:Label ID="lbFirstName" runat="server" Text='<%# Eval("First_Name", "{0}") %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>
Ken
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
60 views
In my implementation, I have some parent appointments that are visible=false.  This is because the parent may belong to another user (not visible), and the single occurrence of an appointment is moved to the current user (current user's appointments are visible).

Originally, I did not include any appointments that were not of the current user, but this meant that the current user could not edit the single occurrence of their appointment, because it happened to be part of a series that originally belonged to another user.

Now, my scheduler loads in all appointments for the current user, and also includes any parent appointments, and sets parent appointments that belong to other users to visible=false.

This seemed to be working, except that the parent has a 'RecurrenceRule', so the scheduler automatically parses the rule and builds the recurring appointments.  The recurring appointments are visible, even though the parent is visible=false.  How can I force the parsed recurring appointments to be visible=false?

I tried setting the parent RecurrenceRule to null in AppointmentDataBound, and that prevents the recurring appointments for other users from being generated, but when you delete the current user's single occurrence, it throws an exception that the scheduler could not parse the parent RecurrenceRule (not surprisingly since I manually removed it).

Any ideas?
Plamen
Telerik team
 answered on 29 Sep 2011
1 answer
103 views
Dear Telerik Team,

we would like to ask how to strongly define RadChart's heigth. The heigth is set up in according to the size of chart's legend currently. Our chart has 192 series, in other words 192 items in the legend. The heigth of the chart is adjusted to the heigth of the legend regardless to the fact whether the legend is hidden or shown bellow. Here's our code snippet of the RadChart settings:

                radChart.ClearSkin();

                radChart.Skin = Skin;

                radChart.SeriesOrientation = ((RadChartEntity)Session[radChart.ID]).Orientation;

                radChart.AutoLayout = true;

                radChart.PlotArea.Appearance.Dimensions.Width = 500;

                radChart.PlotArea.Appearance.Dimensions.Height = 500;

                radChart.PlotArea.EmptySeriesMessage.TextBlock.Text = "No data";

                radChart.PlotArea.XAxis.IsZeroBased = false;

                radChart.PlotArea.XAxis.AutoScale = false;

                radChart.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.CompositionType = LabelItemsCompositionTypes.RowImageText;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;

                radChart.Appearance.FillStyle.FillType = FillType.Solid;

                radChart.Appearance.TextQuality = TextQuality.ClearTypeGridFit;

                radChart.Appearance.Border.Visible = false;

                radChart.Legend.Appearance.ItemTextAppearance.MaxLength = 20;

                radChart.Legend.Appearance.Position.AlignedPosition = AlignedPositions.TopRight;

                //radChart.Legend.Appearance.Overflow = Overflow.Row;

                radChart.ChartTitle.Appearance.Position.AlignedPosition = AlignedPositions.TopLeft;

                radChart.ChartTitle.Appearance.Position.Auto = false;

 

Let us also remark, the heigth of the RadChart equals to 600px a the width of the RadChart equals to 1000px.

<telerik:RadChart ID="radChart" runat="server" Height="600px" Width="1000px" EnableViewState="false">

                </telerik:RadChart>



We attached the image of the chart for the illustration as well.
We'll be very grateful for any suggestions about solving such the problem.

Kind regards,
SCT
SCT
Top achievements
Rank 1
 answered on 29 Sep 2011
0 answers
68 views
Hi,

I am currently researching on whether to use Http Get or Post in my Ajax Enabled website.
Can you tell me what protocol does the RadAjax controls like RadAjaxPanel use by default?(I think it uses Http Post)
Also can you tell me what should I do If I have to change the Protocol.
I would be extremely thankful if I can get a quick response.

Thanks in advance.
Shashank
Shashank Pandey
Top achievements
Rank 1
 asked on 29 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?