Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
I have attempted a file where I setup to use a RadButton.  I wanted to call a client-side routine on click and change the text of the button from Update to Updating, then execute server-side code for the click event.  I also want to test the text and if is not equal to update then do not allow executing the server-side code again.

The problem is I get a compiler error everytime and way I try to use the get_text() function.  Please look at the code and tell me what I am doing wrong.

Thanks
Princy
Top achievements
Rank 2
 answered on 24 Jul 2012
3 answers
83 views
Hi,

We are working on our project by your product.
We try to create a style sheet file to control all font style in web applications.

In a style we have define font-name and font-size follow the below style.

    body, td ,input
        {
            font-size: 10pt;
            font-family:MS Sans Serif;
            font-style:normal;
             font-variant:normal;
            font-weight:normal
        }

Then we found that it does't any affect to your controls (etc. combobox).

What should we do for use CSS style in your controls.

Best Regards
Wanlop Niwatsreesuphun
wanlop
Top achievements
Rank 1
 answered on 24 Jul 2012
11 answers
391 views
Hi guys,

this is a minor issue, but I've been thinking about writing about it for... years :)

The installation of the Telerik ASP.Net Ajax controls is intended to be done on a computer used by a developper. But strangely enough it takes into account only the SQL Express edition for the demo databases, leaving aside the full SQL Server 2008 R2 Developper Edition, which is of course the one generally used (otherwise one is missing the extensions like SQL Profiler, the super usefull tool!!)

Of course this isn't a difficult issue as one just needs to edit the win.ini file and manually attach the demo databases to the SQL Server instance, but wouldn't it be nice during the installation to detect the SQL Server version present on the computer, or at least to ask if the samples should be installed for SQL Express or the regular SQL Server ?

Francois
Roman
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
252 views
When I exported a new skin with Visual Style Builder, a folder of images called "Common" was created.  It contained five images:
  • CommandSpritesLight.png
  • CommandSpritesLightIE6.gif
  • CommonIcons.gif
  • loading.gif
  • loading_small.gif

The CSS generated for the Grid, however, refers to two images in the "Common" folder which aren't there:

/*context menu*/
 
.GridContextMenu_[My new skin] .rmLeftImage
{
    background-image:url('Common/contextMenu.gif');
}
and
.RadGrid_[My new skin] .rgExpXLS,
.RadGrid_[My new skin] .rgExpDOC,
.RadGrid_[My new skin] .rgExpPDF,
.RadGrid_[My new skin] .rgExpCSV
{
    background-image:url('Common/export.gif');
}

Is this just a bug with Visual Style Builder that needs to be fixed?  Is there a way to get those sprites from somewhere other than VSB?  It really would be most convenient if "Common" were listed along the left edge in VSB, just like "Grid" or "ListView," so the sprites inside could be edited by the user and not (partially) generated automatically.

Thanks!

Erin
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
98 views
Hello,
I just bought telerik and tried to replace standard grid with new one.
I created sqldatasource with two stored procedures one for select one for delete.
First one works fine but when I click on delete button nothing has happened.
Any idea what can be wrong?
berto
Top achievements
Rank 1
 answered on 23 Jul 2012
5 answers
316 views
Hi.

We have set up an advanced form in the scheduler and wish to include a Google Maps (or Bing Maps) map within the form. I have placed the required <div> and JavaScript in several places but it does not appear to be working. That is, the map does not appear at all (although I notice that the browser is contacting Google as the advanced form loads).

What is the best way to go about this?

Thanks in advance.
Dave Navarro
Top achievements
Rank 2
 answered on 23 Jul 2012
6 answers
311 views
I'm trying to set the column width in the ItemCreated event:



If (e.Item is GridEditableItem && 
e.Item.IsInEditMode)<BR>{<BR>    GridEditableItem item = 
(GridEditableItem)e.Item;<BR>    RadDatePciker beginDate = 
(RadDatePicker)item["beginDate"].Controls[0];<BR>    beginDate.Width 
= Unit.Pixel(102);<BR>}<BR>

The first time I enter edit mode, the control briefly display the message 'the Calendar Popup.' and adjust the width of the editbox smaller to fit this message.  The message is ultimately replaced with the calendar icon, but the width of the edit box remains small until the next time a row is put in edit mode.

Can I change this message to a blank to force it to not resize the edit box ?

Ron
Top achievements
Rank 1
 answered on 23 Jul 2012
5 answers
270 views
I got a problem while using radfile explorer. we are upgraded our telerik version to 2012.1.411

In client side how to get file name included in path..

Example my file is in document/private/Example/file.txt

i need to get this path. but while using get_path() it is coming as document/private/Example

i have to get if it is file document/private/Example/file.txt
or if it is directory document/private/Example

Please suggest me.
Dobromir
Telerik team
 answered on 23 Jul 2012
1 answer
45 views
below code is simple radgrid with editor support.

there's ragdrid, it open pop edit form, inside edit form there's  radeditor... I  isolated problem by removing all other stuff.

 when I write ToolbarMode="RibbonBar" then even edit form window does not shown. when I delete it, it works perfectly. there's no vb code in code file. here's the aspx page:
any suggestions ?


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head id="Head1" runat="server">
    <style type="text/css">
        .style4
        {
            width: 7px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="acContainer">
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">
        </telerik:RadWindowManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                var popUp;
                function PopUpShowing(sender, eventArgs) {
                    popUp = eventArgs.get_popUp();
                    var gridWidth = sender.get_element().offsetWidth;
                    var gridHeight = sender.get_element().offsetHeight;
                    var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
                    var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));
                    popUp.style.left = parseInt(((gridWidth - popUpWidth) / 2) + sender.get_element().offsetLeft).toString() + "px";
                }
            </script>
        </telerik:RadCodeBlock>
        <div>
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                AllowPaging="True" AllowSorting="True" CellSpacing="0" Width="1392px">
                <GroupingSettings CaseSensitive="false" />
                <ClientSettings>
                    <Selecting CellSelectionMode="None"></Selecting>
                </ClientSettings>
                <MasterTableView DataKeyNames="ID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top"
                    EditMode="PopUp">
                    <CommandItemSettings ExportToPdfText="Export to PDF" ShowRefreshButton="False"></CommandItemSettings>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" ReadOnly="True"
                            SortExpression="ID" UniqueName="ID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guidid" HeaderText="guidid" ReadOnly="True" SortExpression="guidid"
                            UniqueName="guidid" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="news" DataType="System.String" AllowFiltering="false"
                            HeaderText="news" SortExpression="news" UniqueName="news">
                            <EditItemTemplate>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="newsLabel" runat="server" Text='<%# bind("news")%>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridEditCommandColumn EditText="edit">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridButtonColumn CommandName="Delete" Text="delete" UniqueName="column"
                            ConfirmDialogHeight="200px" ConfirmDialogType="RadWindow" ConfirmDialogWidth="350px"
                            ConfirmText="are you seure ?" ConfirmTitle="confirm">
                        </telerik:GridButtonColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template" PopUpSettings-Width="850px" PopUpSettings-Height="500px">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                        <FormTemplate>
                            user edit tex:
                            <p>
                            </p>
                            <telerik:RadEditor ID="txtNews" runat="server" Content='<%# bind("news") %>' Height="287px"
                                ToolbarMode="RibbonBar">
                            </telerik:RadEditor>

                            <p>
                            </p>
                            <asp:Button ID="Button1" runat="server" Height="26px" Width="81px" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "add", "save") %>' />
                            <asp:Button ID="Button2" runat="server" CausesValidation="False" Text="cancel" CommandName="Cancel"
                                Height="26px" Width="81px" />
                        </FormTemplate>
                        <PopUpSettings Modal="True" />
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
            ProviderName="<%$ ConnectionStrings:ConnectionStringNET.ProviderName %>" SelectCommand="SELECT * FROM [newstable]"
            DeleteCommand="DELETE FROM [newstable] WHERE [ID] = @ID" InsertCommand="INSERT INTO [newstable] ([news]) VALUES (@news)"
            UpdateCommand="UPDATE [newstable] SET [news] = @news  WHERE [ID] = @ID">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="news" Type="string" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="news" Type="string" />
            </UpdateParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>



sql code:
CREATE TABLE [dbo].[newstable](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [news] [nvarchar](500) NULL
) ON [PRIMARY]
GO



Dobromir
Telerik team
 answered on 23 Jul 2012
2 answers
703 views
I'm REALLY struggling with this and it's causing me endless frustration. The only way I've been able to override the styles successfully is by using `!important,` which I just don't want to do, nor is it recommended. I read the following article, but it has been of no help to me.
http://blogs.telerik.com/aspnetmvcteam/posts/08-06-17/how-to-override-styles-in-a-radcontrol-for-asp-net-ajax-embedded-skin.aspx 

I have the following style which I want to override the rgHeader style. I use this style for all my GridView just fine, but RadGrid is being a pain in my ear!! :(

.appTableHead
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #2B486A;
}

I tried ".RadGrid_Default .appTableHead { <styles> }" like the article suggests, as well as several other variations and nothing is working for me. It's driving me bonkers! >.<

I've attached a snippet view of the markup generated by my app so you can see the class structure. Any help would be greatly appreciated. Particularly if you can show me exactly what needs to be done to make this work. Thanks! :)
Matthew
Top achievements
Rank 1
 answered on 23 Jul 2012
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?