Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views

I wrote an external JS file and placed in RadCodeBlock.

Sometimes I changed JS code and reran, it performed old JS code.

I had to rename JS file name solving this program.

Any good idea without renaming JS file name?

It's no use deleting cached JS file or pressing Ctrl+F5 in IE8 browser.

ChainHome Yang
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
96 views
Hi,

We are using a RadWindow manager and many child windows in it as widgets. The widgets are opening properly, but the resizing is not working as intended. The vertical and horizontal resize are not working, i.e. the mouse cursor is changing on the window border but when we drag, the window is not getting resized. The resize is working only when we resize diagonally from right top or left top window corner.


Regards,
Vinod
Fiko
Telerik team
 answered on 28 May 2010
1 answer
79 views
I access a page in my projcect using  different  web browser.   

case 1 :   if I access it using FF or IE8 first , then access it using IE6.  
               IE6 will prompt a javascript error :'length' is null or not a object.
case 2:   if I access it using IE6 first , then access it using FF or IE8.    
               FF will prompt a error: e is null ,  the prompt from IE8 is same as case 1.

in case 1, I debug it using vs2008,  the problem line is "b<e.length"  in Telerik.Web.UI.Ajax.Ajax.js .
I use master page, below is my content page
<asp:Content ...> 
  <script ...> 
     some script codes  
  </script...> 
 
   some web controls  
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rtvGrids">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rtvGrids" /> 
                    <telerik:AjaxUpdatedControl ControlID="rgChildren" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rtvGrids" /> 
                    <telerik:AjaxUpdatedControl ControlID="rgChildren" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="rgChildren">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgChildren" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
</asp:Content> 
is there any problem at AjaxSettings ?
Iana Tsolova
Telerik team
 answered on 28 May 2010
1 answer
101 views
Hello,
I am trying to display a RadChart and am getting the following error.  I've tried posting this to your forum a few other times and got a server error so this will be my last attempt.

Compiler Error Message: CS0433: The type 'Telerik.Charting.ChartSeriesItem' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7818b6ff\5b5c0f3c\assembly\dl3\161ec912\00bcb7fa_f106c901\Telerik.Charting.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7818b6ff\5b5c0f3c\assembly\dl3\111c8f88\00a23f6e_7c94ca01\Telerik.Web.UI.DLL'

Source Error:

Line 156:        
Line 157:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 158: private global::Telerik.Charting.ChartSeriesItem @__BuildControl__control5() {Line 159:            global::Telerik.Charting.ChartSeriesItem @__ctrl;
Line 160:
Ves
Telerik team
 answered on 28 May 2010
1 answer
68 views
Hi All,

I am trying to put together a form that when submitted would represent a parent entity with child entities and child child entities. I would like to use RadGrid to store the child entities on the page before the submit. There is a single submit that will save everything in the page.

I am using RadWindow to pop-up a (sub)form which i hope to then insert the result of the form into the grid on the parent page.. either with js or in ajax. I have the form and i am sending the result back to the main form.. i need to now write the result of the sub-form to the grid.

Can i use radgrid to do this?? ie: have each row in a grid represent a related entity in the grid? There is no databanding in this i am strictly trying to use the grid as a container for data i want to ultimately submit back to the server.

If this can be done i need to know how to add the rows either in JS or in code-behind for the grid where these added rows will ultimately be available in code-behind. thanks!

Rich
Pavlina
Telerik team
 answered on 28 May 2010
1 answer
90 views
HI,

I am using radgrid in my project.I have couple of questions regarding radgrid .

1) Since I do want to use Skins I have set Enable embedded skins property to false and apply styles to the grid.The problem is that vertical borders doesnt appear in IE while in Firefox it shows up.I have posted my code and styles below.

2)Since I want custom page template, using Pager template I am creating Paging for radgrid.I am able to create First,Previous,Next and Last  using that.But I want to have numbers also appeared in middle of Previous and Next.Is there any way displaying numbers horizontally in labels instead of textbox.

Could anyone please solve this issues as soon as possible.its urgent.

For eg the paging style should look as:<< Previous 1 2 3 Next >>.

Code:

 

<telerik:RadGrid ID="ProfileRadGrid" runat="server" GridLines="Both" AllowSorting="True"

 

 

AllowPaging="True" PageSize="5" Height="400px" PagerStyle-AlwaysVisible="true" AutoGenerateColumns="False" EnableEmbeddedSkins="false">

 

 

<HeaderStyle CssClass="gridheader" Wrap="true" />

 

 

<ItemStyle CssClass="gridrow" Wrap="true" BorderColor="Black" BorderStyle="Solid" />

 

 

<AlternatingItemStyle CssClass="gridalternatingrow" Wrap="true" />

 

 

<PagerStyle Mode="NumericPages"/>

 

 

 

<MasterTableView>

 

 

<PagerTemplate>

 

 

<table border="0" cellspacing="0" cellpadding="0" height="18px" width="100%">

 

 

<tr>

 

 

<td style="border-style: none;">

 

 

<asp:LinkButton ID="LinkButton1" CommandName="Page" CausesValidation="false" CommandArgument="First"

 

 

runat="server" CssClass="linkbutton_blue"><<</asp:LinkButton>&nbsp;&nbsp;

 

 

<asp:LinkButton ID="LinkButton5" CommandName="Page" CausesValidation="false" CommandArgument="Prev"

 

 

runat="server" CssClass="linkbutton_blue">Previous Page</asp:LinkButton>&nbsp;&nbsp;

 

 

<asp:LinkButton ID="LinkButton3" CommandName="Page" CausesValidation="false" CommandArgument="Next"

 

 

runat="server" CssClass="linkbutton_blue">Next Page</asp:LinkButton>&nbsp;&nbsp;

 

 

<asp:LinkButton ID="LinkButton2" CommandName="Page" CausesValidation="false" CommandArgument="Last"

 

 

runat="server" CssClass="linkbutton_blue">>></asp:LinkButton>

 

 

</td>

 

 

<td style="border-style: none; white-space: nowrap;">

 

 

</td>

 

 

 

 

</tr>

 

 

</table>

 

 

</PagerTemplate>

 

 

<Columns>

 

 

...................................
.................................
</
Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 


Style:

.gridheader

{

 

background-color: #c3c3c3;

 

 

font-family: Arial,Times New Roman,Trebuchet MS,Sans-Serif;

 

 

font-size: 13px;

 

 

font-weight:normal;

 

 

text-align: left;

 

 

color: Black;

 

 

text-transform: none;

 

 

text-align: left;

 

 

vertical-align: top;

 

 

border-bottom:solid thin black;

 

 

border-top:solid thin black;

 

 

border-left:solid thin black;

 

 

border-right:solid thin black;

 

 

height: 25px;

 

 

text-align: left;

 

}

.gridheader

 

a

 

{

 

text-decoration:none;

 

 

color: Black;

 

}

.gridrow

{

 

 

 

background-color:White;

 

 

font-family: Arial,Times New Roman,Trebuchet MS,Sans-Serif;

 

 

font-size: 13px;

 

 

text-align: left;

 

 

color: Black;

 

 

text-transform: none;

 

 

vertical-align: top;

 

 

text-decoration:none;

 

 

height: 25px;

 

 

border-bottom:solid thin black;

 

 

border-top:solid thin black;

 

 

border-left:solid thin black;

 

 

border-right:solid thin black;

 

}

.gridrow

 

a

 

{

 

text-decoration:none;

 

 

color: blue;

 

 

}

.gridalternatingrow

{

 

 

 

background-color:White;

 

 

font-family: Arial,Times New Roman,Trebuchet MS,Sans-Serif;

 

 

font-size: 13px;

 

 

text-align: left;

 

 

color: Black;

 

 

text-transform: none;

 

 

vertical-align: top;

 

 

text-decoration:none;

 

 

height: 25px;

 

 

border-bottom:solid thin black;

 

 

border-top:solid thin black;

 

 

border-left:solid thin black;

 

 

border-right:solid thin black;

 

}

.gridalternatingrow

 

a

 

{

 

text-decoration:none;

 

 

color: blue;

 

 

}


Also I have attached how grids look between firefox and ie.

Thanks,
Dwarak

Iana Tsolova
Telerik team
 answered on 28 May 2010
1 answer
123 views
Hi

Is there a way to set ToolTips on Ondemandnodes (RadTreeNodeData)?

Regards
Markus
Veronica
Telerik team
 answered on 28 May 2010
1 answer
101 views
Hi
Is there a way to set EnableContextMenu on Ondemand Nodes (RadTreeNodeData)

Regards
Veronica
Telerik team
 answered on 28 May 2010
3 answers
105 views
Hello!

When I expand my PanelBar it extends over my RadGrid like shown on the image. How can I fix this problem?

Thanks!

Ales
Ales Savli
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
196 views
Hi

Can somebody explain for me how the FilterExpression works?

Im trying to get a simple example to work as I want it to do.

In the example I first used a FilterExpression on the SQLDataSource. First taken from a dropdownlist and then explicitly as "Login_Name='Patrik'". In both cases the filtering is working fine.

Then Im trying to do the same with the RadGrids MasterTableViews FilterExpression but it doesnt seem to work the same. Or Im not getting the syntax. How would I write the FilterExpression to do the same for me as in the SQLDataSource?

And secondly how could I get the FilterExpression to take the selection in the DropDownList?

//Mathias

Here is my code: 
<%@ 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 id="Head1" runat="server"
    <title>ASP.NET Example</title> 
</head> 
<body> 
        <form id="form1" runat="server"
 
            <telerik:RadScriptManager runat="server"/> 
 
            <asp:DropDownList 
                id="DropDownList1" 
                runat="server" 
                AutoPostBack="True"
                <asp:ListItem Selected="True">Roland</asp:ListItem> 
                <asp:ListItem>Patrik</asp:ListItem> 
                <asp:ListItem>Petter</asp:ListItem> 
            </asp:DropDownList> 
 
            <asp:SqlDataSource 
                id="SqlDataSource1" 
                runat="server" 
                ConnectionString="???????" 
                SelectCommand="SELECT * FROM Sys_Users"
<%--                FilterExpression="Login_Name='Patrik'"
                <FilterParameters> 
                    <asp:ControlParameter Name="Title" ControlId="DropDownList1" PropertyName="SelectedValue"/> 
                </FilterParameters> 
--%>            </asp:SqlDataSource> 
 
            <p><telerik:RadGrid 
                id="GridView1" 
                runat="server" 
                DataSourceID="SqlDataSource1" 
                AutoGenerateColumns="False"
                <MasterTableView FilterExpression="([Login_Name]='Patrik')"
                    <Columns> 
                        <telerik:GridBoundColumn Visible="False" DataField="RecID" /> 
                        <telerik:GridBoundColumn HeaderText="First Name" DataField="F_Name" /> 
                        <telerik:GridBoundColumn HeaderText="Last Name" DataField="L_Name" /> 
                        <telerik:GridBoundColumn HeaderText="Login" DataField="Login_Name" /> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 
 
        </form> 
    </body> 
</html> 

Nikolay Rusev
Telerik team
 answered on 28 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?