Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi,
Anyone help me to add menu splitter(divider, i.e a line between two menu items) in RadMenu. Is there any built in style to add this. This is urgent. Please help anyone

Thanks and Regards
Natraj
Paul
Telerik team
 answered on 08 Jul 2009
1 answer
181 views
We've got some Grids wired up to stored procedures, with it handling all CRUD operations.

What I'd like to do is set an intial filter in the Grid PreRender - but the only example I've seen utilizes a standard text query via the where clause.

Is this possible?
Georgi Krustev
Telerik team
 answered on 08 Jul 2009
1 answer
123 views
We have an application load balancing across three web servers. We have received reports that additions made to the custom dictionary is not always remembered.

My feeling is this may be due to the web cluster with each server in the farm holding it's own copy of the dictionaries. Is this likely?

If this premis is correct are there any recommended configuration settings to cater for installation on a web farm? 
Lini
Telerik team
 answered on 08 Jul 2009
1 answer
288 views
I have a grid control which I have enabled client-side binding using a web service as the datasource. 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">   
    <script type="text/javascript">  
        function RadGrid1_DataBinding(sender, args) {  
            // This event will be raised twice by default!   
            // The first call will retrieve data and the second call will retrieve total items count.  
            // If you want to cancel the event you can use:  
            // args.set_cancel(true);  
 
            // get data source location, method name and arguments  
            var dataSourceLocation = args.get_location();  
            var selectMethodName = args.get_methodName();  
            var methodArguments = args.get_methodArguments();  
 
            // set data source location and method name  
            // args.set_location("url to your data source");  
            // args.set_methodName("your method name");  
 
            // The grid will always pass by default four arguments for the SelectMethod.  
            // SelectCountMethod will be called with no arguments by default!  
 
            // get names for select parameters  
            var startRowIndexParameterName = sender.ClientSettings.DataBinding.StartRowIndexParameterName;  
            // default is "startRowIndex".   
 
            var maximumRowsParameterName = sender.ClientSettings.DataBinding.MaximumRowsParameterName;  
            // default is "maximumRows"  
 
            var sortParameterName = sender.ClientSettings.DataBinding.SortParameterName;  
            // default is "sortExpression"  
 
            var filterParameterName = sender.ClientSettings.DataBinding.FilterParameterName;  
            // default is "filterExpression"  
 
            // construct your own arguments  
            // var myMethodArguments = new Object();  
            // myMethodArguments.myArgumentName = "myArgumentValue";  
            // args.set_methodArguments(myMethodArguments);  
        }  
 
 
 
     function RowSelected(row, eventArgs) {  
        
         var grid = $find("<%=RadGridService.ClientID %>").get_masterTableView();  
         grid.rebind();  
      
 
     }   
 </script> 
</telerik:RadCodeBlock> 




<telerik:RadGrid ID="RadGrid1" AllowSorting="True" AllowPaging="True" 
            AutoGenerateColumns="False" runat="server" GridLines="None" Width="653px"   
            onneeddatasource="RadGrid1_NeedDataSource" > 
              
                <MasterTableView> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" DataType="System.Int32" /> 
                    <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName" /> 
                    <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName" /> 
                             </Columns> 
            </MasterTableView> 
            <PagerStyle AlwaysVisible="true" /> 
            <ClientSettings EnablePostBackOnRowClick="True" > 
              
              
                <ClientEvents OnDataBinding="RadGrid1_DataBinding" /> 
 
              
                <DataBinding Location="Services.asmx" 
                    SelectMethod="GetData" SelectCountMethod="GetCount" /> 
                <Selecting AllowRowSelect="True" /> 
              
              
                 <ClientEvents OnRowSelected = "RowSelected"/>  
 
              
            </ClientSettings> 
        </telerik:RadGrid> 

At the bottom of the form, I have a button to post the results of the client-side selection.  How can I retrieve the results of the client-side selection on the server postback?

I have attempted the following code, but text returns "&nbsp;".  If the Grid has no selection, the SectedItems count is 0 and if one item is selected the count is 1, but I am not sure how to retrieve the PrimaryKey or cell from the selected item.

 protected void Button1_Click(object sender, EventArgs e)     
        {     
           GridItemCollection selectedItems = RadGrid1.SelectedItems;     
           foreach (GridItem selectedItem in selectedItems)     
            {     
              string text = ((GridDataItem)selectedItem)["LastName"].Text;     
                                   
            }                  
        }     
 

Any ideas what I am missing?
Georgi Krustev
Telerik team
 answered on 08 Jul 2009
1 answer
336 views
Hi,

RadGrid and  Export to Excel, all columns are not exporting to Excel file, some columns are missing while exporting but it working fine in some other page Below is the code for Export to Excel.

        grid1.DataSource = ViewState("OrderHeader")
        grid1.DataBind()
        grid1.ExportSettings.FileName = "OrderSummary"
        grid1.ExportSettings.IgnorePaging = True
        grid1.ExportSettings.OpenInNewWindow = True
        grid1.HeaderStyle.Font.Bold = True
        grid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML
        grid1.ExportSettings.ExportOnlyData = True
        grid1.MasterTableView.ExportToExcel()

Any help would be appreciated. Please help me out.

Thanks
Durga
Computer Surgeon
Top achievements
Rank 1
 answered on 08 Jul 2009
3 answers
161 views
Hi im using special days to colour a set number of days in a radcalendar
while (startDate.Date <= endDate.Date)  
            {  
                RadCalendarDay specialDay = new RadCalendarDay();  
                specialDay.Date = startDate;  
                specialDay.ItemStyle.BackColor = Color.Green;  
                specialDay.ToolTip = "Available";  
                RadCalendar1.SpecialDays.Add(specialDay);  
                startDate = startDate.AddDays(1);  
            } 
what i would like to know is how do i get this to work if i change the number of days i would like to colour from say 7 to 3 as the full 7 days are still staying coloured when i rerun this in the method.
Kevin
Top achievements
Rank 1
 answered on 08 Jul 2009
1 answer
90 views
hi!
I've a problem with scrollbars. I don't know how to eliminate the horizontal scrollbar.
Here is my code. I hope someone can help me:
<telerik:RadComboBox ID="RCB_Test" runat="server" Width="250px" Height="400px" Skin="Web20" DropDownWidth="751px" HighlightTemplatedItems="true" OffsetX="-400" OffsetY="-300"  > 
    <HeaderTemplate> 
        <table cellspacing="0" cellpadding="0" style="width:731px;"
            <tr> 
                <td> 
                    <asp:Label ID="LB_HeaderTest" runat="server" Text="Test"></asp:Label> 
                </td> 
            </tr> 
        </table> 
    </HeaderTemplate> 
 
    <ItemTemplate> 
        <table cellspacing="0" cellpadding="0" style="width:731px;"
            <tr> 
                <td style="width:300px; padding-top:6px"
                    <asp:Image ID="IM_Test" runat="server"/> 
               </td> 
               <td style="text-align:left; width:401px;"
                    <asp:Label ID="LB_Test" runat="server" CssClass="text"></asp:Label> 
               </td> 
            </tr>
       </table>
   </ItemTemplate> 
</telerik:RadComboBox> 
Princy
Top achievements
Rank 2
 answered on 08 Jul 2009
6 answers
131 views
Hi
        I am using radgrid and having datetime picker as a one of columns filter control. I placed picker inside a table.
 The problem is i cannot control over DateTimePickers table properties. Because when i seen the view source of the browser, radgrid itself creates a separate TD with class for my filtering control, so that i could not do anything. when i change some of the properties of that css class through source html it works according to my plan.

Is there any way to avoid that Css file from my output. I dont even want to skin for my page. But i could know it creates in-built skin for my radgrid.

I found the following code from browser html source:

.RadGrid_Default .rgFilterRow td {WebResou...190256893 (line 528)
     border-bottom:1px solid #828282;
     padding-bottom:7px;
     padding-top:4px;
}

I dont want the above css properties for my grid. Plz help me

Appu

Appu
Top achievements
Rank 1
 answered on 08 Jul 2009
1 answer
139 views
Hi,
I have a combobox , aFileUpload and lots of other controls in a RadAjaxPanel. Combobox is a ajax trigger and it successfully works. But Inspite of other controls in same AjaxPanel, FileUpload Control loses its text (which I choosed using file dialog.) Removing the Upload outside of the ajaxpanel is not a solution for me. So I need to avoid the Response from Updating a spesific control. I think it could be possible with OnResponseReceived event. I would appreciate it a lot if you could tell me how can I achieve this.
Thanks in Advance
Kind Regards
Aytaç Utku TOPAL
Princy
Top achievements
Rank 2
 answered on 08 Jul 2009
1 answer
145 views
Hi
 Column resizing is not working properly – i would like the column to resize to the exact spot of the vertical line before mouse button release

I used Fixed width for all of my columns but when i try to resize any column it is not coming to the position where i dropped my mouse pointer.I remain in the posistion without changing. I used the following properties too for column resize.

<ClientSettings>
                    <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
                        ClipCellContentOnResize="true" EnableRealTimeResize="false" />
</ClientSettings>


I also used the above properties through dynamic code.But no use..

regards,
Appy

Daniel
Telerik team
 answered on 08 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?