Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
75 views
OK, I have a portal page that contains seven to ten user controls.  Each user control has a timer and is wrapped in an Ajax Panel.  When the portal pages loads it loads each user control in some kind of order.  What I am hoping for is that each user control will start loading independently of each other. 

So, I tried using the Ajax Manager on the master page with proxies on the user controls and still no luck.  I can only get a single ajax request to take place at a time.  How can I get two or three requests running at the same time?  Is this possible with Telerik controls?

Any adivce or suggestions?
Pavlina
Telerik team
 answered on 26 Apr 2011
4 answers
165 views
Hi,

I could successfully install the RAD Editor for my application and got it working for all the browsers.However, it is not woking for mozilla over web vpn connection. I cant type anything although the RAD rich text editor is visible.
Please let me know a fix for this.
Stanimir
Telerik team
 answered on 26 Apr 2011
5 answers
176 views
Hello,

I have a TreeView where clicking on a node should trigger a PostBack, but checking a CheckBox on a node should not trigger a PostBack.  Is this possible?  Currently checking the node fires the OnNodeClick event.

I believe it was working as I wanted prior to upgrading to version 2010.2.826.35.

<rad:RadTreeView ID="tree" OnNodeClick="NodeClick" AutoPostBack="true">

Thanks,
Jason
Jason
Top achievements
Rank 1
 answered on 26 Apr 2011
4 answers
339 views
I have my ItemsRequested handler working where on start of the page, this method gets hit and it loads the first set of items.  Scrolling through the list works well and each new page is requested and starts loading.

However, if I go into the combo box and right away I starting typing something which does not appear in the first page of results, the item is listed but I am no longer able to change the results and see the new matches appear in the list of the combo box.

The list is approx. 3,000 records, here are the relevant snips:

 

protected void RadComboBoxMedicationName_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

 

Database db = DatabaseFactory.CreateDatabase();

 

 

RadComboBox r = sender as RadComboBox;

 

 

DbCommand cmd = db.GetSqlStringCommand("SELECT Id, Description FROM refMedType WHERE Description LIKE '" + e.Context["Text"].ToString() + "%'");

 

 

DataTable data = (DataTable)(db.ExecuteDataSet(cmd)).Tables[0]; ;

 

 

try

 

{

 

int itemsPerRequest = 25;

 

 

int itemOffset = e.NumberOfItems;

 

 

int endOffset = itemOffset + itemsPerRequest;

 

 

if (endOffset > data.Rows.Count)

 

{

endOffset = data.Rows.Count;

}

 

if (endOffset == data.Rows.Count)

 

{

e.EndOfItems =

true;

 

}

 

else

 

{

e.EndOfItems =

false;

 

}

 

for (cint i = itemOffset; i < endOffset; i++)

 

{

r.Items.Add(

new RadComboBoxItem(data.Rows[i]["Description"].ToString(), data.Rows[i]["Description"].ToString()));

 

}

 

if (data.Rows.Count > 0)

 

{

e.Message =

String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString());

 

}

 

else

 

{

e.Message =

"No matches";

 

}

}

 

catch (Exception ex)

 

{

e.Message =

"No matches";

 

}

}


 

 

<telerik:RadComboBox ID="RadComboBoxMedicationName" ShowWhileLoading="true" EmptyMessage="Enter medication name" Text='<%# Bind( "MedicationName" ) %>' LoadingMessage="Loading..." runat="server" Width="250px" Height="200px" AllowCustomText="True" ShowMoreResultsBox="true" EnableLoadOnDemand="True" MarkFirstMatch="True" OnItemsRequested="RadComboBoxMedicationName_ItemsRequested" EnableVirtualScrolling="true" />

 

 

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidatorMedicationName" runat="server" ControlToValidate="RadComboBoxMedicationName" Display="Dynamic" ErrorMessage="RequiredFieldValidator" ToolTip="Medication required."><br />* Medication required.</asp:RequiredFieldValidator>

 

 

 

Dimitar Terziev
Telerik team
 answered on 26 Apr 2011
1 answer
59 views

I'm using RadGrid with drag and drop to a RadScheduler

The system I'm designing is for a TV Show, where each screenplay have several scripts

The user can schedule each script to be shot/recorded at a time, or to get a entire screenplay and schedule it at once.

In my grid, both screenplay and scripts are rows, so user can drag any.

Question 1 - Is it possible to have indented display for this?

Question 2 - Is it possible that when a user drag a row that is a screenplay, all child scripts go with?

Thanks,

Andre

Marin
Telerik team
 answered on 26 Apr 2011
1 answer
57 views
Hi,

I am using teleric grid in IIS7 and sometimes rad grid is not renering while i am using iis7 but the same code has been working perfectally in IIS6.

Please suggest.
Veli
Telerik team
 answered on 26 Apr 2011
5 answers
94 views
Hi,

Is it possible to use the RADChart control to display a graphical representation of disk space used:

"20.0 MB out of 100.00 MB being used."

I just want to display a simple static horizontal bar that illustrates the percentage of disk space used without any grid lines or anything.

Thanks,
Andy
Andy Byrne
Top achievements
Rank 1
 answered on 26 Apr 2011
3 answers
88 views
Hi,

I am not able to get the ID from the dropdown to do the insert of the new record based on that selected item from the that dropdown. 
So when I click the "Add file" no record is being saved to the database.

thanks



<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <telerik:RadFormDecorator 
                        ID="RadFormDecorator1" Runat="server" Skin="Windows7" DecoratedControls="Textbox" />
    <div style="padding-left:20px">
    <table width="90%" border="0" cellpadding="5" style="text-align:left">
         
        <tr>
            
            <td align="left">  <div style="font-size: 14pt; font-weight: bold;">
                    Add New Media
                </div>
            </td>  <td align="right" >
                <img src="../images/arrow_back.png" align="absmiddle" /> <asp:LinkButton ID="btnAddMedia" Font-Bold="false"   CausesValidation="false" runat="server" Text="Back to Listings" />
            </td>
        </tr>
         <tr>
            <td><div runat="server" id="successaddmsg" visible="false">
                <img src="../images/accept.png" align="absmiddle" /> 
                <asp:Label ID="Label1" runat="server" ForeColor="green"  Font-Bold="true" Font-Size="12px" Text="Media item was successfully added." />
            </div>
            </td>
            <td>
                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validateRadUpload"
                    ErrorMessage="Please select at least one valid media file" fileOnServerValidate="CustomValidator1_ServerValidate" />
            </td>
        </tr>
        <tr>
            <td>
                Categroy:
            </td>
            <td>
                <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource2"
                    AppendDataBoundItems="true" DataTextField="Category" DataValueField="CatId" Skin="Windows7">
                    <Items>
                        <telerik:RadComboBoxItem />
                    </Items>
                </telerik:RadComboBox>
            </td>
        </tr>
        <tr>
            <td>
                Media File:
            </td>
            <td>
                <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None"
                    Skin="Office2007">
                </telerik:RadUpload>
            </td>
        </tr>
        <tr>
            <td>
                Title:
            </td>
            <td>
                <asp:TextBox ID="txtTitle" Width="321px" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Comments:
            </td>
            <td>
                <asp:TextBox ID="txtDesc" Width="321px" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:CheckBox ID="chkShow" Checked="true" runat="server" Text="Make it available on User's Download Page." />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <br />
                <br />
                <asp:Button ID="btnAdd" runat="server" Text="Add file" />
            </td>
        </tr>
    </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MUNTERSJMmlConnectionString %>"
        SelectCommand="SELECT MediaCategories.CatId, MediaCategories.CatName AS Category FROM MediaCategories ORDER BY CatName ">
    </asp:SqlDataSource>
    <%--
      Upload Large File Setting Requirements:
      Open the file C:\Windows\System32\inetsrv\config\applicationHost.config and find the line:    
<section name="requestFiltering" overrideModeDefault="Deny" />
  
Set the overrideModeDefault property to Allow. So now the line should look like:
<section name="requestFiltering" overrideModeDefault="Allow" />
    --%>
</asp:Content>
Helen
Telerik team
 answered on 26 Apr 2011
1 answer
107 views
Hi

I would like to allow/disallow selection based on the level of the tree. For example, if it is less then level 3 then I would like to prevent users from selecting.

I would really appreciate any help on this matter

Thanks
Biru
Veli
Telerik team
 answered on 26 Apr 2011
3 answers
103 views

<
telerik:RadPageView ID="RadPageView4" runat="server">
                <div style="padding-right: 10px; padding-left: 10px;">
                    <br />
                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BorderStyle="Solid">
                        <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
                        <br />
                        <asp:Image ID="Image1" runat="server" ImageUrl="WebBlue\Ajax\WebBlue.gif" />
                    </telerik:RadAjaxLoadingPanel>
                   <asp:Panel ID="Panel1" runat="server">
                        <table cellspacing="2px" cellpadding="0px">
                            <tr>
                                <td colspan="2">
                               <asp:Label ID="lblGrade" runat="server"> Grade:</asp:Label>
                                     
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label for="txtComment1">
                                       Comment 1:</label>
                                    <br />
                                    <telerik:RadTextBox ID="txtComment1" runat="server" TextMode="MultiLine" Rows="5"
                                        Columns="6" Height="50px" ReadOnly="true" Width="320px" Skin="WebBlue"/>
                                    <br />
                                </td>
                                <td>
                                    <label for="txtTarget1">
                                        Target 1:</label>
                                    <br />
                                    <telerik:RadTextBox ID="txtTarget1" runat="server" TextMode="MultiLine" Rows="5"
                                        Columns="6" Height="50px" ReadOnly="true" Width="320px" Skin="WebBlue"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label for="txtComment2">
                                        Comment 2:</label>
                                    <br />
                                    <telerik:RadTextBox ID="txtComment2" runat="server" TextMode="MultiLine" Rows="5"
                                        Columns="6" Height="50px" Width="320px" Skin="WebBlue">
  
                                 </telerik:RadTextBox>
                                </td>
                                <td>
                                    <label for="txtTarget2">
                                        Target 2:</label>
                                    <br />
                                    <telerik:RadTextBox ID="txtTarget2" runat="server" TextMode="MultiLine" Rows="5"
                                        Columns="6" Height="50px" Width="320px" Skin="WebBlue" />
                                </td>
                            </tr>
                            <tr>
                            </tr>
                        </table>
                    </asp:Panel>
                    <br />
                    <telerik:RadGrid ID="RadGridReviews" runat="server" AutoGenerateColumns="False" Skin="WebBlue"
                        OnItemCommand="OnSelectRecords" Width="400px">
                        <MasterTableView ShowFooter="true" DataKeyNames="qualcode">
                            <RowIndicatorColumn Visible="true" UniqueName="RowIndicator">
                                <HeaderStyle Width="20px" BackColor="LightSkyBlue" />
                            </RowIndicatorColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="reference" Visible="False" UniqueName="ColumnRef">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="qualcode" HeaderText="Qualification" ItemStyle-Width="100">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="classcode" HeaderText="Class" ItemStyle-Width="150" UniqueName="ColumnClass">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="review" HeaderText="Review" UniqueName="ColumnReview"
                                    ItemStyle-Width="100">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="attainment_grade" Visible="False" UniqueName="ColumnGrade">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="comment1" Visible="False" UniqueName="ColumnComment1">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="comment2" Visible="False" UniqueName="ColumnComment2">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="target1" Visible="False" UniqueName="ColumnTarget1">
                                </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn DataField="target2" Visible="False" UniqueName="ColumnTarget2">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true"
                            EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="true" />
                             
                        </ClientSettings>
I am using one page of a multi page to display a grid, a label and four text boxes
As you can see from the code above the Grid has five invisible columns. When a row of the grid is selected the data in the invisible columns is displayed in the label and the text boxes. When the data fields only contain a single space "nbsp;" is displayed in the text boxes(see attached screenshot) instead of leaving them blank. Is there an easy way of making sure the text box is displayed as an empty box?
Also is there a style of text box or a way of changing the style sheet so that the label is displayed above the text box rather than on the left hand side?
Pavlina
Telerik team
 answered on 26 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?