Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
109 views
Dear Admin ,
i'm using RadCoboBox with objectDatasource by setting the DataSourceID by the objectdatasource ID , the object datasource returned DataTable .

when her tying to render this control in the design mode it gives that error .

Note:its worked fine in the run mode 

Please Give me you assist
my work in the page too slow 

regards 
Ab Abulubbad

<tel:RadComboBox ID="ddlQuarter" Runat="server" A="" AllowCustomText="false"
                  AppendDataBoundItems="true" AutoPostBack="True"  DataSourceID="odsQuarter" DataTextField="LookupDetalDeepName" 
                  DataValueField="LookupDetailsDeep_ID"
                  HighlightTemplatedItems="true" MarkFirstMatch="true" Skin="Web20">
                  <Items>
                      <tel:RadComboBoxItem Text="------Please Choose-----" Value="0" />
                  </Items>
              </tel:RadComboBox>
              <asp:ObjectDataSource ID="odsQuarter" runat="server"
                  SelectMethod="GetLockupDetails"
                  TypeName="GWERP.DataAccess.Lockups.GeneralLookupDeep">
                  <SelectParameters>
                      <asp:ControlParameter ControlID="ddlCity" Name="LockupMaster_ID"
                          PropertyName="SelectedValue" Type="Int32" />
                      <asp:Parameter DefaultValue="ar" Name="Lang" Type="String" />
                  </SelectParameters>
              </asp:ObjectDataSource>
ibraheem
Top achievements
Rank 1
 asked on 25 Jan 2011
4 answers
117 views
Hi,

I'm working on a page where i had used filter control (Telerik.Web.UI_2010_3_1215).
I'm saving state of filter control in database for later retrieval.
However, when I upgraded to the latest Telerik DLL (Telerik.Web.UI_2010_3_1317), state failed to load.
I've used following methods to save & load filter state -
           public string SaveExpression(object state)
        {
            ObjectStateFormatter formatter = new ObjectStateFormatter();
            return formatter.Serialize(state);
        }
 
        public object LoadExpression(string savedState)
        {
            ObjectStateFormatter formatter = new ObjectStateFormatter();
            return formatter.Deserialize(savedState);
        }


So, I wish to know if the state is dll version specific.
Concern here is, if we move to a higher Telerik version in future, we'll no longer be able to retrieve filter state.
Please advice.
Shelly Kalra
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
343 views

Hello Experts,

I have nested radgrid using  detail tables.

I have check boxes in one of my nested grid as shown in my html code below.

when user selects checkbox and expands , i want the column header on the expanded grid to show different text.

for e.g -

if they select Inv checkbox and expand, i want InvoiceNo and Invoice Date as my column header.

if they select Rcpt checkbox and expand, i want ReceiptNo and Receipt Date as my column header.

any idea?

-------------------------

here is my html code:

<telerik:RadGrid ID="grdGetMatchMiniSetList" AllowMultiRowSelection="false" AllowMultiRowEdit="false"
                    runat="server" AllowSorting="True" AllowPaging="false" GridLines="Both" 
                    HierarchyLoadMode="client"  Width="900">
                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="MiniSetID" >
                       
                        <AlternatingItemStyle BackColor="Gainsboro" />
                        <NoRecordsTemplate>no records retrieved</NoRecordsTemplate>
                        <ItemStyle Wrap="True" />
       
                        <Columns>
                       
                            <telerik:GridButtonColumn ConfirmText="Delete this record?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete"
                                ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ImageUrl="~/Images/Delete.gif" HeaderText="">
                                <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridButtonColumn>                                    
                            <telerik:GridBoundColumn DataField="MiniSetID" HeaderText="Mini Set" UniqueName="MiniSetID" HeaderStyle-Wrap="true" ReadOnly="True">
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="InvoiceQty" HeaderText="Invoice Qty" UniqueName="InvoiceQty" HeaderStyle-Wrap="true" >
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="ReceiptQty" HeaderText="Rcpt Qty" UniqueName="ReceiptQty" HeaderStyle-Wrap="true" ReadOnly="True">                                 
                                <HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn> 
                             <telerik:GridBoundColumn DataField="QtyDifference" HeaderText="Qty Difference" UniqueName="QtyDifference" HeaderStyle-Wrap="true" ReadOnly="True">
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>                                                                    
                             <telerik:GridBoundColumn DataField="InvoiceCost" HeaderText="Invoice Cost" UniqueName="InvoiceCost" HeaderStyle-Wrap="true" ReadOnly="True">
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>                            
                            <telerik:GridBoundColumn DataField="ReceiptCost" HeaderText="ReceiptCost" UniqueName="ReceiptCost" HeaderStyle-Wrap="true" ReadOnly="True">
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>                            
                            <telerik:GridBoundColumn DataField="CostDifference" HeaderText="Cost Difference" UniqueName="CostDifference" HeaderStyle-Wrap="true" ReadOnly="True">
                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                <ItemStyle HorizontalAlign="Right" />
                            </telerik:GridBoundColumn>                                                                 
                    </Columns> 

                    <DetailTables>
                           
                       <telerik:GridTableView Name="grdStyleDetails" AutoGenerateColumns="false" DataKeyNames="StyleNum">
                                <Columns>
                                 
                                    <telerik:GridTemplateColumn HeaderText="Rcpt" UniqueName="SelectRcpt">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkRcpt" runat="server" Checked="false" 
                                                />
                                        </ItemTemplate>
                                         <HeaderStyle Width="20px" Font-Bold="True" />
                                        <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>
                                   
                                    <telerik:GridTemplateColumn HeaderText="Inv" UniqueName="SelectInv">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkInv" runat="server" Checked="false"
                                                 />
                                        </ItemTemplate>
                                         <HeaderStyle Width="20px" Font-Bold="True" />
                                        <ItemStyle Width="20px" HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>
                                                                   
                                 <telerik:GridBoundColumn DataField="StyleNum" HeaderText="Style" UniqueName="StyleNum"
                                     HeaderStyle-Wrap="true" >
                                        <HeaderStyle Width="120px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                               
                                 <telerik:GridBoundColumn DataField="InvQty" HeaderText="Inv Qty" UniqueName="InvQty"
                                     HeaderStyle-Wrap="true" ReadOnly="True">
                                        <HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn> 
                               
                                 <telerik:GridBoundColumn DataField="RcptQty" HeaderText="Rcpt Qty" UniqueName="RcptQty"
                                     HeaderStyle-Wrap="true" ReadOnly="True">
                                        <HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>

                                 <telerik:GridBoundColumn DataField="QtyDiff" HeaderText="Qty Diff" UniqueName="QtyDiff"
                                     HeaderStyle-Wrap="true" ReadOnly="True">
                                        <HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                                                                               
                                 <telerik:GridBoundColumn DataField="InvCost" HeaderText="Inv Cost" UniqueName="InvCost"
                                     HeaderStyle-Wrap="true" >
                                        <HeaderStyle Width="80px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn> 
                                                    
                                 <telerik:GridBoundColumn DataField="RcptCost" HeaderText="Rcpt Cost" UniqueName="RcptCost"
                                     HeaderStyle-Wrap="true" ReadOnly="True">
                                        <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>

                                 <telerik:GridBoundColumn DataField="CostDiff" HeaderText="Cost Diff" UniqueName="CostDiff"
                                     HeaderStyle-Wrap="true" ReadOnly="True">
                                        <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                        <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>                                    
                                </Columns>
                               
                                <DetailTables>
                                    <telerik:GridTableView Name="grdReceiptInvoice" AutoGenerateColumns="false">
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="RcptInvNo" HeaderText="Rcpt/Inv No" UniqueName="RcptInvNo"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="RcptInvDate" HeaderText="Rcpt/Inv Date" UniqueName="RcptInvDate"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Store" HeaderText="Store" UniqueName="Store"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Qty" HeaderText="Qty" UniqueName="Qty"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="UnitCost" HeaderText="Unit Cost" UniqueName="UnitCost"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ExtendedCost" HeaderText="Extended Cost" UniqueName="ExtendedCost"
                                             HeaderStyle-Wrap="true" ReadOnly="True">
                                                <HeaderStyle Width="110px" HorizontalAlign="Center" Font-Bold="True" />
                                                <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="RcptInvNoText" HeaderText="" UniqueName="RcptInvNoText" Display="False" /> 
                                        <telerik:GridBoundColumn DataField="RcptInvDateText" HeaderText="" UniqueName="RcptInvDateText" Display="False" /> 
                                    </Columns>   
                                    </telerik:GridTableView>
                                </DetailTables>
                               
                            </telerik:GridTableView>
                           
                    </DetailTables>
                               </MasterTableView>
                    <ClientSettings EnableRowHoverStyle="true">
                        <Selecting AllowRowSelect="True" />
                        <Scrolling ScrollHeight="300px" />
                        <Resizing></Resizing>
                        <ClientEvents OnRowClick="OnMatchRowSelectedChanged" />
                    </ClientSettings>
                </telerik:RadGrid>

 

Princy
Top achievements
Rank 2
 answered on 25 Jan 2011
4 answers
78 views
Hello,

I use a RadGrid with Radfilter.
Until the user, I change the Thread.CurrentThread.CurrentCulture of my web page, Culture of my Radgrid and Culture of my Radfilter.
The DataFormatString="{0:d}" for all my date columns.

When the culture is 'fr-FR',  date = dd/MM/yyyy and no problem
When the culture is 'en-US', date = MM/dd/yyyy and no problem

but when the culture is 'en-GB', date = dd/MM/yyyy but if I make a filter with RadFilter on date, there is a problem :
Example : filter = 07 jan 2011
result = 01 july 2011
No problem with filter in the RadGrid 

Can you help me, please
Anne
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
250 views
Hi,

I had requirement that i have to use Radtab inside the RadGrid. That is when i click Add or Edit in RadGrid a Radtab should be displayed with 4 or 5 tabs and each tab will have user privilages that one user will have rights to use first tab and other user will have rights to use second tab respectively. I need to know whether it is possible. If possible then i need some samples on it.

Thanks & Regards
Kannan.S
Shinu
Top achievements
Rank 2
 answered on 25 Jan 2011
1 answer
62 views
The following listbox is NOT allowing multiple selection:

<table align="center">
    <tr>
        <td align="center">
            <div style="text-align:left">
                <telerik:RadListBox ID="RadListBoxDivisions" runat="server" DataSourceID="ObjectDataSourceDivisions" DataValueField="DIV_NUM"
                    DataTextField="NUMBER_AND_NAME" Height="150px" SelectionMode="Multiple" Width="300px">
                </telerik:RadListBox>
            </div>
        </td>
    </tr>
</table>


While the EXACT same code DOES allow multiple selections on a different page. This is inside a user control on a page that inherits a master page. What could possibly cause the "SelectionMode=Multiple" to be ignored?

Thanks!
Yana
Telerik team
 answered on 25 Jan 2011
1 answer
67 views
My custom parser works like a charm but now I need to know how to set the style of DateInputBox to valid.

I override the dateParser function like this.

Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, baseDate) {
  
//Some logic here
//
//
  
//Set new date
sender.set_textBoxValue(NewDate.format(sender._displayDateFormat));
//Need to set box to valid state
  
}

Anyone with a fast answer to this ...
//Henrik
Henrik
Top achievements
Rank 1
 answered on 25 Jan 2011
1 answer
225 views
Hi,

I have a rad window & I am trying to open this window in a specified position. Can you help me with some example how can I open a rad window with some specific left & top position.

Here is my code -

 

 

var wnd = window.radopen("OpenWin.aspx", "window1");

 

wnd.setSize(780, 480);

 

wnd.SetTitle("title");

Thanks

 

Shinu
Top achievements
Rank 2
 answered on 25 Jan 2011
1 answer
61 views
I have a pie chart that displays everything that I want it to, however I can not get the label to show BOTH the number from the column, and the percentage of the chart.

This shows the number correctly:
Protected Sub RadChart1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart1.ItemDataBound
 
        e.SeriesItem.Label.TextBlock.Text = TryCast(DirectCast(e.DataItem, DataRowView)("number"), String)
 
    End Sub

This shows the percentage correctly:
e.SeriesItem.Label.TextBlock.Text = " - #%"

But this does NOT show both, it only shows the percentages still...
e.SeriesItem.Label.TextBlock.Text = TryCast(DirectCast(e.DataItem, DataRowView)("number"), String) + " - #%"

Is there a way to display both?
Evgenia
Telerik team
 answered on 25 Jan 2011
2 answers
68 views
Telerik Control Build: v4.0.30319
OS: Windows Server 2008
VS: 2010

The following code will not work in MasterPage, Regular Webform, nor ContentPage code:

            
<script type="text/javascript">
    //<!CDATA[
    function OpenSignInWindow() {
        var oWnd = $find("<%=rwmXYSignInControl.ClientID %>");
        oWnd.show();
    }
    //]]>
</script>

<span class="xyRegisterSpan"  id="xySignInSpan" runat="server">Register</span><br><span class="xySignInSpan" onclick="OpenSignInWindow()">&nbsp;|&nbsp;Sign-In<br></span>

<telerik:RadWindowManager ID="rwmXYSignInControl" runat="server"
    VisibleOnPageLoad="false" Skin="Black">
    <Windows>
        <telerik:RadWindow ID="xySignIn" runat="server" Height="300px" Width="450px" Modal="true">
            <ContentTemplate>
                 <div id="xySignInContent" runat="server">
                     <asp:Label ID="xySignInUsername" runat="server" Text="Username" ForeColor="Aqua"></asp:Label><telerik:RadTextBox
                      ID="xyUsername" runat="server" Skin="Black" >
                     </telerik:RadTextBox>
                    
                     <asp:Label ID="xySignInPassword" runat="server" Text="Password"></asp:Label><telerik:RadTextBox
                      ID="xyPassword" runat="server" Skin="Black">
                     </telerik:RadTextBox>
                 </div>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Kevon Hayes
Top achievements
Rank 1
 answered on 25 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?