Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
209 views
Hi,

I recently upgraded to VS 2008 from VS 2005 (although 2005 is still installed) and installed the most recent telerik install for the templates and such, and have encountered the following error since:

Error: this template attempted to load an untrusted component 'Telerik.Web.UI.VSX, Version=2009.03.1313.0, Culture=neutral, PublicKeyToken=0dfdc51bd06071b4'. For more information on this problem and how to enable this template please see documentation on Customizing Project Templates.

Any idea how to fix this?
loai taha
Top achievements
Rank 1
 answered on 22 Jan 2010
4 answers
577 views
Hello,

I have 2 RadListBoxes where items can be transferred between them. One is Source and the other is Selected. Users will move items from the Source ListBox to the Selected ListBox to select items. On PostBack, the items in the Selected ListBox must be saved. Unfortunately, when I check the radListBoxSelected.Items on PostBack, nothing is there to save.

I started with just setting PersistClientChanges="true" but when that did not work, I added JavaScript handlers to the OnClientTransferring and OnClientTransferred events of the Selected ListBox that set trackChanges() and commitChanges() before and after each transfer. It still does not work. What do I need to do?


The are ListBoxes are defined as follows:
 

<rad:RadListBox ID="radListBoxSelected" runat="server" Skin="Vista" Height="120px" AllowTransfer="true" AllowTransferOnDoubleClick="true"  AllowTransferDuplicates="false" ButtonSettings-ShowTransfer="true"  ButtonSettings-ShowTransferAll="true"  ButtonSettings-VerticalAlign="Middle"  EnableDragAndDrop="true"  Sort="Ascending" TransferToID="radListBoxSource" PersistClientChanges="true"  />

 

 

 

<rad:RadListBox ID="radListBoxSource" runat="server" Skin="Vista" Height="120px" AllowTransferOnDoubleClick="true" AllowTransferDuplicates="false" EnableDragAndDrop="true" PersistClientChanges="true" />

OnClientTransferring JavaScript 

 

function RadListBoxSelected_OnClientTransferring(sender, args) {
     var listBox = $find('<control ID>');
     listBox.trackChanges();
}

OnClientTransferred  JavaScript

function RadListBoxSelected_OnClientTransferred(sender, args) {
     var listBox = $find('<control ID>');
     listBox.commitChanges();
}

 

 

 

 

 

 

 

 

 

Guillaume
Top achievements
Rank 1
 answered on 22 Jan 2010
4 answers
99 views
We use the Telerik AJAX ASP.NET 2008.3 1314 and everything works fine except with Firefox 3.5.7.
The Upload Progress Panel doesnt appear with this browser.
Does a Workaround exist?

Best regards,
Stefan
Stafan Müller
Top achievements
Rank 1
 answered on 22 Jan 2010
2 answers
236 views
I use <a href="http://www.telerik.com/community/code-library/aspnet-ajax/combobox/using-checkboxes-for-multi-item-selection.aspx">Using CheckBoxes for multi-item selection</a> to do a multi-item selection. but I want to pre-select some items base on a query from database.

to make myself clear, say I havea combo with there checkbox,

item1
item2
item3
item4

when page load, i want to pre-check some of these items based on which user is login, if user1 login, all items except item1 is checked, if user2 login, item1 and item4 is checked, and so on.

How to do I do that?  thanks.
steven
Top achievements
Rank 1
 answered on 22 Jan 2010
5 answers
295 views
Hi,
There is a bug with RadTextBox when using RequiredFieldValidators.

I have explicitly set "CausesValidation=false" and it still fires my validator.

Please let me know once a fix is in place.

Cheers
Pavel
Telerik team
 answered on 22 Jan 2010
1 answer
95 views
Hi all, my client is having a weird problem that I can easily reproduce and I am hoping that someone has some advice or has also seen this issue.

I am using the latest version of radcontrols (not sp2 though). I have a form with many radcombo boxes on it, and I have set the tab order of most of the items on the form to follow a specific route. Works great, when I tab onto a combo it puts focus on the input, when I tab off, it moves focus to the next control. Great.

However, there is a button on the form that calls a radwindow to gather some additional info. What is weird is after this window is closed, then all comboboxes that do not have a taborder assigned, when you tab out, focus moves onto the drop down (arrow) of the control, instead of the next control. I have some dynamically added controls so assigning the taborder is not my first choice for these controls...

Any ideas Telerik or my fellow users?

Thanks in advance.
Yana
Telerik team
 answered on 22 Jan 2010
1 answer
101 views

Hi,

I am tring to create a year calendar (multi month) to select, save and restore in a DB multiple sections (periods) and I do not know where to start.  My goal is to setup a banner system where the same banner can be showed for multiple days at different period in a year.

For example: december 2,3,4,5,6 ; january 9,10,11,12,13; etc.

My DB is not structured so I am free to set it up to support the calendar.  The selected dates could be saved in 1 field (comma separated) or in many records (one for each period - start to end).

  1. Is it possible to do it with the calendar control?
  2. Do you have clue, sample, demo, hit to help me to start it correctly?

Thank you

Erik



Radoslav
Telerik team
 answered on 22 Jan 2010
2 answers
535 views

I'm creating several textboxes and dropdown controls.  Some have a related RequiredFieldValidator control.  The RequiredFieldValidator is created as follows:

        RequiredFieldValidator getValidator(string ctrlNo, bool visible, Label lbl, TextBox txt, RadComboBox rcb)
        {
            string lblName = (lbl==null ? "This " : lbl.Text.Replace(" "," "));
            RequiredFieldValidator rfv = new RequiredFieldValidator();
            rfv.ID = "rfv_" + ctrlNo;
            rfv.Visible = visible;
            if (txt.Visible == true)
                rfv.ControlToValidate = txt.ID;
            if (rcb.Visible == true)
                rfv.ControlToValidate = rcb.ID;
            rfv.ErrorMessage = lblName;
            rfv.ToolTip = lblName;
            rfv.Text = "*";
            rfv.ValidationGroup = "cmsave";
            return rfv;
        }

 This method is called from the following section of code which inserts rows into a table.  Insert location is marked with a PlaceHolder control (ID="tblInsertRow").

                // instantiate each control.
                Label lbl = getLabel(ctrlNo, bShowLbl, property.Label);
                TextBox txt = getTextBox(ctrlNo, bShowTxt, property.ControlWidth);
                RadComboBox rcb = getComboBox(ctrlNo, bShowRcb, property.ControlWidth, list);
                RequiredFieldValidator rfv = getValidator(ctrlNo, bShowRfv, lbl, txt, rcb);

                // STEP 2 - ADD CONTROLS TO A ROW

                if (txt.Visible == true || rcb.Visible == true)
                {
                    // create new table row.
                    TableRow row = new TableRow();

                    // create 1st cell; add label; add cell to row.
                    TableCell cell_0 = new TableCell();
                    if (lbl.Visible == true)
                        cell_0.Controls.Add(lbl);
                    cell_0.ColumnSpan = 1;
                    row.Controls.Add(cell_0);

                    // create 2nd cell; add control; add cell to row.
                    TableCell cell_1 = new TableCell();
                    if (txt.Visible == true)
                        cell_1.Controls.Add(txt);
                    if (rcb.Visible == true)
                        cell_1.Controls.Add(rcb);
                    if (rfv.Visible == true)
                        cell_1.Controls.Add(rfv);
                    cell_1.ColumnSpan = 3;
                    row.Controls.Add(cell_1);

                    // add row at place holder into existing table.
                    tblInsertRow.Controls.Add(row);
                }

 

When the user clicks the "Save" button, I force a validation of all validators as follows:

            // force validation of controls.
            Page.Validate("cmsave");

            if (Page.IsValid == false)
            {
                // display message.
                return;
            }

The problem I'm having is that Page.IsValid is always "true".  I read some older posting that stated that you cannot use RequiredFieldValidator with AJAX, but I don't believe that's true anymore since I've done it before with static controls.  This is the 1st time I'm trying to do this with controls created at runtime.  These controls are created in a User Control that is displayed on a Page with a Master Page.  Could this be a RadScriptManager related issue?  What am I missing?  TIA, Gary.

Kalina
Telerik team
 answered on 22 Jan 2010
5 answers
781 views
Hello Telerik Team,

I'm developing my web-app based on RadTabStrip/MultiPage load on demand pageviews. I was happy with the end-result until I realised that each time I click a tab, ALL the pageviews are reloaded, which means ALL the User Controls are reloaded too, which is not good!

Also, I can't use the RenderSelectedPageOnly option on MultiPage cause I cancel ajax requests for tabs whose corresponding pageviews have been loaded.

So, the desired behavior is :

1) Load the user controls on demand, so I can navigate through them without doing unnecessary postback.

2) When I click on a tab which is not already loaded, I just want his appropriate pageview loaded, keeping the others pageviews unaffected.

Is it possible to do that? If so, How can I modify your online demo to achieve the desired behavior?

Thanks in advance!

Pierre-Luc
Yana
Telerik team
 answered on 22 Jan 2010
2 answers
136 views
Hi,
I'm localizing the RadUpload control at the server side - for example:
      theUpload.Localization.Select = "Wybierz plik";
The text changes as required but while under FF and Opera it looks perfect (see attached unpload_ok.jpg), under IE7/8, Chrome and Safari the caption is shifted to the right and truncated (see upload_bad.jpg).
Whats can I do to improve the look under these browsers?

Regards
Tomasz
Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 22 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?