Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
122 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
142 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
111 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
97 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
469 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
156 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
0 answers
110 views
Hi, How can I persist grid selection using client-side API.
I've tried http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html but doesnt work for me, I think is because im using radbutton in templates columns like this. Im doing server-side binding. But when I change page, and back im loosing selection

<Columns>
<Telerik:GridTemplateColumn UniqueName="Assigned" HeaderText="Assigned">
<ItemTemplate>
<Telerik:RadButton ID="rbAssigned" runat="server" ToggleType="CheckBox" ButtonType="ToggleButton"
AutoPostBack="false" Skin="Forest" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true"
OnClientLoad="ButtonLoad">
<ToggleStates>
<Telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckboxChecked" Selected="true" />
<Telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckbox" />
</ToggleStates>
</Telerik:RadButton>
</ItemTemplate>
<ItemStyle Width="50px" />
</Telerik:GridTemplateColumn>
Martin
Top achievements
Rank 1
 asked on 27 Sep 2011
2 answers
123 views
I have an array bound to RadGrid.
I can use the <%#Eval method to get the values in the root of the array in the aspx file. However, there is one particular value which is inside an array where I do not know how to get it.

eg of the array structure
customername   Michael
    customerdetails
         specialremarks   xxxxxxxx
  
How can I get the value for specialremarks ?

I tried the itemdatabound but to no avail.

Any help is much appreciated

Thank you
vincent
Top achievements
Rank 1
 answered on 27 Sep 2011
1 answer
114 views

 

on clicking GridEditCommandColumn postback occours but not able to perform inline editing..what methods i need to implement,i want to bind dropdown on editing that too from code behind,so where should i write that method

 

Princy
Top achievements
Rank 2
 answered on 27 Sep 2011
1 answer
298 views
Hi Team,

I have a radGrid with a nested table which contains radList View and I have to style it as shown in the attachment(Nested_Table.jpg), here i can have multiple rows selected/active/expanded at one point of time.
I am facing 2 issues right now
1. I am a able to use rgSelected class to style the selected row but dont know how style the row which is nested below as shown in(Nested_Table_1.jpg)
2. When multiple rows are expanded if i select a row manually the other two rows are losing the style as shown in (Nested_Table_2.jpg)

the skin i am using for this is
<rad:RadGrid runat="server"
    SkinID="CSFSelectionGrid"  
    HeaderStyle-Wrap="true"
    ItemStyle-Wrap="true"
    AlternatingItemStyle-Wrap="true"
    AllowFilteringByColumn="false"
    EnableEmbeddedSkins="false"
    EnableEmbeddedBaseStylesheet="false"
    GroupingSettings-CaseSensitive="false"
    CssClass="SimpleGrid"
    ImagesPath="~/Skins/Plain/Grid"
    AllowMultiRowSelection="true" >           
        <ClientSettings AllowColumnsReorder="False" ReorderColumnsOnClient="False" AllowExpandCollapse="True">
                        <Selecting AllowRowSelect="True"/>
                        <Scrolling AllowScroll="false" UseStaticHeaders="True"/>
        </ClientSettings>
        <MasterTableView AllowNaturalSort="false" AllowCustomSorting="true" >
             
        </MasterTableView>
</rad:RadGrid>
 and the class changes are
.SimpleGrid .rgSelectedRow td,
.SimpleGrid .rgSelectedRow td.rgSorted
{
    background-color:#b0c5da;
    border-bottom:1px solid #ccc !important;
}
and the server code is
protected void RequestCSFs_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.ExpandCollapseCommandName && e.Item is GridDataItem)
    {
        ((GridDataItem)e.Item).ChildItem.FindControl(NESTED_VIEW_TEMPLATE_PANEL).Visible = e.Item.Selected = !e.Item.Expanded;
    }
}

Please suggest me how to achieve the desired result.
Thanks,
Preetham
Preetham
Top achievements
Rank 2
 answered on 27 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?