Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 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
376 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
372 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
336 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
58 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
808 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
2 answers
80 views
I found it difficult to title this appropriately, but here's my problem, first with some background info.

1. I created a DataTable, gave it some columns, and populated it with data.
2. I then used a DataView to sort that data.
3. Finally I bound the DataView to a custom control inheriting from RadGrid.

I want to filter the resulting RadGrid rows to divide it up into subsets, but no matter what I try for my FilterExpression, nothing works. After stepping through my code in debug mode, I noticed the RadGrid.Columns.Count = 0, even though I have results and columns with headers as I defined in my DataTable. I suspect this is why my FilterExpression is not working, though I also don't understand how it could have zero columns, yet the Columns are rendering just fine, headers and all. I was under the impression that by Binding my data, the RadGrid would automatically inherit the Columns and their names, but apparently not. How then can FilterExpression even work as it should?

Thoughts? Suggestions?
Matthew
Top achievements
Rank 1
 answered on 23 Jul 2012
2 answers
143 views

Pavlina
Telerik team
 answered on 23 Jul 2012
3 answers
149 views
I have implemented "combobox with grid-like multiple columns with headers"  as in http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx 

If I have Product and quantity as two headers in the combobox,can I sort the records on clicking the column headers product and quantity(as in RadGrid)? 


Cat Cheshire
Top achievements
Rank 1
 answered on 23 Jul 2012
3 answers
417 views
Hi,

I don't currenlty have paid support so am posting this here.  I would like to see a RadCheckBox control.  This would have tri-state support so that true, false and null could be bound to it.  There seems to be one in the treeview, but no stand-alone control.

Craig
Bozhidar
Telerik team
 answered on 23 Jul 2012
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?