Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hi,

I have a radgrid with populated data from a entity framework 4.0. I would like to click on a single row and then insert those values to a detailview with radtextboxes. How would I go about to do this. 
Radoslav
Telerik team
 answered on 25 Jan 2011
3 answers
72 views
We have integrated the Telerik RADEditor as standard editor on SharePoint 2007 for a client. While the overall functionality is good, we struggle with the W3C Validator. It is called like all Functionality as a callback, meaning that the actual request to the Validator is done by the server. From a security point of view that is a problem as the server should not be able to make calls to the internet. As we have Kerberos, one solution could be to have the call done with Impersonation. Is there a way to make sure that such things are executed impersonated?
Or what would be the alternatives in such a scenario?

Regards,
Eduard
Stanimir
Telerik team
 answered on 25 Jan 2011
4 answers
124 views
Hello,

I have somehow managed to run CSS ! but problem is, when the following function get fire ; it only change the first appointment CSS style and leave the rest. the same thing happen when i use rsCategory tag to assign to CSS class, as mentioned in example 2 below. Please advice where i am doing mistake or missing anything ...

Regards
Adnan.

1-

For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
            If resource.Type = "Room" Then
                Label1.Text += "<br/>" + resource.Text
                e.Appointment.CssClass = resource.Text.Replace(" ", "_")
            End If
        Next


2 -

For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
            If resource.Type = "Room" Then
         '        'e.Appointment.CssClass = resource.Text.Replace(" ", "_")

               If resource.Text = "SLC 107" Then
                   e.Appointment.CssClass = "rsCategoryRed"
               End If
             If resource.Text = "SLC 108" Then
                 e.Appointment.CssClass = "rsCategoryGreen"
               End If
            


        '    End If
        'Next
Veronica
Telerik team
 answered on 25 Jan 2011
1 answer
97 views
I have the following code and I always get invalid cast when going into insert.. how can I set in ititial value for a checkbox

<telerik:GridTemplateColumn HeaderText="Is Active" UniqueName="Is_Active">
   <EditItemTemplate>
       <asp:CheckBox id="cbIsActive" runat="server"  Checked='<%# Bind("Is_Active") %>' ></asp:CheckBox>
   </EditItemTemplate>
   <ItemStyle HorizontalAlign="Left" />
   <ItemTemplate> 
      <asp:Label ID="lbIsActive" runat="server" Text='<%# Eval("Is_Active", "{0}") %>' /> 
   </ItemTemplate> 
 </telerik:GridTemplateColumn>
 
 
and
  
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
   {
      if (e.CommandName == RadGrid.InitInsertCommandName)
      {
         e.Canceled = true;
         System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();
          newValues["Is_Active"] = false;
          e.Item.OwnerTableView.InsertItem();
      }
    }
Shinu
Top achievements
Rank 2
 answered on 25 Jan 2011
0 answers
106 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
111 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
328 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
76 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
248 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
59 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?