Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
74 views
Hello
    I am having  Rad Combo box inside Modol pop up.  While clicking on the Combo box the items inside the combo boxes not enabled (Means its viewing back ground of the pop up).   Need to solve this problem, Plese Help Me

vijay
Top achievements
Rank 1
 answered on 01 Feb 2011
1 answer
34 views
radgrid - with a master and detail table.

Hierarchy - when linking a detail table using two fields.
 field 1 - varchar(4)
 field 2 - char(4)

example1 - if field 1 is empty and field 2 has value.
    the link does not populate the detail table

example2 - but if field 1 has value and field 2 is empty
    the link does populate the detail table.

My question is how can i get the first example1 to work.
Tsvetina
Telerik team
 answered on 01 Feb 2011
1 answer
96 views
I have a main page that contains a radwindow.  From a link in the main page, I use javascript to open the radwindow and set the dialog page inside the radwindow's iframe (setUrl).  The user makes selections in the dialog page then clicks "Go".  I then write javascript to the browser to open a brand new "report" window and give it focus.  Lastly, I write javascript to the browser that calls the close() method for the radwindow in the main page.

In Firefox everything works fine.
In IE7 and IE8, the main page always takes the focus after I close the radwindow.  If I don't close the radwindow or I simply hide it, the report window retains focus as it should.

For the moment, I am instead forcing a postback on the main page.  This closes the dialog but does not steal the focus.  However, this is a poor approach that I do not want to use if I can avoid it.

How do I keep the main page from getting the focus after I close the radwindow?

Thanks,

Bill
Georgi Tunev
Telerik team
 answered on 01 Feb 2011
1 answer
138 views
I am saving grid data. Grid contains one textbox in item template column. But it was not saving any data, which was entered in textbox(Just saving 'NULL'). There was not error while debugging.
Any help is appreciated. Below is code i am using.
VB Code:
Public Sub btnsave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsave.Click
AddG()
End Sub
Public Sub AddG()
        For Each item As GridDataItem In GD_Prod.Items
Dim tx3 As TextBox = DirectCast(item("PL_STUDENT_Portions_Planned").FindControl("TxtSTUPort"), TextBox)
 Dim str3 As Object = tx3.text
            If tx3.Text = Nothing Then
                str3 = DBNull.Value
            ElseIf IsNumeric(tx3.Text) Then
                str3 = Val(tx3.Text)
            End If
Dim con As New SqlConnection(ConfigurationManager.ConnectionStrings("FConnectionString").ConnectionString)
            Dim cmd As New SqlCommand("P_FN_PR_InsertGridData", con)
            cmd.CommandType = CommandType.StoredProcedure
 cmd.Parameters.Add("@PL_Student_Portions_Planned", System.Data.SqlDbType.VarChar)
            cmd.Parameters("@PL_Student_Portions_Planned").Value = str3
con.Open()
            cmd.ExecuteNonQuery()
            con.Close()
Next
    End Sub

ASPX Code:

<telerik:RadGrid ID="GD_Prod" runat="server" AllowPaging="True" ShowHeader="False"
                    AutoGenerateColumns="False" GridLines="None" Height="173px" Skin="Outlook" 
                    Width="1107px" PageSize="1">
                      <MasterTableView>
                              <Columns>
<telerik:GridTemplateColumn UniqueName="PL_STUDENT_Portions_Planned" 
                               >
                                <ItemTemplate>
                                    <asp:TextBox ID="TxtSTUPort"   runat="server" Height="16px"
                                        Width="30px" ></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="TxtSTUPort" ErrorMessage="*" ForeColor="#CC3300" 
                                        SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="TxtSTUPort" ErrorMessage="Number" ForeColor="#CC3300" 
                                        SetFocusOnError="True" ValidationExpression="[0-9]*" Display="Dynamic" 
                                        Font-Size="6px"></asp:RegularExpressionValidator>
                                </ItemTemplate>
                                <HeaderStyle Width="19px" />
                            </telerik:GridTemplateColumn>
 </Columns>
                        
                </telerik:RadGrid>
<asp:Button ID="btnsave" runat="server" Height="20px" Text="SAVE" Width="50px"
                        ToolTip="Click to Save " BackColor="#DFEFFF" ForeColor="#003399" />

Stored Proc:
ALTER PROCEDURE [DBO].P_FN_PR_InsertGridData
      (
@PL_Student_Portions_Planned varchar(10) = 0
)
AS
begin
INSERT INTO FNProdRecDetails (PL_Student_Portions_Planned)
values(@PL_Student_Portions_Planned)
End
Return
Tsvetina
Telerik team
 answered on 01 Feb 2011
3 answers
106 views

Hi,

I am creating controls dynamically target control as well as telerik tooltip control using client side code as below (first creating table and tr and then td, in one of td creating the cotrols as below)

 

Dim

 

 

html As New StringBuilder()

 

 

 

 

html.Append(

 

"<table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"" bgcolor=""#978F80"">")

 

 

 

 

html.Append(

 

"<tr bgcolor=""lightblue"" style=""font:bold 11px Arial, Helvetica, sans-serif; color:#000000; text-align:center"">")

 

 

 

 

html.Append(

 

 

 

"<td width=""15%"" style=""border-bottom:3px solid #ffffff;"" >")

 

 

 

 

html.Append("<asp:Label ID=""" & lblName & intLblCounter.ToString.Trim & """ Text=""test"" Width=""100%"" runat=""server"" ToolTip="" Out Time   : " & getTimeAsString(dtBreaks.Rows(i - temp)(1).ToString) & " <br/> In Time    :" & getTimeAsString(dtBreaks.Rows(i - temp)(0).ToString) & " <br/> Break Time :" & "00:01:00" & """ ></asp:Label>")

 

html.Append("<telerik:RadToolTip ID=""" & tooltiplbl & intLblCounter.ToString.Trim & """ Text="" Out Time   : " & getTimeAsString(dtBreaks.Rows(i - temp)(1).ToString) & " <br/> In Time    :" & getTimeAsString(dtBreaks.Rows(i - temp)(0).ToString) & " <br/> Break Time :" & "00:01:00" & """ TargetControlID =""" & lblName & intLblCounter.ToString.Trim & """ runat=""server""/>")

 

html.Append(

 

"</td>")
html.Append("</tr>")
html.Append(
"</table>")

 

 

 

But not getting the tooltip is and when I copy the client side code while debugging and pasting another page, executing the page able to see the tooltip and when I am  creating the controls runtime then unable to see the tooltip.

Could you please suggest/help me on this?

Thanks,
Praveen Kumar palla.

 

 

Svetlina Anati
Telerik team
 answered on 01 Feb 2011
1 answer
182 views
I want to use a single RadContextMenu on a page that has a RadTabStrip with multiple pages and RadGrids and other controls on each RadPageView.  I want to have the RadContextMenu connected to certain controls like Grids and other controls so that when the user right clicks on the given control, server code behind will figure out what control is using the RadContextMenu and add the correct Items for that given control.

Is this possible or do I need multiple Context menus, each set to the given control. 

I just cannot get the target that is trigering the menu.  Any help would be great.
Dimitar Terziev
Telerik team
 answered on 01 Feb 2011
1 answer
51 views
  • ASP.NET version: 4.0
  • OS: Windows 7
  • exact browser version: FF 3.6.13 & IE 7,8, 9
  • exact version of the Telerik product: ASP.NET AJAX Q2 2010
  • preferred programming language: C#
I am using a third party jQuery script called qTip by Craig Thompson (http://craigsworks.com/projects/qtip/) and it has worked well in most uses but I am having a complication with using it along with a RadGrid.  Basically on the initial page load everything works fine, but if I filter a column or expand a nested view the qTip script stops working and I receive a javascript error: "Message: Unspecified error. URI: http://localhost:49894/webroot/javascript/jquery.js".

My jQuery script on the page is as follows:
(function ($, window, undefined) {
            $(document).ready(function () {              
                $.fn.qtip.styles.typeToolTip = {
                    width: 210,
                    background: '#FFF',
                    color: '#333',
                    border: {
                        width: 5,
                        radius: 0,
                        color: '#A7D11C'
                    }
                }
                $(".originalType").qtip({
                    content: {
                        url: 'help/OriginalTypeToolTip.html',
                        prerender: 'true'
                    },
                    style: {
                        name: 'typeToolTip'
                    },
                    position: {
                        corner: {
                            target: 'topRight',
                            tooltip: 'topLeft'
                        }
                    },
                    show: { delay: 1000,
                        effect: {
                            type: 'slide',
                            length: 200
                        }
                    }
                });
});
        } (jQuery, this));

Any ideas?

 
Radoslav
Telerik team
 answered on 01 Feb 2011
1 answer
360 views
Hey guys

Trying to set focus to a specific control in a radwindow content template.  I have the following in my Onclientshow (taken from another thread).  Thanks!

<script type="text/javascript">
    function OnClientShow(sender, args) {
        var pnum = $get('<%# rwDialog.FindControl("radnMvPropNo").ClientID %>');
        pnum.focus();
    }
</script>

The problem is that at run time, the findcontrol server side block is turning up ''
<script type="text/javascript">
 function OnClientShow(sender, args) {
 var pnum = $get('');
 pnum.focus();}
</script>

Becase this is in a user control, I suspect I need to do something different to find the control:
"WctlShippingCart_rwDialog_C_radnMvCustNo_wrapper" is what is has become.


The content layout is as follows:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True"
    Modal="True" Behavior="Default" InitialBehavior="None">
    <Windows>
        <telerik:RadWindow runat="Server" ID="rwDialog" Modal="true" Title="Move Selected Properties"
            OnClientShow="OnClientShow" AutoSize="True" Behavior="Close, Move" Behaviors="Close, Move"
            VisibleStatusbar="False">
            <ContentTemplate>
                <table width="220px">
                    <tr>
                        <td style="width: 12%">
                        </td>
                        <td style="width: 32%">
                            Customer #
                        </td>
                        <td style="width: 1%">
                        </td>
                        <td style="width: 1%">
                        </td>
                        <td style="width: 7%">
                        </td>
                        <td style="width: 32%">
                            Property #
                        </td>
                        <td style="width: 12%">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <telerik:RadNumericTextBox runat="Server" ID="radnMvCustNo" Width="50px" Culture="English (United States)"
                                Skin="Vista" MaxLength="4" MaxValue="9999" MinValue="1000">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                        </td>
                        <td style="text-align: center">
                            -
                        </td>
                        <td>
                        </td>
                        <td>
                            <telerik:RadNumericTextBox runat="Server" ID="radnMvPropNo" Width="50px" Skin="Vista"
                                Culture="English (United States)" MaxValue="9999" MinValue="1000" MaxLength="4">
                                <NumberFormat DecimalDigits="0" GroupSeparator="" />
                            </telerik:RadNumericTextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td colspan="5" style="text-align: center">
                            <br />
                            <asp:Button runat="Server" ID="btnMoveOK" Text="Move" />
                              
                            <asp:Button runat="Server" ID="btnMoveCancel" Text="Cancel" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Svetlina Anati
Telerik team
 answered on 01 Feb 2011
0 answers
79 views
Hello,

      I have used RadTree in my web page.due to record will come more, i have to put it into RadPane and set the overflow property for RadPane.

     Its working well for other browser, but i got design problem with IE6.

     Node text get overflow and scrollable well, but node image dosen't get scroll.

     Please help me for same.
Kaushal
Top achievements
Rank 1
 asked on 01 Feb 2011
4 answers
123 views
Hello

I would like to know how to customize the Hyperlink Manager. Here is a rough outline of what the UI flow should be:

1. Highlight text in RadEditor to turn into Hyperlink
2. click on Hyperlink Manager button
3. Hyperlink Manager dialogue opens
4. click on a button by URL textbox (similar to/or using Document Manager button)
5. bring up dialogue/file browser to current site map/pages
6. select page (by Name/possibly in treeview) that will provide a relative URL (e.g. Page.aspx?id=1253)
7. populate Hyperlink Manager URL textbox with relative URL

Thanks
Rumen
Telerik team
 answered on 01 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?