Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views
Hi,
when i click on rad combo box it is not working meand it is not fill data in Combo box  it give the error: "RadComboBox:Server error in the itemRequested event handler" . I am using Asp.net 3.5 with Linq to sql .

Code Below:

<rad:RadComboBox Width="300px" Height="80px" ID="RadComboBox1" runat="server"
                                HighlightTemplatedItems="True" DataTextField="Title" TabIndex="1" ItemRequestTimeout="2" EnableLoadOnDemand="true"
                                DataValueField="ServiceRequermentID" MarkFirstMatch="True" ExpandEffect="Blinds" OnItemsRequested="RadComboBox1_ItemsRequested"
                                SkinsPath="~/RadControls/ComboBox/Skins" LoadingMessage="Your ServiceRequerment is Loading..."
                                AccessKey="T" AllowCustomText="True" AutoCompleteSeparator="&quot;;&quot;, &quot;,&quot;, "
                                ErrorMessage="ServiceRequerment are not Avilable" NoWrap="True" ShowMoreResultsBox="True">
                                <ItemTemplate>
                                    <table>
                                        <tr>
                                           
                                            <td>
                                                <asp:Label ID="lbl" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title")%>'></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </rad:RadComboBox>



protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        if (RadComboBox1.SelectedItem != null)
            RadComboBox1.Text = RadComboBox1.SelectedItem.Text;
           
    }
    protected void RadComboBox1_ItemsRequested(object o, Telerik.WebControls.RadComboBoxItemsRequestedEventArgs e)
    {
        //string match=RadComboBox1.Text.ToString();

        fillRadcombobox();
    }
    public void fillRadcombobox()
    {
       
        Guid UserRequermentID =getdate.GetUserRequermentID();
        var ServiceRequerment = from service in db.ServiceRequerments where service.UserRequermentID == UserRequermentID select service;
        var servicedata = ServiceRequerment.ToList();
        if (servicedata.Count > 0)
        {
            RadComboBox1.DataSource = servicedata;
            RadComboBox1.DataBind();
        }
    }


Plz its Urgent
Rakesh Gupta
Rosi
Telerik team
 answered on 03 Nov 2008
1 answer
126 views

I am trying to access a radsplitter control via client-side scripting.

The radsplitter i am trying to reference is nested inside of another radsplitter/radpane.

Here is an example of how i access the splitter:

var splitter = $find("<%= innerSplitter.ClientID %>");

 

<

telerik:RadSplitter ID="outterSplitter" runat="server" Orientation="horizontal">
<telerik:RadPane ID="pane1" runat="server" >
<telerik:RadSplitter ID="innerSplitter" runat="server" VisibleDuringInit="False">
<telerik:RadPane ID="pane2" runat="server" Scrolling="none"  OnClientResized="afterResize">
left pane of the splitter
</telerik:RadPane>
right pane of the splitter
<telerik:RadSplitBar ID="splitbar1" runat="server" />
<telerik:RadPane ID="pane3" runat="server" OnClientResized="afterResize2"></telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
<telerik:RadSplitBar ID="splitbar2" runat="server" CollapseMode="None"/>
<telerik:RadPane ID="pane4" runat="server" height="20px" Locked ="true" >
bottom pane of the splitter
</telerik:RadPane>
</
telerik:RadSplitter> 


Everything is named appropriately, etc.


The value of splitter is always null.


 

Svetlina Anati
Telerik team
 answered on 03 Nov 2008
5 answers
766 views
Hi,

I've posted this in another forum on here by accident, I think I've put this into the correct forum now.

I want to know if it is possible to update a label that is wrapped in a RadAjaxPanel using code behind?  I.e.:

ASP.NET:

<

telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" width="300px"> <asp:Label ID="Connections" runat="server" Text="0"></asp:Label> </telerik:RadAjaxPanel>

Code behind ( C# code ):

Connections.text = "100";

I can't get this to work unless I do a postback which is obviously not what I want.
I know this will probably work if I have a timer event and do it in that, but don't want to use one.

Any help is much appreciated.

Regards,
Steve

steve
Top achievements
Rank 1
 answered on 03 Nov 2008
1 answer
145 views
Hi,

I am doing live grid update. It works fine if there is only one page.
But if I am on page 2 and webservice is called then e.NewPageIndex gets -1, and that throws error.

If I try to use viewstate to reset CurrentPageIndex value then I get error "The specified value cannot be set on CurrentPageIndex" in "RaisePostBackEvent"
on below statement
MyBase.RaisePostBackEvent(source, eventArgument)

Any input please.

Thanks & Regards,
Vaibhav
Yavor
Telerik team
 answered on 03 Nov 2008
2 answers
125 views
hi

i am using sorting techniques of  rad grid.....
in which i have one column with time which may fall into negative numbers
when it is positive it gives me proper result of sorting i.e. it sorts ascending and descemding properly, but when  that column has any nono positive value its sorting crashesh down ...

is there any solution available for it .
Sebastian
Telerik team
 answered on 03 Nov 2008
3 answers
561 views
Hi All!

I have a newbie question:
I have a radgrid and inside it I have templatecolumns.
One of it look like:
<telerik:GridTemplateColumn UniqueName="DateNow">
    <ItemTemplate>
        <asp:Literal runat="server" ID="litDateNow" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

and want to evaluate the datetim.now somehow in the following way:
Text='<%# DateTime.Now.ToString() %>' but not working

and what should I do if I want to do the same with a Session variable, for example Session["userName"] ?

thx, waiting Ur answers
alsi
Daniel
Telerik team
 answered on 03 Nov 2008
2 answers
119 views
My 3.5 controls are showing up in 3.5 projects.  

I'm trying to add a toolbox for RadControls for ASPNET AJAX to my 2.0 project in VS2008.  I followed the instructions here:

http://www.telerik.com/help/aspnet-ajax/installaddingtovs2008.html

I get this error:

---------------------------
Microsoft Visual Studio
---------------------------
There was an error loading types from assembly 'D:\Program Files\Telerik\RadControls for ASPNET AJAX Q2 2008\Bin\Telerik.Web.UI.dll'

'Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'

 

For more information, click the help button.
---------------------------
OK   Help  
---------------------------

Nick
Top achievements
Rank 2
 answered on 03 Nov 2008
1 answer
131 views
I would like to add functionality to export certain custom data from an ajaxified page.  On the user clicking a button, the logic would normally look something like:

Response.Clear()
Response.ContentType =
"application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "attachment; filename="Export.xls")
....
Response.Flush()
Response.Close()

I would like to implement the same functionality with RadAjaxManager, and have Excel open in a new window leaving the original window open and unchanged.  I know I cannot use the Response object in this way with RadAjax.  Is there an alternative to doing this without posting back?

 

Rosen
Telerik team
 answered on 03 Nov 2008
1 answer
95 views
Using  radgrid for 2008, 2, 826, 20  .net 2.0

I have a grid controlled by a dropdown.  Most items in the dropdown cause a single row to be displayed.  1 item in the dropdown causes all row's to be displayed.

If i choose the option to show all rows first, then with paging move to page 2, then change the dropdown to show a single row, the grid reports that "No records could be found", I assume because it is insisting to show only page 2 of 1.  Same sequence without moving to page 2 results are as expected so it is not a data issue.

Is there a way for me to force the page back to page 1 on selectedindexchanged event?  Currently the event only does a grid.rebind.

I am using a .NeedDataSource event in the code behind.  Grid in the .aspx is defined as below.

       <telerik:RadGrid ID="radSurveyResults" runat="server" GridLines="Both" Skin="WebBlue" AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AllowFilteringByColumn="false" AllowSorting="true" > 
            <MasterTableView> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="10px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                  <Columns> 
               <telerik:GridBoundColumn  HeaderStyle-Wrap="false"  DataField="jobcode" HeaderText="Job Code" ItemStyle-Wrap="false"> </telerik:GridBoundColumn>  
 
     
                </Columns> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
        </telerik:RadGrid> 


Sebastian
Telerik team
 answered on 03 Nov 2008
1 answer
113 views
It doesn't seem to matter what I set the RadTreeView Height to, when the tree view is in a RadWindow that is displayed in response to a button event the tree view is always the default height ????

Anyone else see this behavior or otherwise have a solution for me.

Thanks,
TK
Peter
Telerik team
 answered on 03 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?