Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
I have an iframe like this:
<div style="position: absolute; left: 25%; right: 20%; top:-50px; clip:rect(120px 770px 655px 60px);">
 <iframe id="mainFrame" src="http://<IPAddress>/" scrolling="no" style="width:920px;height:700px;border:0px solid #000; " />

I put it inside a user control and the user control inside a raddock.  When I run the page (IE) i cannot undock or move the docks.  I remove the iframe by comment it out and all works well.  I need the iframe so i can do the clipping of the destination page.
Dobromir
Telerik team
 answered on 20 Apr 2011
2 answers
164 views
Hi all,

I have two RadListBox(s) that transfer to each other. Both are populated using <ItemTemplate> and DataBind() with database data from code behind.

When I transfer one item to another, the row appears in the respective RadListBox but it does not show data. I've attached a picture with a side by side before and after.

Can anyone let me know what I'm doing wrong?

Code as below

<telerik:RadPageView ID="RadPageView_Visitor_Authentication" runat="server">
                 
            <br />
 
            <asp:Table runat="server" CssClass="form_table">
 
 
                <asp:TableRow runat="Server">
                         
                    <asp:TableCell runat="server" CssClass="form_label_center">
                        <asp:Label ID="Label_Available_Terminals" runat="server" Text="Available Terminals:"
                        CssClass="form_span"></asp:Label>
                    </asp:TableCell>
 
                </asp:TableRow>
 
                <asp:TableRow runat="Server">
 
                    <asp:TableCell runat="server" CssClass="form_label_center">
                        <telerik:RadListBox runat="server" ID="RadListBox_Available_Terminals" Height="150px" Width="300px"
                        AllowTransfer="true" TransferToID="RadListBox_Authenticate_Terminals"
                        OnTransferring="Authenticating_Terminals_Transferring"
                        AutoPostBackOnTransfer="true">
                             
                            <HeaderTemplate>
                                <table width="100%">
                                    <tr>
                                        <td width="20%">
                                            <asp:Label ID="Label7" runat="server" Text="Admin"></asp:Label>
                                        </td>
                                        <td width="80%">
                                            <div align="left">
                                                <asp:Label ID="Label8" runat="server" Text="Terminal - Location"></asp:Label>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
 
 
 
                            <ItemTemplate>
 
                            <table width="100%">
                                <tr>
                                    <td width="20%">
                                        <asp:CheckBox runat="server" ID="chk_admin" Checked="false"
                                         Enabled="false"/>
                                    </td>
                                    <td width="80%">
                                        <div align="left">
                                            <asp:Label runat="server" ID="Label_Terminal_Details_1">
                                                <%# DataBinder.Eval(Container, "Attributes['Terminal_String']") %>
                                            </asp:Label>
 
                                            <asp:Label runat="server" ID="Label_Terminal_Nitgen_ID_1" Visible="false">
                                                <%# DataBinder.Eval(Container, "Attributes['Terminal_Nitgen_ID']")%>
                                            </asp:Label>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                         
                        </ItemTemplate>
 
                        <FooterTemplate>
                        <br />
                        </FooterTemplate>
 
                            <ButtonSettings Position="Bottom" HorizontalAlign="Center"/>
                        </telerik:RadListBox>
                    </asp:TableCell>
 
                </asp:TableRow>
 
 
                <asp:TableRow runat="Server">
 
                    <asp:TableCell runat="server" CssClass="form_td_center">
 
                        <span class="form_span">
                            <asp:Literal ID="Literal_Visitor_Name_Terminal" runat="server"></asp:Literal>
                         
                            <asp:Label ID="Label_Authentication_On" runat="server" Text=" Can Authenticate On:"></asp:Label>
                        </span>
 
                    </asp:TableCell>
 
                </asp:TableRow>
 
 
                <asp:TableRow runat="Server">
 
                    <asp:TableCell runat="server" CssClass="form_td_center">
                        <telerik:RadListBox runat="server" ID="RadListBox_Authenticate_Terminals" Height="120px" Width="300px">
                        <HeaderTemplate>
                            <table width="100%">
                                <tr>
                                    <td width="20%">
                                        <asp:Label ID="Label1" runat="server" Text="Admin"></asp:Label>
                                    </td>
                                    <td width="80%">
                                        <div align="left">
                                            <asp:Label ID="Label2" runat="server" Text="Terminal - Location"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </HeaderTemplate>
 
                        <ItemTemplate>
 
                            <table width="100%">
                                <tr>
                                    <td width="20%">
                                        <asp:CheckBox runat="server" ID="chk_admin" Checked="false"
                                         OnCheckedChanged="User_Terminal_Admin_check_changed"
                                         AutoPostBack="True" />
                                    </td>
                                    <td width="80%">
                                        <div align="left">
                                            <asp:Label runat="server" ID="Label_Terminal_Details">
                                                <%# DataBinder.Eval(Container, "Attributes['Terminal_String']") %>
                                            </asp:Label>
 
                                            <asp:Label runat="server" ID="Label_Terminal_Nitgen_ID" Visible="false">
                                                <%# DataBinder.Eval(Container, "Attributes['Terminal_Nitgen_ID']")%>
                                            </asp:Label>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                         
                        </ItemTemplate>
 
                        </telerik:RadListBox>  
                    </asp:TableCell>
 
                </asp:TableRow>
 
            </asp:Table>
             
             
     
                 
 
        </telerik:RadPageView>



Code Behind:

//Get All Terminals
                TD_Cmd = TDConnection.CreateCommand();
                TD_Cmd.CommandText = "EXECUTE " + SQL_Customer_Connection.Product_Name + "_sp_Terminal_List " +
                    "@Param_Customer_ID_Ref = @Param_Customer_ID_Ref1, " +
                    "@Param_Company_ID_Ref = @Param_Company_ID_Ref1";
 
                TD_Cmd.Parameters.Add(new SqlParameter("@Param_Customer_ID_Ref1",
                    (string)HttpContext.Current.Session["User_Belongs_To_Customer_Ref_ID"]));
                TD_Cmd.Parameters.Add(new SqlParameter("@Param_Company_ID_Ref1",
                    (string)HttpContext.Current.Session["User_Belongs_To_Company_Ref_ID"]));
 
                TD_DR = TD_Cmd.ExecuteReader();
 
 
                while (TD_DR.Read())
                {
                    RadListBoxItem new_item = new RadListBoxItem();
 
                    new_item.Attributes.Add("Terminal_String",
                        (string)TD_DR["Terminal_Name"] + " - " + (string)TD_DR["Terminal_Location"]);
                    new_item.Attributes.Add("Terminal_Nitgen_ID", (Convert.ToInt32(TD_DR["Nitgen_Terminal_ID_Ref"])).ToString());
 
                    RadListBox_Available_Terminals.Items.Add(new_item);
                    RadListBox_Available_Terminals.DataBind();
 
                }
 
 
                TD_DR.Close();
 
 
                //Get List of Terminals that this visitor can authenticate on
                TD_Cmd = TDConnection.CreateCommand();
                TD_Cmd.CommandText = "EXECUTE " + SQL_Customer_Connection.Product_Name + "_sp_Terminal_User_Authentication_List " +
                    "@Param_Customer_ID_Ref = @Param_Customer_ID_Ref1, " +
                    "@Param_Company_ID_Ref = @Param_Company_ID_Ref1, " +
                    "@Param_User_ID = @Param_User_ID1";
 
                TD_Cmd.Parameters.Add(new SqlParameter("@Param_Customer_ID_Ref1",
                    (string)HttpContext.Current.Session["User_Belongs_To_Customer_Ref_ID"]));
                TD_Cmd.Parameters.Add(new SqlParameter("@Param_Company_ID_Ref1",
                    (string)HttpContext.Current.Session["User_Belongs_To_Company_Ref_ID"]));
                TD_Cmd.Parameters.Add(new SqlParameter("@Param_User_ID1",
                    Label_Visitor_ID1.Text));
 
                TD_DR = TD_Cmd.ExecuteReader();
 
                while (TD_DR.Read())
                {
                    RadListBoxItem new_item = new RadListBoxItem();
                    new_item.Attributes.Add("Terminal_String",
                        (string)TD_DR["Terminal_Name"] + " - " + (string)TD_DR["Terminal_Location"]);
                    new_item.Attributes.Add("Terminal_Nitgen_ID", (Convert.ToInt32(TD_DR["Nitgen_Terminal_ID_Ref"])).ToString());
 
                    RadListBox_Authenticate_Terminals.Items.Add(new_item);
                    RadListBox_Authenticate_Terminals.DataBind();
 
                    if (Convert.ToInt32(TD_DR["User_Priv"].ToString()) == 1)
                    {
                        //Master User
                        CheckBox current_checkbox = new_item.FindControl("chk_admin") as CheckBox;
                        current_checkbox.Checked = true;
                    }
                }
 
                RadListBox_Authenticate_Terminals.DataBind();
 
 
 
...........
Dimitar Terziev
Telerik team
 answered on 20 Apr 2011
1 answer
265 views
Hi,

i have a grid width a GridNumericColumn,  when i edit and i insert a value with comma like "12,12" and press update button on grid
i have
Format of the input string is not correct
"11,12" is not a Valid Decimal Value.

 I must use dot for separate thousand, and comma for decimal digits.

 from db i bind a list of Decimal Value, and when i edit if i use the comma for decimal digit got the Format of the input string is not correct.
the grid column.
<telerik:GridNumericColumn    NumericType="Currency" DataField="Canone"
                            FilterControlAltText="Filter Canone column" HeaderText="Canone" DecimalDigits="2"                           
                            SortExpression="Canone" UniqueName="Canone"
                            FilterImageUrl="../App_Themes/ICTTheme/immagini/u58.png">
                        </telerik:GridNumericColumn>

the radgrid is bind to ObjectDataSource, and Select Method return a list of custom object, Canone Field is Decimal.
Tsvetina
Telerik team
 answered on 20 Apr 2011
1 answer
106 views

I have a requirement to calculate grid's cell value when a user changes another cell's value in the grid. Is there any client side events that may help me to do that in Rad Grid for AJAX.

Requirement :(Please refer attached image). 

A wireframe has been attached to further explain the issue. As you can see in the image,  when a user clicks "add multi pack button", a second row is created in the grid. When user enters the pack size in first cell of second row, it should calculate the gross cost as shown in picture.
 
I haven’t been able to achieve that with the grid client side events. I was looking for something similar to “lostfocus” in the telerik grid view.

Thank you for the Help
Linsemon
Shinu
Top achievements
Rank 2
 answered on 20 Apr 2011
3 answers
80 views
I have a radgrid in my MVC view and I have a radgrid that I bind to as described in the Telerik documentation using ViewData.  I'd like to sort the radgrid but am having trouble figuring out how to do so.  Is there a demo or forum post I missed?  Any help would be appereciated.

Thanks,

Matt
Iana Tsolova
Telerik team
 answered on 20 Apr 2011
3 answers
134 views
Hi

I have seen this article here http://www.telerik.com/community/forums/aspnet-ajax/treeview/radtreeview-client-side-scrollintoview-for-selected-node-question.aspx where you are able to scroll the selected node to the top which is great.

Is it also possible to scroll a node to the top from its OnClientNodeExpanded event? 

I have tried attaching the scrollToNode code to the OnClientNodeExpanded event but it never scrolls all the way to the top. 

Can anyone help.

Regards

Mike
Peter
Telerik team
 answered on 20 Apr 2011
1 answer
165 views
Hey,

We have a custom data model that we want to use the RadFilter to allow our clients to create queries for their Websites.  I want to be able to dynamically add the list of fields available, the criteria allowed per field and give the ability to have custom editors(dropdown picker instead of textbox, combobox, ...)  Can someone tell me how to do this?

Thank you.
Tsvetina
Telerik team
 answered on 20 Apr 2011
1 answer
102 views
I'm new to Telerik and I'm having trouble formatting the dropdowns on a horizontal RadMenu.  When I create a horizontal menu, the drop down text  on each line is centered.  Telerik's examples show then left aligned.  HorizontalAlign does not seem to be available.  Furthermore I don't think I can use a skin, because I want the horizontal menu to be centered.

Any suggestions?

Kate
Telerik team
 answered on 20 Apr 2011
1 answer
63 views

Hi Telerik Team,

Need some help on CSS for Grid.

Follwing things have been done:
1) On "Grid.Office2007.css"  I overwrited the

div.RadGrid_Office2007 

    background: yellow; 
    color: red; 
}

but never reflected on Actual Grid of the application.

2) Similarly I put the above code on Actual Page of the application it works fine.

3)  Then i put the same code on Seperate CSS file and referred in actual application and assign CSSClass for Grid as  "RadGrid_Office2007 " as in stylesheet, But it never worked and doesnt overwrite.

Now the problem is i cannot put the point no 2 on all pages, since it will not be correct way of doing, 

Can you please suggest the solution for point no 3 or point no 1, So that it will easy for refrence..?

Regards
Sudhakar



Princy
Top achievements
Rank 2
 answered on 20 Apr 2011
1 answer
90 views
I'm new to Telerik and I'm trying to set up a RadMenu and I'm having formatting problems.

1)  Rad menu is in an <asp:TableCell  , as shown below

 

<asp:TableCell runat="server" ID="tclNav2" HorizontalAlign ="Center">

 

 

 

<telerik:RadMenu ID="RadMenu1" runat

="server">

The menu doesn't seem to be centered in the cell.  It is left aligned.

2)  I was trying to use CSS to format menu items, but it doesn't seem to recognize CssClass items

 

<telerik:RadMenuItem runat="server" CssClass="radMenu1" Text="Home Page"></telerik:RadMenuItem

>

Can you use CssClass with the RadMenuItem?

Thanks for your help.

 

 

 

 

Kate
Telerik team
 answered on 20 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?