Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
336 views
Hi,

its very important for us that we can overload the standart CSS Classes.

Is it possible to add a function so we can also load the CSS from a String and not only from a File?

Or is there another way to do that?

Example:
I have an external CSS File loaded but want to add 3 Classes dynamical so it looks different for every User.

Thank you.
John
Top achievements
Rank 1
 answered on 16 Jul 2009
0 answers
92 views
Hi,

I'm using Rad menu in my application. It's working fine in all browsers(IE, Mozilla, safari and chrome). But I'm facing one problem in IE6 browser. I'm applying CSS properties for rad menu. Intially menu item will in gray color, on mouse over or selected item in orange color.
    Problem is initially I selected menu item1, it truns to orange color then I clicked on menu item2.  Then problem is menu item1 is not getting original gray color. It not getting applied  original CSS for menu item1. It getting in white color. It is happening in only in IE6.

Please any one can help me on this.

--Rajasekhar
Rajasekhar Reddy
Top achievements
Rank 1
 asked on 16 Jul 2009
1 answer
160 views
Hi Telerik Team,

I am using CSLA as a framework for my library. I have managed to incorporate it with the telerik controls, but I have one issue now that I don't know how to solve and if my idea of a solution is possible.
I have an .aspx page, and I want to pass a collection csla object to the radwindow that I am opening, so I can display that collection within the window. In the window, I would like to be able to manipulate with the collection, add/remove items. The final part is returning the collection back from the window to the caller page.
NOTE: The collection belongs to the parent object of the caller page, and it gets saved within the main page. ONLY modifications to the collection are done within the rad window.

Please, any ideas?

Thanks a lot,
lektira
HHalim
Top achievements
Rank 2
 answered on 16 Jul 2009
1 answer
103 views
Hi how to avoid week days options from DateTimePicker

I just want to see just month days only but not week days


--Thanx 
Sebastian
Telerik team
 answered on 16 Jul 2009
1 answer
142 views
I have a couple of projects using different versions of the Telerik ASP.NTE AJAX control suite. Obviously as new releases come out I want to upgrade to those in existing projects to take advantage of all the new functionality. Is there a breaking changes document somewhere that would show if something I'm doing wouldn't work in a new version? If I did migrate to a new version I would definitely test things but if I know ahead of time something I'm doing won't work with a new release it saves me a lot of headache.

Anyone else upgraded versions before? Pretty seamless?
Sebastian
Telerik team
 answered on 16 Jul 2009
8 answers
172 views
I have a radgrid and a radajaxmanager (2008 Q3) in a page.

It is a simple page, basically, it has the radgrid's NeedDataSource and an itemdatabound to generate the row numbering. 

When the page is first load, the filtering function is fine.

Then, if I perform a second filtering, the filter context memu does not appear, with script error:

'null' is not or not an object 

If I removed the radajaxmanager, second filtering is ok.

The code:

 

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs)  
        Dim myTable As New DataTable  
        myTable = dbSearchPart_Cost 
        If myTable Is Nothing Then  
            msgMessage.Text = "System error.  Cannot connect to database! " 
            GoTo error_exit  
        End If  
        RadGrid1.DataSource = myTable 
 
        GoTo exit_sub  
error_exit:  
        msgMessage.CssClass = "ErrorText" 
exit_sub:  
        myTable = Nothing 
    End Sub  
 
    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        If (TypeOf e.Item Is GridDataItem) Then  
            Dim lbl As Label = CType(e.Item.FindControl("numberLabel"), Label)  
            lbl.Text = e.Item.ItemIndex + 1  
        End If  
    End Sub 

The aspx page
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" 
                    OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Forest" EnableViewState="False" 
                    AllowPaging="True" PageSize="50" ShowStatusBar="True" AllowSorting="True" AllowFilteringByColumn="True"  > 
                    <HeaderContextMenu Skin="SkyBlue">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </HeaderContextMenu> 
                    <MasterTableView EnableViewState="False"  DataKeyNames="PartID">  
                        <Columns> 
                            <telerik:GridBoundColumn DataField="PartID" UniqueName="ID" Visible="False">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn UniqueName="RowNo" HeaderText="Item" AllowFiltering="False">  
                                <ItemTemplate> 
                                    <asp:Label ID="numberLabel" runat="server" Width="30px" /> 
                                </ItemTemplate> 
                                <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn UniqueName="chkItem" AllowFiltering="False">  
                                <ItemTemplate> 
                                    <asp:CheckBox ID="chkItem" runat="server" Width="30px" /> 
                                </ItemTemplate> 
                                <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridHyperLinkColumn Text="&lt;img src='icon/icon_write.gif' border='0'/&gt;" 
                                DataNavigateUrlFields="PartID" DataNavigateUrlFormatString="~/index.aspx?mode=PartEdit&amp;opn=edit&amp;ID={0}" 
                                UniqueName="Edit" AllowFiltering="False">  
                                <HeaderStyle Width="30px" /> 
                            </telerik:GridHyperLinkColumn> 
                            <telerik:GridTemplateColumn DataField="PartID" AllowFiltering="False" UniqueName="Setup">  
                                <ItemTemplate> 
                                    <img src="icon/icon_plus.gif" onclick="ShowNewWindow('<%# Eval("PartID") %>');return false;" 
                                        style="cursor: pointer;" /> 
                                </ItemTemplate> 
                                <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn UniqueName="PartActive" DataField="PartActive" SortExpression="PartActive" 
                                FilterControlWidth="15px">  
                                <ItemTemplate> 
                                    <asp:CheckBox ID="chkActive" Checked='<%# GetActive(Eval("PartActive")) %>' Enabled="false" 
                                        runat="server" /> 
                                </ItemTemplate> 
                                <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridBoundColumn DataField="PartNo" UniqueName="PartNo" FilterControlWidth="60px">  
                                <HeaderStyle Width="80px" /> 
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="PartName" UniqueName="PartName">  
                                <HeaderStyle Width="200px" /> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn UniqueName="Desc" DataField="Desc1, Desc2, Desc3" 
                                SortExpression="Desc1"   AllowFiltering="false">  
                                <ItemTemplate> 
                                                                       <asp:Label ID="PartDesc" Text='<%#GetLength(Eval("Desc1") + Eval("Desc2") + Eval("Desc3"), 250)%>' 
                                        runat="server"></asp:Label> 
                                </ItemTemplate> 
                                <HeaderStyle Width="200px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn UniqueName="PartPrice" DataField="PriceCurrency1,PriceCurrency2, PriceCurrency3, PriceCurrency4, PriceCurrency5, Price1, Price2, Price3, Price4, Price5" SortExpression="Price1"  AllowFiltering="false">  
                                <ItemTemplate> 
                                    <%# Eval("PriceCurrency1") %> 
                                    <%# Eval("Price1") %> 
                                    <br /> 
                                    <%# Eval("PriceCurrency2") %> 
                                    <%# Eval("Price2") %> 
                                    <br /> 
                                    <%# Eval("PriceCurrency3") %> 
                                    <%# Eval("Price3") %> 
                                    <br /> 
                                    <%# Eval("PriceCurrency4") %> 
                                    <%# Eval("Price4") %> 
                                    <br /> 
                                    <%# Eval("PriceCurrency5") %> 
                                    <%# Eval("Price5") %> 
                                </ItemTemplate> 
                                <HeaderStyle Width="100px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn UniqueName="PartCost" DataField="CostCurrency, Cost" SortExpression="Cost"  AllowFiltering="false">  
                                <ItemTemplate> 
                                    <%# Eval("CostCurrency") %> 
                                    <%#Eval("Cost")%> 
                                </ItemTemplate> 
                                <HeaderStyle Width="100px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn UniqueName="PartQty" DataField="PartID" FilterControlWidth="60px"  AllowFiltering="false" > 
                                <ItemTemplate> 
                                    <asp:Literal ID="PartQty" Text='<%# GetQty(Eval("PartID")) %>' runat="server"   /> 
                                </ItemTemplate> 
                                <HeaderStyle Width="100px" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridBoundColumn DataField="ProductGroup" UniqueName="ProductGroup" FilterControlWidth="50px">  
                                <HeaderStyle Width="100px" /> 
                            </telerik:GridBoundColumn> 
                        </Columns> 
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
                    </MasterTableView> 
                    <PagerStyle Mode="NumericPages" /> 
                    <FilterMenu Skin="Forest">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 

And the ajaxmanager:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False" 
    DefaultLoadingPanelID="RadAjaxLoadingPanel1">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="btnRefresh">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src="icon/spinner.gif" style="border: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
Veli
Telerik team
 answered on 16 Jul 2009
2 answers
131 views
Hello,
I have a general question on the demo found at http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx
I was able to duplicate this in my project, and it works perfectly.  I do not like simply cutting and pasting unless I fully understand the detail.   I am currious why the Scheduler appointment created and databoud events are assigned the way they are in the example.  Instead of declaring them in tag attributes in the ascx file,  they are assigned values in the code behind in the page load.  In addition, using the += and without checking for postback appears to me as though we are adding multiple duplicate event handlers.  I do not pertend to be an expert on this, in fact, it is why I ask the question as to gain a better understanding.  The following shows the page load from this exampe.

private void Page_Load(object sender, EventArgs e)
        {
            RadScheduler1.AppointmentCreated += RadScheduler1_AppointmentCreated;
            RadScheduler1.DataBound += RadScheduler1_DataBound;
        }
Jim
Top achievements
Rank 2
 answered on 16 Jul 2009
13 answers
340 views
Hello,

From what I see in your demo, your captcha is missing:
- using random colors for letters (very nice to see) and not only one color,
- optionally working as a page validator (could be turn on by a property) with validation group.
- auto reset after ajax request

Hope it will be in Q2 :)

Thanks
CS
Pero
Telerik team
 answered on 16 Jul 2009
2 answers
118 views
I added entries within the <tools> element in this file:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\4.5.6.0__1f131a624888eeed\RadControls\Editor\ToolsFile.xml

as follows:

    <!-- Added for media files --> 
    <tool name="FlashManager" /> 
    <tool name="MediaManager" /> 

I saved the file, reset IIS on the server and the buttons appear on the toolbar when I edit a RADControl web part.  But when I click on the buttons I get an error dialog:

Could not find the command FlashManager.  Please update your command list.

Anyone got any idea why?  The help file says I should be able to use the FlashManager control right?

My server is 64 bit Windows Server 2003
Lars Nielsen
Top achievements
Rank 1
 answered on 16 Jul 2009
1 answer
104 views
In a couple of Grids of mine i have a column with a ComboBox in it. The ComboBox is using LoadOnDemand and javascript to handle this is auto-generated by the ComboBox for each row in the grid.

Is there any good way or best practices to reduce the amount of javascript being generated?

Thanks in advance!
Georgi Krustev
Telerik team
 answered on 16 Jul 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?