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

I am Using RadGrid and for paging i am using  the following code .

 

 

<PagerStyle Mode="Slider" />
2 out of 3 screens are showing this pager slider correctly .But in one page the slider is coming twice.
On page load only one slider is there.But if i go to other page (on clicking the slider), it gives two sliders one below other as mirror image.
I have no idea why this is coming .Could any body please advice me?
I am attaching the slider image what i got.

Thanks....

 

Winni
Top achievements
Rank 1
 answered on 01 Oct 2011
0 answers
84 views
Just a suggestion really; 

Think this would be a good feature to implement for radtextbox / radcombobox in future.
see: http://loopj.com/jquery-tokeninput/


Alan T
Top achievements
Rank 1
 asked on 01 Oct 2011
1 answer
225 views
I create a RadAjaxPanel with some of inside controls.one of inside control is a nested radajax
with a TextBox and a button.both of radajaxpanel update mode are always(in code behind).
when i click on button in nested radajax parent radajax will be update an nested radajax will be hide!!Why?
I test this scenario with updatepanel and worked correct...

 Markup:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" 
            onajaxsettingcreated="RadAjaxPanel1_AjaxSettingCreated1">
  
            <asp:TextBox runat="server" ID="txt2" />
            <asp:Button  Text="but1" ID="but"  runat="server" onclick="but_Click" />
              
        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" 
                Width="300px" onajaxsettingcreated="RadAjaxPanel2_AjaxSettingCreated">
            <asp:TextBox runat="server" ID="txt" />
            <asp:Button Text="but2" ID="but2" runat="server" onclick="but2_Click" />
        </telerik:RadAjaxPanel>
  
        </telerik:RadAjaxPanel>

Code Behind:
protected void but_Click(object sender, EventArgs e)
        {
            txt.Text = "ok";
            txt2.Text = "ok";
        }
  
        protected void but2_Click(object sender, EventArgs e)
        {
            txt.Text = "ok";
            txt2.Text = "ok";
        }
  
        protected void RadAjaxPanel1_AjaxSettingCreated1(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
        protected void RadAjaxPanel2_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
Edward
Top achievements
Rank 1
 answered on 30 Sep 2011
2 answers
73 views
I have a grid that use a pop up edit form. After the form has been updated, how can I tell what was changed? My goal is to send an email if a value in a drop down was changed from "Unassigned" to something else.

Thanks
Najid Hanif
Top achievements
Rank 2
 answered on 30 Sep 2011
1 answer
129 views
Hi

Is it possible to build a notification panel message on the top of the page (see also attachment).

Cheers,
Jani
Brian Garson
Top achievements
Rank 2
 answered on 30 Sep 2011
1 answer
87 views
Hello,

I've been trying to make RadComboBox work in sharepoint 2010 for couple of hours but I always get the following error :  Unable to load file or assembly 'Telerik.Web.UI'

Error occur on the following line : <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

I've followed steps described here : http://www.telerik.com/help/aspnet-ajax/moss-deploying-radcontrols.html

Here is my usercontrol from my Visual webpart

<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Control Language="VB" AutoEventWireup="true" CodeBehind="Im3BottinVueSommaireUserControl.ascx.vb"
    Inherits="Vdq.Im3.Bottin.r0.Im3BottinVueSommaireUserControl" %>
<telerik:radcombobox runat="server" id="RadComboBox1" height="100px" enableloadondemand="true"
    showmoreresultsbox="true" enablevirtualscrolling="true" emptymessage="Type here ...">
    <webservicesettings path="http://localhost:53106/Service1.svc" method="GetData" />
</telerik:radcombobox>

In my web.config :

C:\inetpub\wwwroot\wss\VirtualDirectories\SITE\web.config

<SafeControl Assembly="Telerik.Web.UI, Version=2010.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="True" />
<SafeControl Assembly="Telerik.Web.Design, Version=2010.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" SafeAgainstScript="True" />


<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
    <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35"/>
</dependentAssembly>
<dependentAssembly>
     <assemblyIdentity name="Telerik.Web.Design " publicKeyToken="121fae78165ba3d4"/>
     <bindingRedirect oldVersion="1.0.0.0-x.x.x.20" newVersion="x.x.x.35"/>
</dependentAssembly>
[...]
    </assemblyBinding>


See attached file for screenshot of both telerik dll in the GAC...

Any idea of what's wrong ?

Could you confirm if what i'm trying to achieve is possible ?

Thank you !

Samuel
Top achievements
Rank 1
 answered on 30 Sep 2011
2 answers
59 views
Hello,
I have an objectdatasource that populates a listbox. The objectdatarource select method requires two parameter (the PK of radgrid item).
When the Selecting event of objectdatasource is fired, I cannot access to current edit item, because edititems.count is =0. How can I retrive the primary keys of current edited row in this case?

THanks
Fabio Laserra
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
67 views
How do I close the Insert/Edit Form when the Refresh Grid Button is clicked?

I should say I'm using EditFormType="WebUserControl"

Thanks for everyone's continued help.


Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Sep 2011
4 answers
331 views
I have some items in a database that are system items and I don't want users to be able to change them. Is there a way I can hide the GridEditCommandColumn and GridButtonColumn (delete) for specific rows only? e.g. I have 4 rows with a DayKeyName, ID, it's an identity field and I want to hide 1 and 2 but not 3 and 4.

I tried this but I think I'm missing something:
Protected Sub RadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid.ItemDataBound
        Dim Datakey As Integer = Nothing
 
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Datakey = item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ID")
        End If
 
        Dim tableView As GridTableView = DirectCast(e.Item.OwnerTableView, GridTableView)
        Dim editColumndetail As GridEditCommandColumn = DirectCast(tableView.GetColumn("EditColumn"), GridEditCommandColumn)
 
        If Datakey = 1 Or Datakey = 2 Then
            editColumndetail.Visible = False
        Else
            editColumndetail.Visible = True
        End If
 
    End Sub

Thanks for you help!!
Chris
Top achievements
Rank 1
 answered on 30 Sep 2011
1 answer
44 views
Hello Community and Telerik,

I can't change the subject anymore ;-) It should read >> "set_selectedDate" resets "backColor"  << to make my point clearer ...

This is basically my code:

scheduler.set_selectedDate(app.get_start());
app.set_backColor("green");

Works for a single second or two and then "backcolor" gets cleared again ("set_selectedDate" returns?!?)

As far as I have found out, "set_selectedDate" performs an ajax-request which overrides the "backcolor" after "it returns from the server". Right?

How do I do it correctly?

How can I determine when "set_selectedDate" returns (any hook?) or set "backcolor" surviving that ajax-call/"light-weight-postback"?

Thanks a lot,
Gint
Ivana
Telerik team
 answered on 30 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?