Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
176 views
I am using RadToolTip in my application to show the help. I have set the property "ManualClose" to TRUE, but I want to display the text right beside the close button, so that when user clicks either text or the button, tooltip gets closed. How can I put the text "Close" beside close button and code it so that desired functionality is achieved.
Georgi Tunev
Telerik team
 answered on 06 Nov 2009
1 answer
106 views
I wanted to know if RadUpload (RadProgressBar) still required Full Trust in the latest 2009 Q3 release. I realize my question is answered in the release notes:
Fixed: RadUploadHttpModule should not throw an exception when an attempt is made to use it in medium trust

I would like to understand more details. Is there functionality difference between Full and Medium Trust?

Thanks!
Sarah
Atanas Korchev
Telerik team
 answered on 06 Nov 2009
3 answers
170 views
Hi there!

I have a link that displays a RadWindow, but when I tried to extend it to display in my extension monitor it doesn't show up, it somewhat extending the page horizontally in the primary monitor.

Is there a way to change its properties  or a script to make it display in the extension monitor?

Hope I can find a solution for this topic.


Here's my script in my sample webproj:

markup:

        <telerik:RadWindowManager ID="WindowManager" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" NavigateUrl="Default2.aspx" runat="server" />
            </Windows>
        </telerik:RadWindowManager>
        <a href="javascript: openWindow();">RadWindow</a>
       
        <script type="text/javascript">

            function openWindow() {
                radopen('<%= ResolveUrl("~/Default2.aspx") %>', "RadWindow1");
        
            }
         </script>



Regards,

Reynald.



Georgi Tunev
Telerik team
 answered on 06 Nov 2009
1 answer
81 views
I have two drop downs (The first AsgTo contains a list of people (it has duplicates) this is why the Value filed is set to the unique id).  I think take this ID and requery the same table for the 2nd drop down (This will be a hidden field that the users wont see).  But how do I make it so RadComboBox1 is bound to the field "procreq_asgto", I cant do "SelectValue=<%# Bind("procreq_asgto")%>" as it comes back with an error because Im binding int he VB code.  Ideas?

                <tr> 
                    <td style="width:25%;">  
                        Team</td> 
                    <td> 
                        <telerik:RadComboBox ID="AsgTo" runat="server" DataSourceID="Asg2SQL" AutoPostBack="true" 
                            DataTextField="mfgasgto_team" DataValueField="mfgasgto_id" MarkFirstMatch="true" EmptyMessage="Select One" 
                            OnSelectedIndexChanged="SelectedIndexChanged" AllowCustomText="true">  
                        </telerik:RadComboBox> 
                        <telerik:RadComboBox ID="RadComboBox1" runat="server" MarkFirstMatch="True">  
                        </telerik:RadComboBox> 
                    </td> 
                </tr>  

    Protected Sub SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs)  
 
        'first reference the edited grid item through the NamingContainer attribute   
        Dim editedItem As GridEditableItem = CType(CType(sender, RadComboBox).NamingContainer, GridEditableItem)  
 
        Dim StatusBox As TextBox = CType(editedItem.FindControl("procreq_status"), TextBox)  
        Dim RequestorBox As RadTextBox = CType(editedItem.FindControl("RadTextBox4"), RadTextBox)  
        StatusBox.Text = "1" 
        RequestorBox.Text = Context.User.Identity.Name.ToString()  
 
        Dim PersonValue As RadComboBox = CType(editedItem.FindControl("AsgTo"), RadComboBox)  
        Dim PersonBox As RadComboBox = CType(editedItem.FindControl("RadComboBox1"), RadComboBox)  
        Asg2PersSQL.SelectCommand = "SELECT [mfgasgto_person] FROM [mfg_asgto] WHERE [mfgasgto_id] = " + PersonValue.SelectedValue  
        PersonBox.DataSource = Asg2PersSQL  
        PersonBox.DataTextField = "mfgasgto_person" 
        PersonBox.DataValueField = "mfgasgto_person" 
        PersonBox.DataBind()  
 
    End Sub 
Veli
Telerik team
 answered on 06 Nov 2009
2 answers
280 views
Hi all,

I have a list box with checkboxes. I selected the checkbox depending on the values stored in the database. Now when a user check s or uncheck the boxes and click save i want that to be save in the database the values. I need an event in the server side that i can use to collect the values of the checkboxes that are checked/unchecked by user. I need the code for it. 

Thanks in advance
Uma Mahe
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
129 views

Hi

I have a scary situation when i use RadPanelBar

Below is Simple aspx page  

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <table> 
    <tr> 
    <td> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
            <Items> 
                <telerik:RadPanelItem runat="server" Text="LargeMenu">  
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="SubMenu1">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="SubMenu2">  
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar>      
    </div> 
    </td> 
    <td> 
      <div > 
         <iframe  id="LinkFrame"  src="http://www.google.com"  />/>  
      </div> 
    </td> 
    </tr> 
    </table> 
    </form> 
</body> 
</html> 
 

In this page RadPanel is not working  I can't expand Root Node
But if i eliminate iframe (ID="LinkFrame") RadPanel works fine as i expected .

Am i missing Something?

Regards,
Park

PS:
After i posted i put runat="server" in iframe tag it works fine But i don't get what runat="server" make a difference
I worked with java and jsp this is the first time of aspx project


Atanas Korchev
Telerik team
 answered on 06 Nov 2009
1 answer
107 views
Sorry, the subject is not right, the paging is working just not quickly.

Hello, does anyone have suggestions on a better way to do the following?  I'm not sure if I'm using the most efficient approach.

Here's my datagrid:

<div style="background: url(/images/gridbg.jpg) no-repeat; width: 740px"
    <div style="float: right; margin: 10px 10px 5px 0px; color: #2a6ca3; font-size: 11px; 
        vertical-align: middle;"> 
        <table cellpadding="0" cellspacing="0"
            <tr valign="middle"
                <td> 
                    <asp:Label ID="lblFilter" runat="server" Text="Filter:"></asp:Label></td
                <td style="padding-left: 5px;"
                    <telerik:RadComboBox ID="rcbFieldName" Skin="Telerik" runat="server"
                        <Items> 
                            <telerik:RadComboBoxItem Text="Branch" Value="Branch" runat="server" /> 
                            <telerik:RadComboBoxItem Text="Employee Name" Value="Employee Name" runat="server" /> 
                        </Items> 
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </telerik:RadComboBox> 
                </td> 
                <td style="padding-left: 5px;"
                    <asp:TextBox ID="txtSearch" runat="server" Style="vertical-align: middle"></asp:TextBox></td
                <td style="padding-left: 5px;"
                    <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="/images/FilterGo.gif" /></td
                <td style="padding-left: 5px;"
                    <asp:ImageButton ID="btnShowAll" runat="server" ImageUrl="/images/FilterCancel.gif" 
                        AlternateText="Cancel Filter / Show All" /></td
            </tr> 
        </table> 
    </div> 
    <div class="buttonTop" style="margin-top: 10px; margin-left: 10px;"
        <table cellpadding="0" cellspacing="0"
            <tr valign="middle"
                <td> 
                    <asp:ImageButton runat="server" ID="ImageExport" AlternateText="Export to Excel" 
                        ImageUrl="/images/FileManager/Icons/xls.gif" /> 
                    <asp:ImageButton OnClientClick="CustomAction(); return false;" runat="server" ID="ImageButton1" 
                        AlternateText="Export to Excel" ImageUrl="/images/FileManager/Icons/xls.gif" 
                        Visible="false" /></td
                <td style="padding-left: 5px;"
                    Export to Excel</td> 
            </tr> 
        </table> 
    </div> 
    <div style="clear: both;"
    </div> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="10"
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadGrid ID="RadGrid1" runat="server" OnPreRender="RadGrid1_PreRender" AllowPaging="True" 
        AllowSorting="true" AutoGenerateColumns="false" GridLines="None" Skin="Outlook"
        <MasterTableView DataKeyNames="CuId,BarcodeID"
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <NestedViewTemplate> 
                <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false"
                    <asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("BarcodeID") %>' 
                        Visible="false" runat="server" /> 
                    <telerik:RadGrid runat="server" ID="ResponseGrid" DataSourceID="SqlDataSource2" AllowSorting="true"
                        <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true" 
                            DataKeyNames="BarcodeID" PageSize="5"
                            <Columns> 
                                <telerik:GridBoundColumn SortExpression="BarcodeID" HeaderText="ID" HeaderButtonType="TextButton" 
                                    DataField="BarcodeID" UniqueName="BarcodeID"
                                    <HeaderStyle /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="MemberName" HeaderText="Member Name" HeaderButtonType="TextButton" 
                                    DataField="MemberName" UniqueName="MemberName"
                                    <HeaderStyle /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="EmailAddress" HeaderText="Email Address" 
                                    HeaderButtonType="TextButton" DataField="EmailAddress" UniqueName="EmailAddress"
                                    <HeaderStyle /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="EmployeeName" HeaderText="Employee Name" 
                                    HeaderButtonType="TextButton" DataField="EmployeeName" UniqueName="EmployeeName"
                                    <HeaderStyle /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="BranchName" UniqueName="BranchName" HeaderButtonType="TextButton" 
                                    DataField="BranchName" HeaderText="Branch Name"
                                    <HeaderStyle /> 
                                </telerik:GridBoundColumn> 
                            </Columns> 
                        </MasterTableView> 
                    </telerik:RadGrid> 
                    <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" 
                        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM CE_SurveyResponseCuId WHERE BarcodeID = @BarcodeID" 
                        runat="server"
                        <SelectParameters> 
                            <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="BarcodeID" /> 
                        </SelectParameters> 
                    </asp:SqlDataSource> 
                </asp:Panel> 
            </NestedViewTemplate> 
            <Columns> 
                <telerik:GridDateTimeColumn UniqueName="Receipt" HeaderText="Date<br>Received" DataField="Receipt" 
                    DataFormatString="{0:MM/dd/yyyy}"
                    <HeaderStyle Width="100px" HorizontalAlign="center" /> 
                </telerik:GridDateTimeColumn> 
                <telerik:GridDateTimeColumn UniqueName="TransDate" HeaderText="Transaction<br>Date" 
                    DataField="TransDate" DataFormatString="{0:MM/dd/yyyy}"
                    <HeaderStyle Width="100px" HorizontalAlign="center" /> 
                </telerik:GridDateTimeColumn> 
                <telerik:GridBoundColumn DataField="Question1" DataType="System.Double" HeaderText="Qu<br />1" 
                    UniqueName="Question1"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question2" DataType="System.Double" HeaderText="Qu<br />2" 
                    SortExpression="Question2" UniqueName="Question2"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question3" DataType="System.Double" HeaderText="Qu<br />3" 
                    SortExpression="Question3" UniqueName="Question3"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question4" DataType="System.Double" HeaderText="Qu<br />4" 
                    SortExpression="Question4" UniqueName="Question4"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question5" DataType="System.Double" HeaderText="Qu<br />5" 
                    SortExpression="Question5" UniqueName="Question5"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question6" DataType="System.Double" HeaderText="Qu<br />6" 
                    SortExpression="Question6" UniqueName="Question6"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question7" DataType="System.Double" HeaderText="Qu<br />7" 
                    SortExpression="Question7" UniqueName="Question7"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question8" DataType="System.Double" HeaderText="Qu<br />8" 
                    SortExpression="Question8" UniqueName="Question8"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question9" DataType="System.Double" HeaderText="Qu<br />9" 
                    SortExpression="Question9" UniqueName="Question9"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Question10" DataType="System.Double" HeaderText="Qu<br />10" 
                    SortExpression="Question10" UniqueName="Question10"
                    <HeaderStyle HorizontalAlign="center" Width="30px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Comments" HeaderText="Comments" SortExpression="Comments" 
                    UniqueName="Comments"
                    <HeaderStyle HorizontalAlign="center" /> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
</div> 
 



Here's my code:

        Protected Sub btnSearch_Click(ByVal sender As ObjectByVal e As System.Web.UI.ImageClickEventArgs) Handles btnSearch.Click 
            Dim searchtext As String = Trim(txtSearch.Text.ToString) 
            Literal1.Text &= "searchtext=" & searchtext & "<br>" 
 
            If Len(searchtext) > 0 Then 
                Select Case Me.rcbFieldName.SelectedValue 
                    Case "Branch" 
                        Literal1.Text &= "branch selected<br>" 
                        RadGrid1.DataSource = GetDataTable("SELECT * FROM [tablex] WHERE ([CuId] = '" & ViewState("CuId") & "') AND BranchName = '" & searchtext & "'"
                        Literal1.Text &= "SELECT * FROM [tablex] WHERE ([CuId] = '" & ViewState("CuId") & "') AND BranchName = '" & searchtext & "'<br>" 
                        RadGrid1.Rebind() 
                        Session("GridSource") = RadGrid1.DataSource 
                    Case "Employee Name" 
                        Literal1.Text &= "employee name selected<br>" 
                        RadGrid1.DataSource = GetDataTable("SELECT * FROM [tablex] WHERE ([CuId] = '" & ViewState("CuId") & "') AND EmployeeName LIKE '%" & searchtext & "%'"
                        Literal1.Text &= "SELECT * FROM [tablex] WHERE ([CuId] = '" & ViewState("CuId") & "') AND EmployeeName LIKE '%" & searchtext & "%'<br>" 
                        RadGrid1.Rebind() 
                        Session("GridSource") = RadGrid1.DataSource 
                End Select 
            End If 
        End Sub 
 
        Protected Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
            If Session("GridSource"Is Nothing Then 
                RadGrid1.DataSource = GetDataTable("SELECT * FROM [tablex] WHERE ([CuId] = '" & ViewState("CuId") & "')"
                Session("GridSource") = RadGrid1.DataSource 
            Else 
                RadGrid1.DataSource = Session("GridSource"
            End If 
        End Sub 
 
       Public Function GetDataTable(ByVal query As StringAs DataTable 
            Dim ConnString As String = ConfigurationManager.ConnectionStrings("SiteSqlServer").ConnectionString 
            Dim conn As SqlConnection = New SqlConnection(ConnString) 
            Dim adapter As SqlDataAdapter = New SqlDataAdapter 
            adapter.SelectCommand = New SqlCommand(query, conn) 
            Dim table1 As New DataTable 
            conn.Open() 
            Try 
                adapter.Fill(table1) 
            Finally 
                conn.Close() 
            End Try 
            Return table1 
        End Function 
Veli
Telerik team
 answered on 06 Nov 2009
1 answer
245 views
Hi,
I am using Visual Studio 2005, Rad Conrtols for ASP.NET Q1 2008 and .net Framework 2.0 and C# Programming.
I am using RAD Grid to display the data and UserControl Form to Inset/Update the records.
I am aware that it is possible to perform BATCH UPDATES by setting AllowMultipleRowEdit = True.

But I want to perform BATCH INSERT. I am not sure how to do this.
Can you please help me with some online demos or sample code?

Thanks,
RKS
Princy
Top achievements
Rank 2
 answered on 06 Nov 2009
3 answers
122 views
hi

How do i do a related combobox in grid? Both combos have datasource id namely: sdsInventory and sdsSupplier.

When I select a code from the first combo, it will populate the suppliers in the second combo based on the code selected.

How should i go about it? Thanks



 <telerik:GridTemplateColumn DataField="Code" HeaderText="Code"
            SortExpression="Code" UniqueName="Code">
            <EditItemTemplate>
                <telerik:RadComboBox ID="drps"  DataSourceID="sdsInventory" DataTextField="Name" DataValueField="Code" selectedValue='<%# Bind("Code") %>' runat="server" Width="300px" Filter="StartsWith" AutoCompleteSeparator=";" MarkFirstMatch="True">
                </telerik:RadComboBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="CodeLabel" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Supplier_ID" HeaderText="Supplier Name"
            SortExpression="Supplier_ID" UniqueName="Supplier_ID">
            <EditItemTemplate>
                <telerik:RadComboBox ID="drpSupplier" DataSourceID="sdsSupplier" DataTextField="Supplier_Name" DataValueField="Supplier_ID" selectedvalue='<%# Bind("Supplier_ID") %>' runat="server" Width="300px">
                </telerik:RadComboBox>
             </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Supplier_IDLabel" runat="server"
                    Text='<%# Eval("Supplier_Name") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
Princy
Top achievements
Rank 2
 answered on 06 Nov 2009
1 answer
137 views
Hi, we are running Telerik on a security test tools which use Http request manually to bypass the GUI and javascript control.
(To simulate a hacker)

And we have a Telerik exception on radcalendar :

Here is the Log :
--------------------------
Thread information:
    Thread ID: 6
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at Telerik.Web.UI.RadDateInput.RangeTextProperty(String value)
   at Telerik.Web.UI.RadDateInput.set_Text(String value)
   at Telerik.Web.UI.DatePickingInput.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
------------------------------

There were an incorrect date input forced in the HttpRequest to the server who create an error.

How can i prevent it from happening ?
How can i manage this exception ? I have no clues and i really dont understand what happens.
Tgaud
Top achievements
Rank 1
 answered on 06 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?