Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
133 views
I have a radgrid using master detail hierarchy and I want to be able to disable the edit and insert commands depending on the user. Where is the best place/event to disable these commands? I am able to prevent the Insert command from being visible but can't find where to hide the Edit.
Protected Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
        If (TypeOf e.Item Is GridCommandItem) Then
            Dim commandItem As GridCommandItem = CType(e.Item, GridCommandItem)
            commandItem.Visible = False
        End If
    End Sub

AkAlan
Top achievements
Rank 2
 answered on 27 Sep 2011
2 answers
310 views
I have a textbox control (textbox1) within the itemtemplate of a radgrid and this radgrid lies within a contentplaceholder of a master page.

How can I use findcontrol to find this textbox1 inside the page_load event ?

Thank you
vincent
Top achievements
Rank 1
 answered on 27 Sep 2011
6 answers
128 views
I found related posts on this, but I didn't find anything specific to what I'm looking for. I like to move the Y-Axis item labels to the right of the Y-Axis. Is that possible? Thanks for any pointers on this.
George
Top achievements
Rank 1
 answered on 27 Sep 2011
1 answer
166 views
Hi to  All,
               This is siddiqali Working on Sharepoint 2010 Using Visual webpart.I am using Rad Controls .,I need to upload image in Sharepoint 2010 Picture Library using Visual Web-part .Can any one tell me how it is possible.

Thanks,
MOHAMMAD SIDDIQALI.




Kalina
Telerik team
 answered on 27 Sep 2011
2 answers
82 views

How can I get the row object based upon the checking of a check box?
I'm using

<ItemTemplate>

<asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>

</ItemTemplate>
And I have

Protected Sub ToggleRowSelection(ByVal sender As Object, ByVal e As EventArgs)
CType(CType(sender, CheckBox).NamingContainer, GridItem).Selected = CType(sender, CheckBox).Checked
End Sub
I've seen
http://www.telerik.com/community/forums/aspnet-ajax/grid/add-selected-items-to-an-arraylist.aspx
and I've added

OnItemCommand to the RadGrid but it does not seem to fire. What I need to end up with is something like:

Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)

Dim PMID As String = DataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("PMID").ToString 
Is there a way to put this in the ToggleRowSelection event?

 

 

 


William
Top achievements
Rank 1
 answered on 27 Sep 2011
1 answer
76 views
Im using _SetValue to avoid triggering events but when using _SetValue I lose all currency and decimal place formatting.  Is there another function I can call to essentially refresh the formatting?
Justin
Top achievements
Rank 1
 answered on 27 Sep 2011
1 answer
79 views
Hi Telerik Team,

       We have a usercontrol (ucList1) with asp:panel. This panel is return by aproperty. In main page this usercontrol is inside an xmlhttppanel.Radajax Manger is also here and in codebehind like below

RadAjaxManager.AjaxSettings.AddAjaxSetting(radgrid1, ucList1.PNL, RadAjaxLoadingPanel1);


       The main page is a child page of a master page. In main page radgrid is on left side and usercontrol is on right side.On first time loading filtering is working properly.But while trying to filter after on grid row click got an error like

Error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_ucEmailTemplateDetail1_pnlHasRecordPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

waiting for the reply
Dayana M.T

Pero
Telerik team
 answered on 27 Sep 2011
3 answers
62 views

Hi telerik,

 

  I use two Related ComboBoxes ,but when I set the combobox can input for search,the combobox will just  load one item,and when I click anywhere then click combobox, it will load all items...
  I use your livedemo "ComboBox / Related ComboBoxes " , I change the RadComboBox2 can input and search is also have this bug.

Your code:

<telerik:RadComboBox ID="RadComboBox2"
                runat="server" 
                EnableViewState="false"
                Width="186px" 
                CssClass="ComboBox_Countries" 
                OnClientSelectedIndexChanging="LoadCities" 
                OnClientItemsRequested="ItemsLoaded"
                OnItemsRequested="RadComboBox2_ItemsRequested" />

I changed to ( I add EmptyMessage EmptyMessage):
<telerik:RadComboBox ID="RadComboBox2"
    runat="server" 
    EnableViewState="false"
    Width="186px" 
    CssClass="ComboBox_Countries" 
    OnClientSelectedIndexChanging="LoadCities" 
    OnClientItemsRequested="ItemsLoaded"
    EmptyMessage="Search for address..." 
    EmptyMessage="Contains"
    OnItemsRequested="RadComboBox2_ItemsRequested" />

Please help.
Ivana
Telerik team
 answered on 27 Sep 2011
3 answers
402 views
After upgrading to ver.2011.2.712.40 we've started receiving the error below:

Message : Item has already been added. Key in dictionary: 'Telerik.Web.SkinsAssembly'  Key being added: 'Telerik.Web.SkinsAssembly'

Source : mscorlib

Help link :

ParamName :

Data : System.Collections.ListDictionaryInternal

TargetSite : Void Insert(System.Object, System.Object, Boolean)

Stack Trace :    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)

   at System.Collections.Hashtable.Add(Object key, Object value)

   at System.Collections.Specialized.NameObjectCollectionBase.BaseAdd(String name, Object value)

   at System.Collections.Specialized.NameObjectCollectionBase.BaseSet(String name, Object value)

   at System.Collections.Specialized.NameValueCollection.Set(String name, String value)

   at Telerik.Web.SkinRegistrar.GetDefaultSkinsAssemblyName()

   at Telerik.Web.SkinRegistrar.GetAllEmbeddedSkinAttributes(RadSkinManager skinManager, Type controlType)

   at Telerik.Web.UI.Common.BaseClass.GetShortControlName(Control control)

   at Telerik.Web.UI.Common.BaseClass.GetValueFromConfig(String keyFormat, Control control)

   at Telerik.Web.UI.Common.BaseClass.GetGlobalEnableEmbeddedBaseStylesheet(Control control)

   at Telerik.Web.UI.RadDataBoundControl.get_EnableEmbeddedBaseStylesheet()

   at Telerik.Web.UI.RadDataBoundControl.Telerik.Web.ISkinnableControl.get_EnableEmbeddedBaseStylesheet()

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

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

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

   at Telerik.Web.UI.RadDataBoundControl.ControlPreRender()

   at Telerik.Web.UI.RadDataBoundControl.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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


We have 7 servers in a web farm and it occurs randomly on 1-2 servers but every day usually right after a daily IIS pool recycle. No skin setiing in the web.config. Some telerik controls use a default skin (no skin value set), some of them use our custom skin (set in the control property).

Please advise.
Lini
Telerik team
 answered on 27 Sep 2011
3 answers
106 views
Hi,
I'm looking for some further information and/or some example code on using a RibbonBarToggleList.

1) Is there a property in the RibbonBarToggleList that indicates which (if any) button in the list is selected? Or do I have to loop through all of the buttons in the collection to either set or get the selected button?

2) Is there a server-side event that gets fired when a button in a RibbonBarToggleList gets clicked?

Any help appreciated,
Ian
Ian
Top achievements
Rank 1
 answered on 27 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?