Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
When clicking through my images with the next/previous buttons it does not keep the selected item visible in the thumbnails. I am not sure when this changed as it used to. Is there something simple I am missing? http://23.254.144.244/Style-Finish/FinishSelection
Maria Ilieva
Telerik team
 answered on 10 Mar 2015
8 answers
237 views
I am working on an Asp .net project and i Am using RadSplitter to split me website. I want to remove the borders from the splitter. Here is my asp code below, i remove the borders but they are still appear.. Can anyone help me pleasE? 

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="webbetv1.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <html runat="server">
    <head >
    <style type="text/css">
 
    .RadSplitter .pane, 
.RadSplitter .paneHorizontal
{
    border: 0px  !important;
    padding: 0px !important;
}
        .style1
        {
            width: 100%;
            margin-bottom: 33px;
        }
    </style>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    </head>
     <form id="Form1" runat="server">
    <body>
 
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div  style="height:800px; width: auto;">
        <telerik:RadSplitter ID="MainSplitter" runat="server" Width="100%" Height="100%" ExpandMode="FullExpandItem"
            Orientation="Horizontal" LiveResize="false" BorderSize="0" BorderWidth="0px"  BorderStyle="None" CssClass="pane"   >
            <telerik:RadPane ID="TopPane" runat="server" Height="120" MinHeight="85" MaxHeight="150" BorderWidth="0px"  
                Scrolling="none" CssClass="pane" >
                <asp:PlaceHolder ID="PlaceHolder3" runat="server"></asp:PlaceHolder>
 
                <table class="style1">
                    <tr>
                        <td>
                             </td>
                        <td>
                             </td>
                    </tr>
                    <tr>
                        <td>
                            sadasd</td>
                        <td>
                             </td>
                    </tr>
                </table>
 
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" Height="100%" BorderWidth="0px" BorderStyle="None" />
            </telerik:RadSplitter>
            </div>
             </body>
            </form>
 
            </html>
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Mar 2015
4 answers
201 views
Hi,
I'm looking at the sample that embeds a RadGrid in a RadComboBox (http://www.telerik.com/help/aspnet-ajax/grid-in-combobox.html) and I see that you can add the RadGrid to the RadComboBox declaratively in the aspx:
<!-- edited from sample, aspx simplifies to this:  -->
<telerik:RadComboBox ID="RadComboBox1" runat="server" >
  <ItemTemplate>
    <telerik:RadGrid ID="RadGrid1" runat="server">
...
    </telerik:RadGrid>
  </ItemTemplate>
</telerik:RadComboBox>

I need to be able to do this in the code behind and I can't figure out how to set the ItemTemplate to a RadGrid properly given it must be an ITemplate:

protected void Page_Init(object sender, EventArgs e)
{
    //create basic grid
    RadGrid grid = new RadGrid();
    grid.ID = "RadGrid1";
    grid.NeedDataSource += RadGrid1_NeedDataSource;
    grid.AllowSorting = true;
    grid.MasterTableView.AutoGenerateColumns = true;
 
    //try mimic aspx page implementation... not possible because of Type mismatch
    RadComboBox1.ItemTemplate = grid;
}


Is it possible to do this in the code behind?

Thanks,
Ken
Kenneth
Top achievements
Rank 1
 answered on 10 Mar 2015
0 answers
52 views
Hi 
I have a field in my grid named "Entry Fee" . i show the value in RadFilter for this column by a drop_down_list . But when i select filter expression "Between" then it doses not work because it does not show two dropdown . if i use text field then it show two text filed and works well ... but i want to use the drop down so that i can get the value from database table. is there is any way to do it. if so please help me and sent me a demo or a small project 
thank you 
Mostafa
Top achievements
Rank 1
 asked on 10 Mar 2015
5 answers
653 views
Hi,
I am adding RadAutoCompleteBox dynamically to my page.
The autocompleteboxes are using a PageMethod to get the results for the dropdown.
Each autocompletebox is related to a different type, but I cannot implement a search function for each type because these are dynamic too.
I know the Type-autocompletebox relation, but I cannot differentiate them in the PageMethod.
Is there a way to pass a parameter to the PageMethod through the WebServiceSettings of the AutoCompleteBox ?

I tried to use the OnClientDropDownOpening client event, but it is fired after the search completed, so it is too late already.
sun
Top achievements
Rank 1
 answered on 10 Mar 2015
13 answers
1.0K+ views

I am attempting to create a web service using the signature found in your example:

[ScriptService]
public class WebServiceName : WebService
{
[WebMethod]
public RadComboBoxItemData[] WebServiceMethodName(object context)
{
// We cannot use a dictionary as a parameter, because it is only supported by script services.
// The context object should be cast to a dictionary at runtime.
IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

//...
}
}

As I understand it, the web service must return a RadComboBoxItemData array. However, when creating a web service using the above signature, I get an error saying the RadComboBoxItemData implements IDictionary and therefore can not be serialized. I'm sure I'm doing something wrong - but can't figure it out. 

I even took your sample code and compiled and got the same error!

Regards,

Ken

sun
Top achievements
Rank 1
 answered on 10 Mar 2015
1 answer
51 views
Hi,

I've been using hierarchical grids for years and also your window edit for grids (http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx) for years without any problems but when I try to use the window edit technique from your above demo on a hierarchical grid I get the following error when I try to expand a child table:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

Is it possible to do what I'm trying to do with the demo technique or do I have to do it differently?

Thanks,

Craig
Konstantin Dikov
Telerik team
 answered on 10 Mar 2015
2 answers
151 views
Hi All,

OK I've now done a fair bit of stuff with batch editing but have only just tried to work on it with a combo box while doing the saving myself.

I want to send the values to the server for bulk processing after the user has finished admin.  To that end after each row change I am parsing all the rows and adding the changed value to a comma delimited hidden field.  I wish there was a way to access all the changes fror all rows on teh server but until that day I need to do this fairly awful work around.

The problem that I have is that text fields are fine BUT when I am trying to work out the selected value of a combo box I draw a blank.  Sample code below.

-- The javascript
 
uxRadGrid_MasterTable_row.get_cell("ContactId").innerText
 
-- the column def
 
<telerik:GridTemplateColumn DataField="ContactId" HeaderText="Contact" UniqueName="ContactId" >
<ItemTemplate><%# Eval("Name")%></ItemTemplate>
<EditItemTemplate>
<span>
<telerik:RadComboBox ID="uxContactId" Runat="server"  .....></telerik:RadComboBox>
</span>
</EditItemTemplate>
</telerik:GridTemplateColumn>

I have tried all kinds of things but just cannot access the ID field.  Accessing the selected text is easy but not the id..

Any suggestions?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 10 Mar 2015
1 answer
90 views
I am new to using the RadComboBox and using it as a trial basis to see if it fits what we need.

I have RadComboBox set up to use checkboxes, have Check All enabled, and being databound to a dataset.

This is set in an ASP.Net page with VB.Net as the code-behind.

So I have a few questions.

Is there an easy way to programmatically check all items in the combobox after being databound without using a for loop?

What is an easy way to get all the items that have been check marked by the user?

Sincerely,
Keith Jackson
Ivan Danchev
Telerik team
 answered on 10 Mar 2015
4 answers
122 views
Hi,

I would like to disable or handle the JS error popups somehow on the scheduler specially working with the webservice binding approach. 
I am receiving such as; "clone error: No target element specified"

Yes, my scheduler may be missing some data, however, I cannot determine the causes right away.

thank you
Plamen
Telerik team
 answered on 10 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?