Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
256 views

Hi!

    I have 4-level hierarchical <asp:dropdownlist > items within <telerik:RadListView>, when I change the first level dropdownlist, the function SelectedIndexChanged was triggered, when the dataset returns nothing, I want to add an empty listitem to the dropdown, but, after the function has gone through completed, the listitem of 2nd tier still remain the same before selectedindexchanged, what has I missed? I have attached partial code below.

Thanks in advanced.

SH

-- xxx.aspx
 <telerik:RadListView ID="RadLVFbData" DataKeyNames="FormId" runat="server" RenderMode="Lightweight"
                            ItemPlaceholderID="CSDetailContainer" OnNeedDataSource="RadLVFbData_NeedDataSource" OnItemCommand="RadLVFbData_ItemCommand"
                            OnItemDataBound="RadLVFbData_ItemDataBound" OnItemCreated="RadLVFbData_ItemCreated"
                            Skin="Silk">
   ...
   <table style="width:100%;border-collapse:separate" border="0">
                           <tr>
                            <td style="width: 25%">Type Category:</td>
                            <td style="width: 20%"><asp:DropDownList ID="ddlFBTypeL1" Width="100px" runat="server" OnSelectedIndexChanged="ddlFBTypeL1_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList></td>
                            <td style="width: 20%"><asp:DropDownList ID="ddlFBTypeL2" Width="120px" runat="server" OnSelectedIndexChanged="ddlFBTypeL2_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList></td>
                            <td style="width: 20%"><asp:DropDownList ID="ddlFBTypeL3" Width="120px" runat="server" OnSelectedIndexChanged="ddlFBTypeL3_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList></td>
                            <td><asp:DropDownList ID="ddlFBTypeL4" Width="120px" runat="server" OnSelectedIndexChanged="ddlFBTypeL4_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList></td>
                            </tr>
                        </table>                        
                                                   
 
 </telerik:RadListView>
---------------------------------------------------------------------------------------------------------------------------
-- xxx.aspx.cs
 protected void ddlFBTypeL1_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                DataSet dsChild = new DataSet();
                DataSet ds = new DataSet();
                DropDownList elemDDLFBTypeL1 = sender as DropDownList;
                                
                //get next layer UI element for ddlFBTypeL1
                DropDownList elemDDLFBTypeL2 = elemDDLFBTypeL1.NamingContainer.FindControl("ddlFBTypeL2") as DropDownList;
               
                string strFBTypeL1ID = "00001"; //first layer ID
                string strFBTypeL1Val = elemDDLFBTypeL1.SelectedValue;
                string strFBTypeL2ID = "";
                //get data for 2nd layer
                dsChild = objChoiceRelLogic.getChoiceRelByParentIdVal(strFBTypeL1ID, strFBTypeL1Val);
                if (dsChild != null && dsChild.Tables[0].Rows.Count > 0)
                {
                    ....
                }
                else
                {
                    elemDDLFBTypeL2.DataSource = null;
                    elemDDLFBTypeL2.DataBind();
                    elemDDLFBTypeL2.Items.Insert(0, new ListItem("--------", ""));
                }
            }
            catch(Exception ex)
            {
                LogUtils.ErrorFormat("In ddlFBTypeL1_SelectedIndexChanged, exception: " + ex.Message);
            }
        }

sharon
Top achievements
Rank 1
 answered on 16 May 2016
1 answer
962 views

Hello,

I would like to change the basic header color of rad grid as the default displays GREY color. Can any one suggest CSS or any style that could provide the capablity of giving forced color to the header row of a rad grid? I need it as white jus like anyothr row..

 

Thanks,

Puri

 

Pavlina
Telerik team
 answered on 14 May 2016
1 answer
104 views

I have to  create a new CommandItem  but i need  have  the function of exporting to excel of the commandItemSetting

 

Pavlina
Telerik team
 answered on 14 May 2016
7 answers
186 views
Hi

I would like to change the height of RAD Pane using javascript

is there any code that i can use


thanks
MS
Vessy
Telerik team
 answered on 14 May 2016
3 answers
127 views

I want to create a range bar chart for Task Schedule. I would like to use Rad Html chart for that. I have tasks list and their respective planned start date - end date and Actual start date - end date. So I tried to plot the chart with Rad Html chart but, it's Y-Axis is not accepting date type of value. it is only allowing decimal type of values.

So please help me, how it can be achieved. I have attached image, which shows how the chart should be displayed.

Vessy
Telerik team
 answered on 14 May 2016
1 answer
102 views

Hello Everyone,

 

I'm using a custom AsyncUploadHandler, where I process uploaded files and save into my database

I do it this way because users may upload hundreds of files at once, and I want to process them as they are uploaded, instead of all at once

 

Currently some heavy users have to wait ~15 minutes or so for all of their files to upload, before they can trigger a postback where I show a summary of the uploaded files

 

If possible, I want to return a small text summary for a file in the AsyncUploadHandler, which would be shown immediately to the user after each file is uploaded.  This way, they can quickly see which files have unusual issues among their list of uploads

I know there is server interaction after each AsyncUploadHandler 'Process' function runs.  After the AsyncUploadHandler 'Process' function runs, the little client icon indicator turns green, showing it uploaded successfully.  Can I pass a small text string to be displayed next to an uploaded file?

Hristo Valyavicharski
Telerik team
 answered on 14 May 2016
9 answers
565 views
I have Advanced Edit and Insert Form Templates built completely through code-behind for a RadScheduler. I am trying to implement cascading RadComboBoxes inside those forms.

I don't know how to find the controls in the forms from the SelectedIndexChanged events. In the FormCreated method when building the forms, I have the following:

RadComboBox resource = (RadComboBox)e.Container.FindControl("ResourceInput"); 
resource.Skin = _skin; 
resource = LoadResources(resource); 
resource.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(resource_SelectedIndexChanged); 
 

In the SelectedIndexChanged events I don't have access to e.Container.FindControl. So I need to know how to find those controls in that event.

Thanks!
Milind
Top achievements
Rank 1
 answered on 14 May 2016
1 answer
151 views

Hello, 

we have purchase the devcraft Q3 2014 (complete) and i am using it for .netWebForms. 

After upgrading the ui through Visual Studio 13, to Q2 2015, tooltip stop working fro Greek Language,. even for a siple page:

 

<asp:LinkButton ID="LinkButton1" runat="server">press here!</asp:LinkButton>
<telerik:RadToolTip ID="RadToolTip1" runat="server" Text="Greek Text here" TargetControlID="LinkButton1"></telerik:RadToolTip>

(Greek text example = "Τέστ")

If i change the text to eng chars, the tooltip works perfect.

Our license subscription is over now.

Please inform me, if there is any bug?

I try in both website and web application. I create new site/project

I also try to update the bin folder in my projects, with the fresh telerik dlls, but without Luck.

*I have big problem in my projects, cause  i use your bootstrap skin. If i ll go back to v2014, tooltip is working but i get errors because the skin doesnt exhist.

Joana
Telerik team
 answered on 14 May 2016
4 answers
112 views
Does anyone have experience in creating an sms features using telerik controls ?
Michael
Top achievements
Rank 1
 answered on 14 May 2016
6 answers
716 views

I have a page with a RadGrid, and on each row there is a link which opens a RadWindow.  The window is opened via client side scripting below:

function ShowSecurityForm(id, rowIndex) {
    var size = 80;
    var browserWidth = $telerik.$(window).width();
    var browserHeight = $telerik.$(window).height();
    var width = Math.ceil(browserWidth * size / 100);
    var height = Math.ceil(browserHeight * size / 100);
    var grid = $find("<%= rgGroups.ClientID %>");
    var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
    grid.get_masterTableView().selectItem(rowControl, true);
    var oWnd = window.radopen("DocumentSecurity/" + id, "radSecurity");
    oWnd.setSize(width, height);
    oWnd.center();
    return false;
}

The data in the window is also in a RadGrid and sometimes scrolls off the bottom of the RadWindow (based on the number of rows), is there a way to enable vertical scrolling in the RadWindow?  I've applied CSS to have "overflow: scroll !important" on both the RadWindow and on the RadGrid and it doesn't work.

I've also set the AutoSize property of the RadWindow (before I had the window size calculation in the above JS) and it only displays a RadWindow that is about an inch by an inch and I can't see anything.

 

 

Mike
Top achievements
Rank 1
 answered on 13 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?