Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
192 views

I'm having trouble with the RadListBox on selected index changed. OnSelectedIndexChanged does not fire an event at all and OnClientSelectedIndexChanged gives a JS error.
I'm using the RadListBoxes to move items around as described in http://demos.telerik.com/aspnet-ajax/listbox/examples/overview/defaultcs.aspx#qsf-demo-source
 
But I also need to display information about the single selected item so the user knows if this is the right item to move.  But I'm getting a Error: 'AllGroupsRadListBox_SelectedIndexChanged' is undefined.

<telerik:RadListBox runat="server" ID="AllGroupsRadListBox" Height="200px" Width="200px" AllowTransfer="true" SelectionMode="Single" TransferToID="SharedGroupsRadListBox" OnClientSelectedIndexChanged="AllGroupsRadListBox_SelectedIndexChanged" />
<telerik:RadListBox runat="server" ID="SharedGroupsRadListBox" Height="200px" Width="200px" /><br />
Users in selected group:<br />
<telerik:RadListBox runat="server" ID="UsersRadListBox" Height="200px" Width="200px" />
  
private void FillAllGroups()
{
 BWGroups allGroups = new BWGroups();
 allGroups.GetAllBWGroups();
  
 AllGroupsRadListBox.DataTextField = "BWGroupName";
 AllGroupsRadListBox.DataValueField = "BWGroupID";
 AllGroupsRadListBox.DataSource = allGroups.BWGroupList;
 AllGroupsRadListBox.DataBind();
}
  
protected void AllGroupsRadListBox_SelectedIndexChanged(object sender, EventArgs e)
{
int parseGroupId = -1; Int32.TryParse(AllGroupsRadListBox.SelectedValue.ToString(), out parseGroupId);
BWUsers usersInGroup = new BWUsers();
  
if(parseGroupId > 0)
 usersInGroup.GetActiveBWUsersByGroupID(parseGroupId);
  
UsersRadListBox.DataTextField = "BWGroupName";
UsersRadListBox.DataValueField = "BWGroupID";
UsersRadListBox.DataSource = usersInGroup.BWUserList;
UsersRadListBox.DataBind();
}
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2014
1 answer
213 views
Hi There,

I'm using a rad window to display a pdf in asp.net through navigate URL property. But the tooltip is not working. I have tried using Rad tooltip and Rad Tooltip Manager, But they are not working on the rad window. I have set the target control property and client id property also. Please Help
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2014
3 answers
315 views
I cannot figure out how to apply a Fillstyle to a Bar or Area Series Pragmatically. Also it appears that by default an Area chart does something with the opacity of its chart colors. How and where do I access this property? Any help would be appreciated.
Stamo Gochev
Telerik team
 answered on 06 Aug 2014
7 answers
139 views
I was testing the RadEditor demo you have here

http://demos.telerik.com/aspnet-ajax/editor/examples/rtfexport/defaultcs.aspx

I exported the content from your demo (no changes on my side).
The document created has the line breaks in wrong places, words at the end of the lines are getting split.
Is this a known issue?
I tested it with :
- Google Chorome Version 36.0.1985.125
- IE 11

I tried to attach to this post a doc that has 2KB and I get the message:
The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .gif, .jpg, .jpeg, .png).
Ianko
Telerik team
 answered on 06 Aug 2014
9 answers
894 views
Hello,

I am working on a project with a RadGrid.
In the RadGrid, each column has a filter.
The grid has a DetailView.

The requirements of my project are as follows: 
  • All data in rows should not be word wrapped. 
  • Each column’s width should be equal to that column’s content.

The same rules should also apply to DetailView.

Thanks,
Daniel.
Princy
Top achievements
Rank 2
 answered on 06 Aug 2014
3 answers
304 views
Hi

I have a menu with text in it that I need to center align.

Problem is two of the menu items have longer text in them so I need to individually align them to the right,
but I cant do that because it conflicts with the currents css class used for all the menu items.

Grant.
Princy
Top achievements
Rank 2
 answered on 06 Aug 2014
2 answers
125 views
Hi ,

I tried to place my menu inside radsplitter. Everything worked fine if I don't put child menu items. But if I put child menu item, it don't appear even if I hover the mouse over parent item. Below is the code I use. I tried on chrome and mozilla. Both not working. Can anyone help me? And I put the below code inside masterpage. I am using telerik version 2014.1.403.40 


<telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="99.8%"
    Orientation="Horizontal">
    <telerik:RadPane ID="RadPane1" runat="server" Scrolling="none" Height="50px">
        <telerik:RadMenu ID="settingMenu" runat="server" EnableEmbeddedSkins="false" Width="100%"
            EnableSelection="true" Skin="MySkin">
            <Items>
                <telerik:RadMenuItem runat="server" ImageUrl="~/Images/NEW.png" HoveredImageUrl="~/Images/NEW.png"
                   >
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="User Account Settings">
                    <GroupSettings ExpandDirection="Down" />
                    <Items>
                        <telerik:RadMenuItem runat="server" NavigateUrl="Acc.aspx" Text="Account">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" NavigateUrl="AccessRights.aspx" Text="Access Rights">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" NavigateUrl="Modules.aspx" Text="Modules">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Plan" NavigateUrl="Schedule.aspx">
                </telerik:RadMenuItem>
                  
            </Items>
        </telerik:RadMenu>
    </telerik:RadPane>
    <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">
        <telerik:RadSplitter ID="NestedSplitter" runat="server" LiveResize="true" ResizeMode="EndPane"
            OnClientLoaded="SplitterLoaded">
            <telerik:RadPane ID="LeftPane" runat="server" Width="60" MinWidth="60" MaxWidth="60">
            </telerik:RadPane>
            <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward"
                BackColor="Red" />
            <telerik:RadPane ID="ContentPane" runat="server" Width="80%" Scrolling="None">
                <telerik:RadSplitter ID="NestedSplitter2" runat="server" LiveResize="true" Orientation="Horizontal">
                    <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" />
                    <telerik:RadPane ID="ContentPane2" runat="server" Scrolling="None">
                        <div id="quotescointainer1" class="quotescointainer">
                            <asp:Panel ID="pnlMain" runat="server">
                                <asp:ContentPlaceHolder ID="cphContent" runat="server">
                                </asp:ContentPlaceHolder>
                            </asp:Panel>
                        </div>
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </telerik:RadPane>
</telerik:RadSplitter>


Warmest regards,
Ei Wai
Ei Wai
Top achievements
Rank 1
 answered on 06 Aug 2014
20 answers
464 views
Hi,

I'm getting a sharing violation exception when using RadAsyncUpload (version 2010.3.1117.35)  to upload an Excel file which is also open in another window. 

Is there a way to trap or prevent the error?    The exception appears to occur before the client-side events fire, so neither the
OnClientFileUploadFailed   or  OnClientValidationFailed execute.

Thanks in advance for your help,

Randy Hompesch
Top achievements
Rank 1
 answered on 05 Aug 2014
1 answer
136 views
Hi there.

I have a pretty straight forward pivotgrid with 12 columns (months) with a grand total column.

I want another column after the grand total that shows me the monthly average value. i.e. grand total value divided by 12 (the number of PivotGridColumnFields). 

Is this possible?

I saw this thread but the solution would generate a column after each month column which is not what i'm after as described above.
 
Thanks
Chris 
Maria Ilieva
Telerik team
 answered on 05 Aug 2014
1 answer
295 views
Hello telerik support,

In my case, The grid allow users to check the GridClientSelectColumn (CheckBox) for multiple deletion

after users selected all columns that they want to delete, they can press delete button to delete the selected records.

In core behind im going to save the GridDataItem in the List<GridDataItem> and using foreach loop to run FireCommandEvent

foreach (GridDataItem item in deleteList)
            {
                item.FireCommandEvent("Delete", string.Empty);
            }


However, the loop can only delete one record on the list.

After that, i try to use FireCommandEvent in immediate window and it return "expression has been evaluated and has no value"

May i ask if there is any solution so solve this problem?


Thanks,
KK






Princy
Top achievements
Rank 2
 answered on 05 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?