Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
63 views
Hello again,

Think of a horizontally split canvas. On the upper and narrow section, I have a sliding zone whose clickToOpen value is set to be true. All I want to do is just dock the sliding pane immediately and automatically once it is fully visible (opened).

Is this possible?

Thanks in advance ;)
NMA
Top achievements
Rank 1
 answered on 17 Feb 2009
1 answer
105 views
I don't want to show the number in the charts (above each bar in the bar graph).  I've done it before, but can't figure out how to do it now.  Thank you for any help.

-Jamie
Ves
Telerik team
 answered on 17 Feb 2009
1 answer
121 views
Hi,

The documentation for the radpromt, radalert and radconfirm methods are somewhat sparse. I cant find anything in the locally installed help, and the examples only shows _some_ use of the dialogs. The only place I've found something is in the "Working with the Prompt Dialog" online help page at http://www.telerik.com/help/aspnet-ajax/window_dialogsprompt.html - which provides a radpromt signature:

radprompt(text, callBackFn, oWidth, oHeight, callerObj, oTitle, defaultValue)

- but doesn't explain much about the parameters. I can figure it out, but a short table in the webpage would be nice - and especially in the local help file.

The problem arises with the callback function, which according to the web page is described as: 
"The callback function has two parameters: The first is a boolean that indicates whether the user entered "Ok", and the second is the value that the user entered. "

- the example continues showing a callback method with only one parameter, which I think is the correct, as the only parameter is null when the user clicks cancel and blank or "the entered value" when the user clicks ok. Is this correct, and could you please update the documentation at some point :o) Especially the locally installed help file.

/Jan
Georgi Tunev
Telerik team
 answered on 17 Feb 2009
1 answer
174 views
Hello,

We are using a telerik CustomDropDownList with the ability to type into the control.
We want to add a filer for unwanted characteres and we see that when trying to catch the key from the press on the keaboard in javascript (using property OnClientKeyPressing), it is not the same ascii code as in a text box for example.
Do the ddl translates differently the ascii codes?

Please help.

Thanks,
Inbal
Princy
Top achievements
Rank 2
 answered on 17 Feb 2009
1 answer
101 views
Hello,
I went through one problem,For understanding problem clearly refer this link first. 
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/pagertemplate/defaultcs.aspx

  Actually I was reffering C# code for given demo Where in RadGrid1_ItemCreated Command I was using the same code
as it is given in above link but there used one method GetNumericPager which I am not able to get because
it's not available in GridPagerItem 's method,Otherwise I have used same .aspx coding for paging.Because of not able to use this method I am not able to perform paging functionality properly.
 Plz let me know how I'll get method GetNumericPager ,Shall I need to add any dll.
 
 I hope I'll get my solution soon.

Thanks
Princy
Top achievements
Rank 2
 answered on 17 Feb 2009
1 answer
149 views
I would like to retrieve the Text property of the textbox on postback but I am unable to find a way to do so.

I created a template column with a textbox in the FooterTemplate. Let's say it has an id of "txtInputInFooter".
I have tried to handle the ItemCommand event and using the following code:
Dim text As String = DirectCast(e.Item.FindControl("txtInputInFooter"), TextBox).Text
--OR--
Dim text As String = DirectCast(Me.radGrid.MasterTableView.GetItems(GridItemType.Footer)(0), GridFooterItem)("InputInFooter").Text

I get a blank value every time.

This seems like it should be a no brainer, is there something I am doing wrong?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2009
1 answer
106 views
Hello,
I am trying to run demo example give on demos section for grid.
But I am getting Error:"incorrect syntax near ?"
I tried for all DML.Same Error.
Thanks in advance.
Here is my aspx:--

<telerik:RadGrid ID="RadGrid2" Skin="Hay" runat="server" CssClass="RadGrid" GridLines="None"
            AllowPaging="True" PageSize="20" AllowSorting="True" Width="99%" AutoGenerateColumns="False"
            ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" DataSourceID="SessionDataSource2" HorizontalAlign="NotSet"
            AllowMultiRowEdit="<%# CheckBox2.Checked %>">
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <MasterTableView CommandItemDisplay="TopAndBottom" GridLines="None" DataSourceID="SessionDataSource2"
                DataKeyNames="EmployeeID" EditMode="PopUp">
                <Columns>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn UniqueName="TitleOfCourtesy" HeaderText="TOC" DataField="TitleOfCourtesy">
                        <HeaderStyle Width="60px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="FirstName" HeaderText="FirstName" DataField="FirstName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="LastName" HeaderText="LastName" DataField="LastName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="City" HeaderText="City" DataField="City">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Title" HeaderText="Title" DataField="Title">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="column">
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings EditFormType="Template">
                    <FormStyle BackColor="#ECFED8" />
                    <FormTemplate>
                        <table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0">
                            <tr>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    FirstName:</td>
                                <td>
                                    <asp:TextBox ID="TextBox10" Text='<%# Bind( "FirstName") %>' runat="server">
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Last Name:</td>
                                <td>
                                    <asp:TextBox ID="TextBox11" Text='<%# Bind( "LastName") %>' runat="server">
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Title:</td>
                                <td>
                                    <asp:TextBox ID="TextBox12" Text='<%# Bind( "Title") %>' runat="server">
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Country:</td>
                                <td>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind( "Country" ) %>'>
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    City:</td>
                                <td>
                                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind( "City") %>'>
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Region:</td>
                                <td>
                                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind( "Region") %>'>
                                    </asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Title Of Courtesy</td>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%# Bind("TitleOfCourtesy") %>'
                                        DataSource='<%# (new string[] { "Dr.", "Mr.", "Mrs.", "Ms." }) %>' AppendDataBoundItems="True"
                                        Style="z-index: 1;">
                                        <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>
                                    </asp:DropDownList></td>
                            </tr>
                        </table>
                        <table style="width: 100%">
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                    </asp:Button>&nbsp;
                                    <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                    </asp:Button>
                                </td>
                            </tr>
                        </table>
                    </FormTemplate>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SessionDataSource2" runat="server"
            ConnectionString="<%$ ConnectionStrings:TESTConnectionString %>" ProviderName="System.Data.SqlClient"
            DeleteCommand="DELETE FROM [Employees] WHERE [EmployeeID] = ?" InsertCommand="INSERT INTO [Employees] ([EmployeeID], [LastName], [FirstName], [Title], [TitleOfCourtesy], [City], [Region], [Country]) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
            OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [EmployeeID], [LastName], [FirstName], [Title], [TitleOfCourtesy], [City], [Region], [Country] FROM [Employees]"
            UpdateCommand="UPDATE [Employees] SET [LastName] = ?, [FirstName] = ?, [Title] = ?, [TitleOfCourtesy] = ?, [City] = ?, [Region] = ?, [Country] = ? WHERE [EmployeeID] = ? ">
            <UpdateParameters>
                <asp:Parameter Name="LastName" Type="String" />
                <asp:Parameter Name="FirstName" Type="String" />
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="TitleOfCourtesy" Type="String" />
                <asp:Parameter Name="City" Type="String" />
                <asp:Parameter Name="Region" Type="String" />
                <asp:Parameter Name="Country" Type="String" />
                <asp:Parameter Name="original_EmployeeID" Type="Int32" />
            </UpdateParameters>
            <DeleteParameters>
                <asp:Parameter Name="original_EmployeeID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="EmployeeID" Type="Int32" />
                <asp:Parameter Name="LastName" Type="String" />
                <asp:Parameter Name="FirstName" Type="String" />
                <asp:Parameter Name="Title" Type="String" />
                <asp:Parameter Name="TitleOfCourtesy" Type="String" />
                <asp:Parameter Name="City" Type="String" />
                <asp:Parameter Name="Region" Type="String" />
                <asp:Parameter Name="Country" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
        <!-- content end -->
    </form>
</body>
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2009
3 answers
67 views
I'm using the Hay skin on a RadGrid.  When I click Edit on one of the rows, for each column that does not have a value, it appears that something is covering up the top and bottom borders for the row being edited.  This does not happen in firefox, just IE7.  I have played around with the CSS for .GridEditRow_Hay, adjusted the padding and such, but nothing fixes it.  Any suggestions?
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2009
1 answer
54 views
Hi all,

Is there a feature of RadGrid which I can get a right click menu for a raw displayed in a RadGrid control?

Thanks,
Sudesh

Shinu
Top achievements
Rank 2
 answered on 17 Feb 2009
4 answers
143 views
Hi! I'm using a radWindow and inside this I have a RadGrid, but when I click in the navigation bar to change the page, the radwindow does nothing or just send me to a browser error page.
Can you please help me?? This is kind of urgent and I don't know if I miss a thing here.

So, thanks.

Liza
Top achievements
Rank 1
 answered on 16 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?