Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
I am using RadAsyncUpload control of telerik. When we browse a .jpg file with size 0 bytes, the browser keeps uploading the image and shows the progress bar until user clicks on cancel button. This is observed in chrome and firefox browser. Can we check the file size on the client side, and throw a cancel action, so that indicating the user that he uploaded a invalid image file.
Kate
Telerik team
 answered on 30 Nov 2012
2 answers
70 views
Hi, 
Is there a way to get requested URL from RadAjaxManager - OnRequestStart event?
When that event fire, I want to know the URL of form\page that make the request.

Thanks, 
Robin
Robin
Top achievements
Rank 2
 answered on 30 Nov 2012
1 answer
71 views
I have the following problem and need help with a solution. The behaviour is sampled by the online demo for the radcombobox so I will not supply a sample here.

Steps to reproduce:
1. Navigate to ComboBox/Features demo (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx)
2. Open the dropdown and click the "Check All" option so that all items are checked.

3. Click the "Get Checked Items"

This is the initial state of my ComboBox in my solution. Now I want to just remove all checks and select one of them.

4. I open the Combobox and click on the "Check All" option to remove all selections.

Well, nothing happens.You will have to click twice on "Check All" to remove them all. My users are frustrated!

I understand that this must be by design, but for me the most logical thing would be if "Check All" works as a toggle button. If all checked, remove, if no checked, check all.

Anyone have a solution/workaround to get my "Check All" to work as a toggle button from click one?

Regards
Per Löfstedt
Boyan Dimitrov
Telerik team
 answered on 30 Nov 2012
1 answer
76 views
I am using RadScheduler.Here is Demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/contextmenu/defaultcs.aspx. Its working fine. i want to customize it. I want to show event on popup menu when click on "more" button.How can i prevent go to day calander when click on more button and get the date by jquery of that where "more" button clicked.
Thanks.
Plamen
Telerik team
 answered on 30 Nov 2012
1 answer
127 views
How can i restrict typing of special charecters in a radcombobox
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2012
2 answers
88 views
I have 3 RadComboBoxes on a web page. I have everything set in the SelectedIndexChanged of the first combobox to fill and select and load the  list of Item of the second combobox, same with the second to the third. What I have is cascading comboboxes that on selection of the first combobox's item it's SelectedIndexChange event loads all of that item.values in the second combobox that are referenced by the selected item.value (or e.value) of the first combobox. Also, the second to the third works the same way. What I need to do is on the page_load of the webpage have the cascade combobox selections take place. How can this be done on page_load and then once the page is loaded? Example of code for the first combobox is shown (note: the second to the third follows the same model) below:

protected void ComboBoxGroup_SelectedIndexChanged (object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    GroupProgram.Item proItem = new GroupProgram.Item(sqlConn, Convert.ToInt32(e.Value));

    ComboBoxProgram.DataValueField = Program.Const_ProgramID;
    ComboBoxProgram.DataTextField = Program.Const_ProgramText;

    ComboBoxProgram.DataSource = proItem.List;
    ComboBoxProgram.DataBind();  
}

Now, as you can see when the user selects a Group combobox item it's selectedIndexChange event is called and the Program combobox has its bound list pulled from the e.value ID field. The problem is that on page load I will set the Group combobox selected  item in the onLoad event; however, I need to know how to call it's selectedIndexChanged event dynamically when it's item value is set.
Also, what is the best way to handle the 3 cascading radcomboxes after the page has loaded?

Thanks,


Steve Holdorf
Dimitar Terziev
Telerik team
 answered on 30 Nov 2012
1 answer
88 views
How  can i desable the cursor in a rad combobox
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2012
0 answers
92 views

Hi,

We are using telerik Rad Ajax Controls for our website, Technologies, ASP.NET, C#.  We are using Visual Studio 2010 and framework 4.0 for our web application development. 

Scenario is as follows,

                We have .aspx page for showing personal information of user where we have used RadPanelBar to categorize the information.  There are 6 RadPanelItem in RadPanelBar and user can save each panel information separately i.e. there is save button in every panel.  And again there is Save button at the bottom (It is not in rad panel bar) of the page to save all the information in the form.  HTML Tables are used to show controls/fields in each panel.  Now when we click on save button either it is individual panel save button or save button at the bottom to save all the information the controls on that panel or some other panel controls get distorted.  It not happens every time, but suddenly sometime on click of save button, controls of any other panel or same panel get distorted.  I have given proper width to table and columns of the table and to controls also.  Is it CSS ISSUE?  Please help me out.  Here is the code snippet for more understanding,
<telerik:RadPanelItem runat="server" Text="Host Country - Home Address" Value="HostAddr">
                                            <Items>
                                                <telerik:RadPanelItem runat="server" Value="HostHomeAddress">
                                                    <ItemTemplate>
                                                        <div class="text" style="background-color: #edf9fe">
                                                            <table cellpadding="5" cellspacing="0" border="0" width="730px">
                                                                <tr>
                                                                    <td align="right" colspan="3" style="text-align: right;" valign="middle">
                                                                        <asp:CheckBox ID="primary_addr_checkbox3" runat="server" OnClick="UnCheckOther(this)" />
                                                                        Mark as primary Mailing Address
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="3">
                                                                        <asp:Label ID="lblmsgHostCHA" runat="server" Font-Names="Verdana"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                          
                                                                    </td>
                                                                    <td align="right" valign="top">
                                                                        <asp:Button ID="btnSaveHostCHA" runat="server" CausesValidation="false" OnClick="btnSaveHostCHA_Click"
                                                                            OnClientClick="clearMsg()" Text="Save Changes" />
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                        <asp:Label ID="lblHostHomeCountry" runat="server" AssociatedControlID="ddlHostHomeCountry"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="Country"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:DropDownList ID="ddlHostHomeCountry" runat="server" AutoPostBack="true" DataTextField="Name"
                                                                            DataValueField="ID" Font-Names="Verdana" OnSelectedIndexChanged="ddlHostHomeCountry_SelectedIndexChanged"
                                                                            Width="200px">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="width250px">
                                                                        <asp:Label ID="lblHostHomeStreet1" runat="server" AssociatedControlID="txtHostHomeStreet1"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="Street 1"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:TextBox ID="txtHostHomeStreet1" runat="server" CssClass="textInput" Font-Names="Verdana"
                                                                            MaxLength="50" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                        <asp:Label ID="lblHostHomeStreet2" runat="server" AssociatedControlID="txtHostHomeStreet2"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="Street 2"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:TextBox ID="txtHostHomeStreet2" runat="server" CssClass="textInput" Font-Names="Verdana"
                                                                            MaxLength="50" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                        <asp:Label ID="lblHostHomeCity" runat="server" AssociatedControlID="txtHostHomeCity"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="City"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:TextBox ID="txtHostHomeCity" runat="server" CssClass="textInput" Font-Names="Verdana"
                                                                            MaxLength="50" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                        <asp:Label ID="lblHostHomeState" runat="server" AssociatedControlID="ddlHostHomeState"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="State/Province"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:DropDownList ID="ddlHostHomeState" runat="server" DataTextField="Name" DataValueField="StateProvinceID"
                                                                            Font-Names="Verdana" Width="200px">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" valign="top" width="width250px">
                                                                        <asp:Label ID="lblHostHomeZip" runat="server" AssociatedControlID="txtHostHomeZip"
                                                                            Font-Names="Verdana" ForeColor="#696969" Text="Zip/Postal Code"></asp:Label>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                        <asp:TextBox ID="txtHostHomeZip" runat="server" CssClass="textInput" Font-Names="Verdana"
                                                                            MaxLength="20" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                    <td align="left" valign="top">
                                                                          
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <br />
                                                        </div>
                                                    </ItemTemplate>
                                                </telerik:RadPanelItem>
                                            </Items>
                                        </telerik:RadPanelItem>


Thank you in advance.
Akshay
Top achievements
Rank 1
 asked on 30 Nov 2012
1 answer
133 views
Hi

I am creating RadScheduler in web part sharepoint 2010. But it not display same in project.

You can see my error in picture.
 
Can you provide me with some help please?

Thanks.
Plamen
Telerik team
 answered on 30 Nov 2012
2 answers
288 views
Hi This is the code for my Grid view As you know there is no RowCommand on RadGrid that why I need some help on how to convert all this code to RadGrid Code

  1.         protected void gv_Movie_RowCommand(object sender, GridViewCommandEventArgs e)
  2.         {
  3.             //get the row number of the selected row
  4.     // The error is at line 5
  5.             int rowNo = int.Parse(e.CommandArgument.ToString());
  6.             //get the selected row
  7.             GridViewRow row = gv_movie.Rows[rowNo];
  8.             //Get movie ID, which is on the 1st column of the gridview
  9.             string movieID = row.Cells[0].Text;
  10.             if (e.CommandName == "Select")
  11.             {
  12.                 Response.Redirect("");
  13.             }
  14.             else if (e.CommandName == "Update")
  15.             {
  16.                 Response.Redirect("");
  17.             }
  18.         }
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?