Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
126 views
hello,
I have a grid which has a number of columns,
one of the columns is combobox,
I am getting Data from DB from 2 Tables:

1. a table that populates the combobox - display, code.
2. a table that populates the grid - fields+display.

my problem is that I Indeed get the comboboxes full, but the selected items are always blank .

i tried to change it to label instead of combobox and then i got it right,
but I want it to be combobox.

P. S. I want the combobox to be always avalable to change, without editmode.
Yoni
Top achievements
Rank 1
 answered on 01 May 2011
4 answers
193 views
I'm having a problem with the Editor.  First, it seems to be working just fine, except...

When I create a large block of text in the Editor and then save that text in a SQL Server table, wherever the text ended a line, there is no blank character at the end of the line.  I've attached a screen capture of the SQL server record and you can see (just above the red arrow) where there is no space between the word 'Homes' and the word 'Online', yet when I take this data out the record and display it on a web page, it displays just fine.

Here's my issue...after the editor contents are saved in the SQL database, I process the record searching for certain multi-word strings for some special editing issues involved in translation (without going into too much detail).  If I search this stored string for 'Homes Online Network' the instance shown in the attached graphic is never found -- but it displays just fine with a space between the two words.

Is there some method I can use when retrieving the text field from the SQL database table that will allow my multi-word text search to be successful?

This is probably some kind of stupid question, but I do need the help.  I've read the Editor documentation and searched the knowledgebase, but haven't found anything obvious that helps me.

Thanks in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 01 May 2011
2 answers
130 views
Hi:

I am launching a Window maximized, so I just added maximize() to the javascript as follows:

<!-- windows -->
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server"
            Height="600" Width="900" Title="Order Maintenance"
            KeepInScreenBounds="True" VisibleTitlebar="true" Modal="true"
            DestroyOnClose="False" ReloadOnShow="true"
            Behaviors="Close, Maximize, Move, Resize" InitialBehaviors="Maximize" />
    </Windows>
</telerik:RadWindowManager>
<!-- javascript -->
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
    <script type="text/javascript">
        //<![CDATA[
        function orderMaintenanceOpenWindow(ordNbr) {
            var winurl = "OrdersMaintenance.aspx?ordernbr=" + ordNbr;
            var oWnd = radopen(winurl, "orderMaintenanceWindow");
            oWnd.maximize();
            return false;
        }
        //]]>
    </script>
</telerik:RadScriptBlock>

Now, the second launch of the window is maximized, but the complete window is modal.  Can not close it, etc...
What am I missing?
Phil
P.S. Sorry the WindowManager is named ordersSelectionRadWindowManager and the window is named orderMaintenanceWindow.
Phil
Top achievements
Rank 2
 answered on 30 Apr 2011
2 answers
207 views
Hello,

I am using Telerik.Web.UI version 2010.2.826.35, and I have a grid with the column shown below. When I export to Excel, I would expect the formatting of the column to be "Short Date" or at least match the date format string that I've defined. However, the cells in Excel show a formatting of "Custom" with the formatting string of "m/d/yyy h:mm". 

This is not the desired behavior since we have clients all over the world and the 'slash' divider means something different in different parts of the world. Instead, we would like it formatted as a Date cell and then it would pick up the local formatting of that user.

<telerik:GridDateTimeColumn
DataField="trans_dt"
HeaderText="Purchase Date"
SortExpression="trans_dt"
UniqueName="PurchaseDate"
CurrentFilterFunction="StartsWith"
AutoPostBackOnFilter="true"
Display="true"
DataFormatString="{0:dd-MMM-yyyy}">
<HeaderStyle Width="130px" />
</telerik:GridDateTimeColumn>


Please let me know if anything can be done.

Thank you,

Scott McNeany
Scott McNeany
Top achievements
Rank 1
 answered on 30 Apr 2011
0 answers
57 views
hi
i use usercontrol in radgrid
i want when page refresh after than radgrid 'data refresh
but i dont want usercontrol'data refresh
do u have any idea?
thanks
niloofar
Top achievements
Rank 1
 asked on 30 Apr 2011
1 answer
103 views

I am using programmatic sorting on my radgrid that has both master and detail data. My sorting works fine for the master table and I am getting my child data via this event:

Private Sub RadGrid1_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind
    Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    Select Case e.DetailTableView.Name
        Case "Orders"
            Dim CustomerID As String = dataItem.GetDataKeyValue("CustomerID").ToString()
            e.DetailTableView.DataSource = GetDataTable("SELECT * FROM Orders WHERE CustomerID = '" & CustomerID & "'")
        Case "OrderDetails"
            Dim OrderID As String = dataItem.GetDataKeyValue("OrderID").ToString()
            e.DetailTableView.DataSource = GetDataTable("SELECT * FROM [Order Details] WHERE OrderID = " & OrderID)
    End Select
End Sub


What I can not figure out is how to sort my detail table.  In the 
 

 

 

Protected Sub RadGrid1_SortCommand1(sender As Object, e As Telerik.Web.UI.GridSortCommandEventArgs) Handles  RadGrid1.SortCommand

 

 

event I use    e.Item.OwnerTableView.DataSource = m_dtSort and e.Item.OwnerTableView.Rebind() to rebind my MasterTable.  How do I sort my detail data and rebind?

Thanks

John

Princy
Top achievements
Rank 2
 answered on 30 Apr 2011
0 answers
274 views
Hi,
 i am D. Srinivas Rao.
in my aspx page i have a JavaScript function for calling a server side event when click on the Check box. The following is the code for Java Script Function.

<telerik:RadCodeBlock runat="server">

        <script language="javascript" type="text/javascript">

            function GetMessage(sender, args) {

                PageMethods.CompletedCheck();
alert("Hii");

               }

           </script>

         <telerik:RadScriptManager id="RadScriptManager" runat="server"

    EnablePageMethods="True">

</telerik:RadScriptManager>

        </telerik:RadCodeBlock>

and this function called in CheckBox checked event.. the Following is the Code for CheckBox Control

<telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">

                        <ItemTemplate>

                            <asp:Panel ID="Panel1" runat="server" Width="2px">

                             <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />

                            </asp:Panel>

                        </ItemTemplate>

</telerik:GridTemplateColumn>

and my Code Behind is

<System.Web.Services.WebMethod()> _

    Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)

       //code here

         End Sub

in the above grid template check-box control will fire the JavaScript  function GetMessage() Well, but it doesn't execute the Code Behind Event.

Please Help me how to execute the Code Behind Method  using JavaScript Function..

Thank You
D.Srinivasa Rao


D.SRINIVASA
Top achievements
Rank 2
 asked on 30 Apr 2011
1 answer
168 views
Is there a way for me to set DefaultInsertValue of a column either with server-side or javascript?  I want to put a variable into this property.

Princy
Top achievements
Rank 2
 answered on 30 Apr 2011
0 answers
72 views
Data will be saved only if there is which radtab is changed that controls should be saved .
it's possible in radTabStrip

Problem resolved

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 30 Apr 2011
3 answers
320 views

 

 


I am trying to set conditional RadComboBoxItem visibility using javascript: RadComboBoxItem.hide().  It will work fine without Filter="Contains" enabled on the ComboBox, but when this is turned on, the ComboBox shows the hidden items the second time it is opened.  Is there any way around this.

Thanks,
Thomas

aspx:

 

<telerik:RadComboBox runat="server" ID="rcbTest" Filter="Contains" > 
    <Items> 
        <telerik:RadComboBoxItem Text="Test1" /> 
        <telerik:RadComboBoxItem Text="Test2" /> 
        <telerik:RadComboBoxItem Text="Test3" /> 
        <telerik:RadComboBoxItem Text="Test4" /> 
    </Items> 
</telerik:RadComboBox> 
<asp:CheckBox ID="cbxTest" runat="server" onclick="Test(this);" /> 

javascript:

 
    function Test(cbx) {  
        var rcb = $find('<%=rcbTest.ClientID %>');  
        var items = rcb.get_items();  
        for (var i = 0; i < items.get_count(); i++) {  
            if (i != 2) {  
                if(cbx.checked)  
                    items.getItem(i).hide();  
                else  
                    items.getItem(i).show();  
            }  
                  
        }  
    } 

 

Jesus
Top achievements
Rank 1
 answered on 29 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?