Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
205 views
Hi All:
Here is my problem.
I need to change the selected item in a panel bar at run time.
I am using the following code to achieve this.. (hapenning on ajax request)
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
      If hdnMenu.Value = "6" Then
          If (e.Argument.StartsWith("ListesGroupes")) Then
              If e.Argument.ToString.Split("$")(1) = "1" Then
                 //do something
              Else
                 // reset the panel bar
                  RadPanelBar1.ClearSelectedItems()
                  Dim myItem As RadPanelItem = DirectCast(RadPanelBar1.FindItemByText("Mes alertes"), RadPanelItem)
                  myItem.Selected = True
                  myItem.ExpandParentItems()
              End If
          End If
      Else
  End Sub

However, the selected is not changing. My page consist of 2 content place holders with a master. I am not using a radajaxmanager in my master/ proxy in child in this case as the application was already built when I took over and am just doing support.

So this page contains
1. Content place holder 1
a. this contains the PanelBar which is named RadPanelBar1
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1"
        Width="100%" Height="100%"  PersistStateInCookie="false"  OnClientItemClicking="OnClientItemClicking" EnableEmbeddedSkins="false" Skin="IroiseSkin">
        <Items>
            <telerik:RadPanelItem Text="Agendas"  Value="AGENDA"  Expanded="true"   PreventCollapse="true">
                <Items>
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Mes RDV" NavigateUrl="" PostBack="false" Value = "AGENDA.RDV"   Selected="true" />
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Mes mémos"  NavigateUrl="" PostBack="false" Value = "AGENDA.MEMO" />
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Mes tâches" NavigateUrl="" PostBack="false" Value = "AGENDA.TACHE"  />
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Mes alertes" NavigateUrl="" PostBack="false" Value = "AGENDA.ALERT" />
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Tout l'agenda" NavigateUrl="" PostBack="false" Value = "AGENDA.TOUT"    />
                        <telerik:RadPanelItem ImageUrl="../Images/flyout_arrow.gif" Text="Agendas groupes" NavigateUrl="" PostBack="false" Value = "AGENDA.GROUPE" />
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
</asp:Content>



2. Content place holder 2
a. contains the RadAjaxManager + lots of things (radscheduler + radwindows)

I have been checking till when the changes I make  to the PanelBar, in the above function, remain active and I see that before the RadPanelBar1_PreRender function the changes are still there but after the functions for applything the theme takes over and I lose my changes.

My idea is that I am doing something wrong in the ajax manager but I am not sure what.
Please help me in finding the solution to this error.

Thank you!
Shinu
Top achievements
Rank 2
 answered on 25 Oct 2010
1 answer
268 views

Hi,

i am exporting my radgrid to msword.
how to set the font size and font family while exporting data in ms word.

please reply.
Shinu
Top achievements
Rank 2
 answered on 25 Oct 2010
1 answer
100 views
I m  using this code,but below error is coming....I m using visual web developer2008....Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 ...ajax toolkit not used

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager



<system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
      <remove name="ScriptModule"/>
      <add name="n2.initializer" type="N2.Web.InitializerModule, N2"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>

      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"
           
    </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/>
      <add name="n2.ajax" path="*.n2.ashx" verb="*" type="N2.Web.AjaxRequestHandler, N2"/>
           
      
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" EnableHandlerDetection="false" preCondition="integratedMode,runtimeVersionv2.0 "/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </handlers>
    
    <staticContent>
      <remove fleExtension=".vcs" />
      <remove fileExtension=".vcf" />
      <mimeMap fileExtension=".vcf" mimeType="text/x-vcard" />
      <mimeMap fileExtension=".vcs" mimeType="text/x-vCalendar" />
    </staticContent>
    
  </system.webServer>





shal u plz help me
Yana
Telerik team
 answered on 25 Oct 2010
1 answer
181 views
In my form I have a RadGrid control and the data source is LinqDataSource which is connected to Entity Framework Model.

Everything works fine except when I am trying to do filtering on columns. For example when I try to apply contains filter on a string column I am getting this error:

LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.


We are using DataSourceID property in the grid for data binding.

I tried EntityDataSource as datasource and filtering works fine, but we have to use LinqDataSource in our specific case.

Any ideas why it happens?

Maria Ilieva
Telerik team
 answered on 25 Oct 2010
1 answer
134 views
Hi

I'm using a RadGrid with a Popup Edit Form.
The RadGrid is using AJAX.

When I click the cancel button in the Popup Edit From, the RadGrid does a AJAX refresh that takes about a second to complete.
The problem is that the Popup Edit Form does not close until the AJAX update, of the RadGrid, is complete.

I want the Popup windows close directly when I click the cancel button or the X (in the upper right corner of the popup) and then the RadGrid can refresh (only on insert or update).
Is this possible?

Why does the Radgrid tries to update itself when I click cancel (there no need for a refresh) ?

Regards
Per
Martin
Telerik team
 answered on 25 Oct 2010
1 answer
253 views
Hi,

I have implemented a dropdown filter for the status column in the grid displaying requests
there are 5 status values. 

New
Open
In-Process
Resolved
Closed

I am able to filter the grid based on the drop down by selected one of the above values using the following code

protected void cbStatusFilter_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
       {
           GridFilteringItem filterItem = (GridFilteringItem)grdRequests.MasterTableView.GetItems(GridItemType.FilteringItem)[0];
           Status = e.Value;
           (filterItem.FindControl("txtStatus") as TextBox).Text = e.Value;
           if (e.Value != "")
           {
               filterItem.FireCommandEvent("Filter", new Pair("EqualTo", "Status"));
           }
           else
               filterItem.FireCommandEvent("Filter", new Pair("NoFilter", "Status"));
       }
 
            private string Status
       {
           get
           {
               if (ViewState["Status"] == null)
                   return "";
               else
                   return ViewState["Status"].ToString();
           }
           set { ViewState["Status"] = value; }
       }

 What I want to be able to do is add an additional value in the dropdown called Unresolved which when selected should show requests with New, Open, and In-Process status. I am not sure how to go about implementing this.



How do I call the FireCommandEvent to filter by multiple values i.e New, Open, In-Process
thanks



Veli
Telerik team
 answered on 25 Oct 2010
1 answer
121 views
Hi,

Is it possible to achive Floating toolbar with RADToolbar Control.

Yana
Telerik team
 answered on 25 Oct 2010
1 answer
182 views
Is there a way to have RadScheduler reschedule all appointments based on an appointment move?  What I mean is, if the user moves an appointment, it should adjust the start/end times of the rest of the appointments to fill in any empty timeslots.

What I'm trying to do is have the scheduler detect empty timeslots and move appointments automatically when an appointment fits in the empty timeslot.
Peter
Telerik team
 answered on 25 Oct 2010
1 answer
155 views
Hello All,
                 I have nested Telerik RadGrid Inside the RadWindow means I am using telerik Rad gird, inside Rad window.And using the selected index change event of RADGRID I have to do some kind of Operation.
But the problem is that, after row clicking, row selection is NOT Persist. After making selection of Row the Event Fires and Some Operation get Done. But the Selection of the perticular Row Got Lost.

But when I use the RADGRID without nesting it in RADWindow all is work fine and the Row Selection Persist. But The problem got Occur When I put the RADGRID Inside the RAD Window.

Please Help me out about this Behaviour of the RADGrid.

Thanks in Advance!!!
Princy
Top achievements
Rank 2
 answered on 25 Oct 2010
1 answer
107 views
I have very basic code and scroll buttons are not displayed. Client side events are not working either (I've tried) :-(

My Telerik version is 2010.2.713.35

here's my code
function Repaint(sender, args)
{
    //this function never fires
    var tabstrip = $find('<asp:Literal ID="litTabPages" runat="server" Mode="PassThrough" />');
    tabstrip.repaint();
 
}
<telerik:RadTabStrip ID="tabPages" runat="server" Skin="Default" ScrollChildren="True"
ScrollButtonsPosition
="Left" Width="300px" OnClientLoad="Repaint">
            
</telerik:RadTabStrip>

tabs are added dynamically in code. (there are enough tabs for scroll to show up)
please, suggest a solution
Yana
Telerik team
 answered on 25 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?