Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 views
Hello All,

         I am binding a datatable to a RadGrid through code behind.I am using a RadCombo also in my form.I have to change the items of the RadGrid on SelectedIndexChange of a RadCombo,but i am not able to do that,Can anyone help me for this.Please suggest me where am I going wrong or there are any special properties to change.

Thanking You in Advance,
Regards,
Ritzie
Ritzie
Top achievements
Rank 1
 answered on 20 Feb 2009
3 answers
145 views
It appears that the RadCombobox does not work in a radwindow. For an example create a radwindow which opens up a page with a radcombobox. Now attempt to select an item in the combobox. You will notice that the dropdown appears away from the RadCombobox. In some cases randomly on the screen. Can you please confirm that this is a bug.

Thanks
Georgi Tunev
Telerik team
 answered on 20 Feb 2009
5 answers
125 views
Hello,
Im using RadTree in Combobox, but i have one problem, when i first click on combo box list item it is displaying all the list items in the display are, but when i click for the second time it is workin fine.

 Here is the code for this:

<

 

telerik:RadComboBox ID="RadComboBox1" Font-Names="Verdana" runat="server" Height="251px" Width="400px" ShowToggleImage="True" Skin="WebBlue"

 

 

style="vertical-align:middle;" HighlightTemplatedItems="true" Sort="Descending">

 

 

<ItemTemplate>

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" Width="300px" Font-Names="verdana" Skin="WebBlue" Font-Size="X-Small" OnClientNodeClicking="nodeClicking" >

 

 

<WebServiceSettings Path="ProductCategories.asmx" Method="GetTreeViewCategories" />

 

 

<Nodes>

 

 

<telerik:RadTreeNode Text="Al Bahah" Value="1" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Al Jawf" Value="2" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Madinah" Value="3" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Al Qassim" Value="4" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Riyadh" Value="5" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Asir" Value="6" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Eastern Province" Value="7" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Hail" Value="8" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Jazan" Value="9" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Makkah" Value="10" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Najran" Value="11" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Northern Frontier" Value="12" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

<telerik:RadTreeNode Text="Tabuk" Value="13" ExpandMode="WebService"></telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeView>

 

 

</ItemTemplate>

 

 

<Items>

 

 

<telerik:RadComboBoxItem />

 

 

</Items>

 

 

</telerik:RadComboBox>

 



Can any one suggest something.

Regards and thnx..

Khalid
Veselin Vasilev
Telerik team
 answered on 20 Feb 2009
6 answers
150 views
Hello,

I'm using the RadRotator to display some news headlines. I use the rotator inside a UserControl.
When I include the UserControl in a nromal aspx page, everything works perfect.
But if I use the userControl as a Sherepoint SmartPart, then I experience very slow performance with the rotator. I tried to open the page with iexplore and firefox, and in both cases the browser takes 60% of my dual core CPU while displaiyng the page.

Is there a workaround for this?

Please let me know how I can solve the performance problem.
Fiko
Telerik team
 answered on 20 Feb 2009
9 answers
186 views
Hi,

I'm facing a strange issue, in my WCM SharePoint website I use RadMenu instead of standard menu provided by Microsoft. Everything is great except that the menu doesn't highlight the good selected link in the menu. I think it's because I use relative links instead of absolute links (but as my website is accessed with different URLs I can't use absolute links). 

So, I decided that I will use clientside scripting to get the menu highlight the good items. This is the code I (thought I could) use :

_spOnLoadBodyFunctionsNames.push("HighlightMenuItem"); //because SharePoint needs this :p  
function HighLightMenuItem() {  
    var menu = $find("ctl00_RadMenuTop"); // Can't use <%=RadMenuTop.ClientID%> as this is not allowed in SharePoint masterpage  
    if(menu != null) {  
        var menuItemFocused = menu.get_focusedItem(); // to get the default page that is always focused in my case;  
        if(menuItemFocused != null) {  
            menuItemFocused.blur();  
        }  
        var menuItemSelected = menu.findItemByAbosluteUrl(window.location.href);  
        if(menuItemSelected != null) {  
            menuItemSeleted.set_focused();      
        }  
    }  
} 

This code doesn't work, so I tried to debug with the old good method and kept just this part :

_spOnLoadBodyFunctionsNames.push("HighlightMenuItem"); 
function HighLightMenuItem() {  
    var menu = $find("ctl00_RadMenuTop");
    if(menu != null) {  
          alert("Menu found");  
    }  
} 

And this doesn't work either ! If I replace the $find with a $get the latter code works but not the first one (obviously because $get doesn't return a component). As you can see I'm a bit stuck... :D

Does anyone has a Idea about why the $find method doesn't work in that case ?

Thank for any help !
Edgar
STEMax
Top achievements
Rank 1
 answered on 20 Feb 2009
7 answers
255 views
I have a grid that uses a custom skin.  It has a column editor that I want to use an embedded skin.

I wrote some code to change the skin in the Item Created, but I get a error.


Code:

 

protected

 

void CancellationsGrid_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

 if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

 {

 

  RadDatePicker picker = ((e.Item as GridEditableItem)["DateColumn"].Controls[0] as RadDatePicker);

 

 

  if (picker != null)

 

  {

   picker.EnableEmbeddedSkins =

true;

 

   picker.Skin =

"Sunset";

 

  }

 }

}

 

 

 

 

Error:

Message:

 

InvalidOperationException: Telerik.Web.UI.DatePickingInput with ID='dateInput' was unable to find embedded skin with name 'CoffeeShop'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

 

Source:

 

   at Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType)

   at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control)

   at Telerik.Web.UI.RadWebControl.RegisterCssReferences()

   at Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadInputControl.OnPreRender(EventArgs e)

   at Telerik.Web.UI.RadDateInput.OnPreRender(EventArgs e)

   at Telerik.Web.UI.DatePickingInput.OnPreRender(EventArgs e)

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Control.PreRenderRecursiveInternal()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



I tried to also set
picker.DateInput.EnableEmbeddedSKins = true;

It didn't help.  I keep getting the same error.

Is it possible to accomplish this?
Sebastian
Telerik team
 answered on 20 Feb 2009
3 answers
199 views
Is there anyway to configure the spell-checker to default to UK-English rather than US_English?
Stanimir
Telerik team
 answered on 20 Feb 2009
1 answer
72 views
Hi,

I'm trying to open a modal window that has no margins. I've created my own skin and was able to successfully turn off the border by editing the style, but I've been unable to change the margins. Using the IE Developer Toolbar, I've found that the margin is set to 15px 10px. I'd like to set this to 0px, but cannot locate what style needs to be changed.

Any help would be greatly appreciated.

Thanks!
Georgi Tunev
Telerik team
 answered on 20 Feb 2009
2 answers
283 views
Is it possible to change the window skin on opening a window using javascript such as below?

function OpenRw(varPage, var1, var2) {                        
var oManager = GetRadWindowManager();  
var oWnd = oManager.GetWindowByName("pgRadWindow");   
if (!oWnd) return;  
if (varPage == "1"){  
var newUrl = "Slideshows.aspx?id="+var1 ;  
oWnd.SetSize(565,545);  
oWnd.Skin = "Gray";  
}  
oWnd.SetUrl(newUrl);  
oWnd.Show();  
} 

Thanks,
Dave
Georgi Tunev
Telerik team
 answered on 20 Feb 2009
2 answers
124 views
I have several aspx pages that I would like to use a rad menu on but those pages vary in the content that they need for the menu to show. The easiest way to determine what set of values to load into a given pages radmenu is to use querystring information. Is there a way to load a specific datasource into the radmenu based on querystring information??

thanks in advance


Atanas Korchev
Telerik team
 answered on 20 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?