Telerik Forums
UI for ASP.NET AJAX Forum
37 answers
1.6K+ views
After having installed the "Prometheus" controls, I ran the local samples and everything was working fine.
After a few days while developing, when I opened Visual Studio it suddenly deleted all the Telerik controls and Prometheus controls and even the AJAX Toolkit from the Toolbox and I was left with the standard Toolbox.
When I tried running the local samples again on a local server, they were not responding at all. From the Advanced tab of Internet Options I enabled the notify on script error option.
When I reloaded any page with Telerik controls it popped a Javascript error box and informed me that 'Telerik' is undefined.

How did this all happen and what exactly triggered it. All my personal project are now static and aren't using the Telerik controls because it can't see them.

Please Help ASAP.
And thank you for your time.
Diego
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
144 views
Hello,
I have 2 questions.
Q 1.) I have a MasterTableView and a DetailTables. This works fine.
<MasterTableView DataKeyNames="cid" DataSourceID="SqlDataSource1">
    <DetailTables>
        <telerik:GridTableView runat="server" DataKeyNames="cid"
            DataSourceID="SqlDataSource2" AllowPaging="False" CommandItemDisplay="Top"
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True">
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="cid" MasterKeyField="cid" />
            </ParentTableRelation>
            ...

When i have 1 DataRow in the DetailTable, how can i hide the "Add new record" in the DetailTable header?

Q 2.) I will use a new button in the DetailTable in the DataRows. This will open a new Window with Javascript. I need 2 parameters from the MasterTableView Columns. This columns are "visible=false" in the grid. How can I access this data via Javascript?

Best regards
Reiner
Mario
Top achievements
Rank 1
 answered on 28 Mar 2012
4 answers
447 views
How to set MinDate for all RadDatePicker controls in project? In one place
Mike
Top achievements
Rank 1
 answered on 28 Mar 2012
1 answer
98 views
I'm using 2012 Q1.  On a very simple page I have a RadGrid and RadCalendar.  The RadGrid displays invoices for a certain day, and I have an ObjectDataSource with a ControlParameter using RadCalendar.SelectedDate as the SQL parameter.  On page load, I set the SelectedDate as today to set it for the first time.

When I click around on dates, I'm often getting the error "SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM." I changed the code to add a RadButton, and call RadGrid.Rebind() on the click.  I also manually set the value of the parameter in the Selecting event.  What I noticed was the SelectedDate value was "#12:00:00 AM#", even though I clicked a date, and then clicked the RadButton.

Clicking through the dates, if the RadGrid is empty due to no records, I'm able to keep navigating through.  However, if I load records from a date, the very next RadGrid.Rebind() is what triggers this error.

Is there something I'm missing?
eric
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
264 views

I am replacing a standard listbox control with a RADLISTBOX control and thought it would be pretty seamless to switch out, but I am not having any luck with populating the RADLISTBOX. Can someone please tell me what I am doing wrong? I am not doing anything spectacular, just a simple databind with datareader.

Here is my code aspx.vb

Dim item As New RadListBoxItem()
           
        While reader4.Read
            item.Value = reader4("DescriptionLong")
            ConditionList.Items.Add(item)

Here is my aspx. code

<telerik:RadListBox ID="ConditionList" Width="160px" runat="server"
   Skin="Office2010Blue">
                     
</telerik:RadListBox>
Charles
Top achievements
Rank 1
 answered on 28 Mar 2012
2 answers
93 views
Hi,

i am trying to apply differetn skinIds to all my sub grid to tell them apart but it seems as if it does not work, I have the skins set but when I open the grid the sub grid come up as white with black letters.  Before I set the cssStyles on them but I want alike color schemas on them and this is hard to sit around and try to come up with a color schema that matches the web20 color schema.  So the question is how can I set the sub heiarchal grids skinId and make it work.  Thanks
<telerik:RadGrid ID="myRadGrid" runat="server" Width="100%" BorderWidth="1px" CellPadding="4" Skin="Web20">
                                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="intCategoryId" HierarchyDefaultExpanded="false" Font-Size="10" Font-Names="Veranda,arial,sans-serif" 
                                        HeaderStyle-HorizontalAlign="Center" Name="MasterGrid" ExpandCollapseColumn-ButtonType="ImageButton" HierarchyLoadMode="Client" AllowPaging="True" PageSize="20" 
                                        PagerStyle-Mode="NumericPages" ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                        <ItemStyle HorizontalAlign="Center" /><AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true"  />
                                        <DetailTables>
                                            <telerik:GridTableView Name="myManufacGrid" runat="server" DataKeyNames="intManufacturerId" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" SkinID="web20"
                                                AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                                ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                                <ParentTableRelation>
                                                    <telerik:GridRelationFields DetailKeyField="intCategoryId" MasterKeyField="intCategoryId" />
                                                </ParentTableRelation>
                                                <HeaderStyle Font-Bold="true" HorizontalAlign="Center" /><ItemStyle HorizontalAlign="Center" /><AlternatingItemStyle  HorizontalAlign="Center" />
                                                <DetailTables>
                                                <telerik:GridTableView DataKeyNames="intMakeId" Name="myMakeGrid" Width="100%" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" SkinID="web20"
                                                    AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                                    ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                                        <ParentTableRelation>
Kevin
Top achievements
Rank 1
 answered on 28 Mar 2012
5 answers
248 views
I add an image to my hyperlink column from the code behind. Unfortunately it adds the image even if no value for the field is in the database. I would like to hide the image if the value is NULL or empty.

Here is my ASPX column code:

<telerik:GridHyperLinkColumn DataNavigateUrlFields="Email" HeaderText=" "
     DataNavigateUrlFormatString="mailto:{0}"
     UniqueName="Email" AllowFiltering="False" ItemStyle-HorizontalAlign="Center">
 <ItemStyle Width="50px"/>
</telerik:GridHyperLinkColumn>


I have tried:
Private Sub RadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid2.ItemDataBound
    If (TypeOf e.Item Is GridDataItem) Then
 
        Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
        Dim hyperlink As HyperLink = CType(dataItem("Email").Controls(0), HyperLink)
        hyperlink.ImageUrl = "../../../images/iconoutlook.gif"
 
        If (dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("Email") Is System.DBNull.Value) Then
            Dim ltrl As LiteralControl = New LiteralControl(hyperlink.Text)
            dataItem("Email").Controls.Clear()
            dataItem("Email").Controls.Add(ltrl)
        End If
 
    End If
End Sub


Any help appreciated.
Allan
Top achievements
Rank 2
 answered on 28 Mar 2012
2 answers
123 views
Hi everybody!!!

i have a problem using radpagemultiview i have on each radpageview a grid, my problem is in the second radgrid when i use  javascript openRadWindow if i do double click the popup get the correct  path but if i click in the link button using javascript not get the correct path i dont understand why because i wrote correct path

<a href="#" onclick="openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"cod_empleado")%>'); return false;">
                            Imprimir</a>

and my javascript:

<telerik:RadCodeBlock ID="RadCodeBlock4" runat="server">
            <script type="text/javascript">

                function refreshGrid(arg) {
                    if (!arg) {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                    }
                    else {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                    }
                }
                function RowDblClick(sender, eventArgs) {
                    window.radopen("Descuentoempleado?cod_empleado=" + eventArgs.getDataKeyValue("cod_empleado"), "UserListDialog");

                }
                function openRadWindow(cod_empleado_) {
                    var oWnd = radopen("Descuentoempleado.aspx?cod_empleado=" + cod_empleado_, "UserListDialog");
                    oWnd.center();
                }
                
            </script>
        </telerik:RadCodeBlock>
i hope anybody can help me thank u very much
Robert
Top achievements
Rank 2
 answered on 28 Mar 2012
5 answers
125 views
Hi Telerik,

I'm having an issue with the RadGrid control.

After resizing my browserwindow my radgrid is being resized.
It changes my height with a few pixels.

I tried debugging the javascript and in the setDataDivHeight function it decides to  remove 17 pixels because Telerik.Web.UI.Grid.getScrollBarHeight() returns 17. But I didn't have a scrollbar!

Currently i'm using Telerik controls version: 2011.2.915.35.

Is there a workaround for this?
Tsvetina
Telerik team
 answered on 28 Mar 2012
1 answer
90 views
Is it possible to change this from the dashed default?  I assume it is just a style, but I cannot locate it.

Thanks,

Steve
Steve
Top achievements
Rank 1
 answered on 28 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?