Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
63 views
Hello teleriks!

I am trying to add structure and datasource for a grid in the code behind, due to dynamic content.

To easier show the problems i have, i have created an sample project.

 The problem is, when I try to edit (double click) a row i get a index out of bounds exception. If i uncomment the code in GridNeedDataSource it works the first time, but when i try to dobuleklick to edit an other row, the same exception it thrown again.

I am new to web development, so i assume its something i dont understand here ^^

Btw, you asked me about license a few weeks ago, I just wanted to say that its on its way, but stuff takes time in this company :)
Kirie
Top achievements
Rank 1
 answered on 26 Sep 2011
4 answers
152 views
Hi,

I found a problem ... when I got a big image in the editor area and click it to select the size controls are visible outside the editor area and the buttons no longer fire an click event if the selected content "overlays" the buttons ... only a dbl click would launch e.g. the image editor. This bug also occurs at the demos ...

just select the image make it e.g. 2000x2000 pixel .. keep it selected an then try to click any button from the editor ...

Browser IE9 ... Firefox is fine on that issue

Any solution on that ?

Regards,
Harald
Ernesto
Top achievements
Rank 1
 answered on 26 Sep 2011
0 answers
144 views
Hi,

    I am using PopupExtender. In Rad grid, in each row I have an image button.. While clicking that am opening the pop extender. Its working fine. But am filling grid in a button click event which will throw a javascript confirm alert. if i press yes then in postback i will rebind the grid.. After binding, Pop up extender is not displayed if we click the image in rad grid.. i have placed the code in Item data bound also for associating the image button with pop up extender. but still its not working. How to overcome this issue?

    
protected void gridViewResourceList_ItemDataBound(object sender, GridItemEventArgs e)
       {
           try
           {
               if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
               {
                   PopupControlExtender PopupControlExtender1 = (PopupControlExtender)e.Item.FindControl("PopupControlExtender1");
                   Panel pnlPopUp = (Panel)e.Item.FindControl("pnlPopUp");
                   if (PopupControlExtender1 != null && pnlPopUp != null)
                       PopupControlExtender1.PopupControlID = pnlPopUp.ID;
               }
           }
}


Thanks
Esther
Esther Nirmala
Top achievements
Rank 1
 asked on 26 Sep 2011
1 answer
204 views
(fixed) See next post


I have a RadDatePicker on my page that is declared like this...

<telerik:RadDatePicker OnSelectedDateChanged="radDateStart_OnSelectedDateChanged" AutoPostBack="true"  Skin="CKCRadSkin" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ID="radDateStart" runat="server" />

The OnSelectedDateChanged event is in the code behind (of course). It looks like this.

        private void radDateStart_OnSelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
        {
 
            }

However, when I try to run this page I get this very confusing error.


Compiler Error Message: CS1061: 'ASP.location_addeditactivity_aspx' does not contain a definition for 'radDateStart_OnSelectedDateChanged' and no extension method 'radDateStart_OnSelectedDateChanged' accepting a first argument of type 'ASP.location_addeditactivity_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 104:                                <tr>
Line 105:                                    <td  style="padding: 0 0 0 0;">
Line 106:                                        <telerik:RadDatePicker OnSelectedDateChanged="radDateStart_OnSelectedDateChanged" AutoPostBack="true"  Skin="CKCRadSkin" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ID="radDateStart" runat="server" />
Line 107:


What gives? Any idea what it going on here?

Cheers

Brad




Brad
Top achievements
Rank 1
 answered on 26 Sep 2011
1 answer
144 views
I want to use a RadNumericTextBox to enter a value.  If the value is outside of the MinValue/MaxValue range I want the InvalidStyle CSS to be applied, but I still want the value.  I have set AllowOutOfRangeAutoCorrect to false.  So far, so good.  The value displays properly and uncorrected.

But when I do a postback I don't get the OnTextChanged event, presumably because the control has nuked my "invalid" value back to an empty string.  Is there an easy fix for this, or should I just do the css myself.

Thank you.

tg
Tsvetina
Telerik team
 answered on 26 Sep 2011
2 answers
743 views
Hi

I have skin applied to grid.   The value of one column wraps to next line and so
I wanted to change its fontsize to smaller so that it adjusts itself without wraping.

I tried applying CSS for that column, but no effect.

So how can i change fontname and  fontsize of a particular column , both at design and runtime, irrespective of skin applied.

-JD
Princy
Top achievements
Rank 2
 answered on 26 Sep 2011
1 answer
134 views
Why I used  mycalendar..Culture = new System.Globalization.CultureInfo("it-IT"); won't change the tool tip "open the calendar popup" from English to Italian?
Princy
Top achievements
Rank 2
 answered on 26 Sep 2011
1 answer
283 views
When I select date less than mindate or type any string value, raddatepicker shows error which is right but if I click on Save button it goes to server side click event.
As I expected it won't go to server side event.& this is not compulsory field so i don't want to use requiredfieldvalidator.

I don't understand,what's the use of Data Input ValidationGroup then?

Here is my code sample -

<telerik:RadDatePicker ID="rdpStartDate" MinDate="1900-01-01" runat="server" Width="200px">
                        <DateInput ID="DateInput1" runat="server" ValidationGroup="SafeVault">
                        </DateInput>
                    </telerik:RadDatePicker>

<asp:Button ID="rbtnSave" runat="server" CausesValidation="true" Text="Save"
                        ValidationGroup="SafeVault" OnClick="btnSave_Click" />
Shinu
Top achievements
Rank 2
 answered on 26 Sep 2011
1 answer
103 views

This Dropdown in inside editformsettings

If down arrow is press at time only dropdown show other wise don't show,

That function combo box id not get there



<telerik:RadComboBox ID="Radcombo_Type" runat="server" Skin="Vista" Width="80%" SelectedValue='<%# Bind("datatype") %>'
                                                           MaxLength="6" OnClientDropDownOpening="HandleOpen"  >
                                                           <Items>
                                                               <telerik:RadComboBoxItem runat="server" Text="Client" Value="Client" />
                                                               <telerik:RadComboBoxItem runat="server" Text="Main Contractor" Value="ManCon" />
                                                               <telerik:RadComboBoxItem runat="server" Text="Sub Contractor" Value="SubCon" />
                                                               <telerik:RadComboBoxItem runat="server" Text="Supplier" Value="Supler" />
                                                               <telerik:RadComboBoxItem runat="server" Text="Consultant" Value="Consul" />
                                                               <telerik:RadComboBoxItem runat="server" Text="Service Provider" Value="SerPro" />
                                                           </Items>
                                                       </telerik:RadComboBox>



function HandleOpen(sender, args) {
                debugger;
                var combo = (sender.id);
                var key = window.event.keyCode;
                if (key == 40) {//backspace
                    args.set_cancel(true);
                    combo.showDropDown();
                }
                else {
                    combo.hideDropDown();
                    args.set_cancel(false);
                }
 
            }

Reply as soon as possible

Thanks,
Mohamed.
Princy
Top achievements
Rank 2
 answered on 26 Sep 2011
2 answers
353 views
Hi,
I have used RadGrid and allow to export data in Excel, pdf, csv and word.
But the problem is that when ever we export data in csv file format. It doesn't export the hyperlink data. only export to non hyperlinked.
I want to inform you that  in Excel , pdf and word all the information are exporting with hyperlinked data. only problem with csv file.

 so please help me how to do that all my requirement that hyperlink data should be exported in csv file format.





Thanks & Regards
Jaichand
Jaichand
Top achievements
Rank 1
 answered on 26 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?