Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
282 views
I am carrying over a session variable from a raddatepicker on another page.  How to I convert it from the string below to be the default value of the raddatepicker on the new page?

Dim strPayDate As String = CType(Session.Item("PayDate"), String)
        If Not Page.IsPostBack Then
            'convert string to date
            Dim dt As DateTime
            dt = Convert.ToDateTime(strPayDate)
            RadPayDate1 = dt
            

Error is "Date cannot be converted to Teleric.WebUI.RadDatePicker. Thank you.
STEPHEN
Top achievements
Rank 1
 answered on 05 Oct 2010
1 answer
79 views
Hi,
Can anyone tell me how to combine the client side caching feature of rad grid with the virtual paging feature.


Thanks,
Sabarinath
Sebastian
Telerik team
 answered on 05 Oct 2010
1 answer
70 views
Hello,

I have a  RadPanelBar on an aspx page.  The PanelBar has 3 RadPanelItems.  Each PanelItem has a Silverlight control.  Since Silverlight controls don't do a great job of resizing PanelItem, I'm doing it via JavaScript (i.e., my Silverlight controls set values of corrseponding hidden input fields on the aspx page, and JavaScript functions, set by a timer, look those values up and resize containers (the ones that pull .xap file in) inside of the appropriate PanelItems, thus effectively stretching the latter).  This works fine except for one problem - every time the PanelItem is resized, its content reloads (that is, the Silverlight control inside of the PanelItem is completely reloaded and all the work done in the control is lost).  Is there a way to preven PanelItem's content refresh/reload when the PanelItem is resized?

Thank you!
Yana
Telerik team
 answered on 05 Oct 2010
1 answer
213 views
Dear  All ,

 Kindly help me regarding this issue.

 Issue :   Filter Button Background color  of  radgrid column  need  to  change  when ever user click's on that button.
                "Filter button  BackGround Color of RadGrid Column get's change  if  a mouse  down happens  between click to click"
                
                 Example : I have two columns  "ID" and "Name"  in my radgrid .. .. Click on first columns Filter Button  a menu window with options  "NoFilter,contains,startswith.... etc" gets open and Background color of filter button gets change, with out selecting any option from the options menu and with downing mouse click on any other part  of the screen ,directly click on second Columns Filter Button and click on that ,menu window with options  "NoFilter,contains,startswith.... etc" gets open but background colour of filter button not getting changed.


Please  help me to overcome this issue

Thanks in advance
             
Dimo
Telerik team
 answered on 05 Oct 2010
1 answer
118 views
Hi,
      I have some background issue. It may also be  connected to how i am building my master page using ajaxpanel and ajaxmanager, etc. here is a what i have in the master page.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMenu1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="masterContent" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="crumbs">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                    <telerik:AjaxUpdatedControl ControlID="masterContent" />
                </UpdatedControls>
            </telerik:AjaxSetting>
              
        </AjaxSettings>
          
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <div>
<table width="100%"  border="5">
  <tr>
    <td class="noprint" id="masterHeader1" colspan="2">
        <img alt="All Languages Logo" src="Images/logo.gif" style="border: 1px; border-color:Silver; vertical-align:top;" />
        <span style="font-family:Arial; font-size:18px;font-weight:bolder;">Customer Web Portal</span><br />
        <span style="font-size:9px"><asp:LoginName ID="ln" FormatString="Logged in as: {0}" runat="server"/></span>
    </td>
  </tr>
  <tr>
    <td valign="top" width="175px">                
            <telerik:RadMenu ID="RadMenu1" Runat="server" style="z-index:2900"
                DataSourceID="SiteMapDataSource1" EnableRoundedCorners="True" Width="175px"
                EnableShadows="True" Flow="Vertical">
            </telerik:RadMenu>
    </td>
    <td valign="top" width="95%">        
             
          
        <telerik:RadAjaxPanel ID="pnlContent" runat="server" HorizontalAlign="Left" LoadingPanelID="RadAjaxLoadingPanel1">
              
              
  
            <table>
        <tr>
            <td id="breadcrumbs" class="noprint">
                  
                <asp:SiteMapPath ID="crumbs" runat="server" CurrentNodeStyle-CssClass="hide" PathSeparator=" : "  >
                    <CurrentNodeStyle CssClass="hide" />
                </asp:SiteMapPath>
            </td>
        </tr>
        <tr>
            <td>
                <asp:SiteMapPath ID="title" ParentLevelsDisplayed="0" CurrentNodeStyle-Font-Size="Large" runat="server"  >
                    <CurrentNodeStyle Font-Size="Large" />
                </asp:SiteMapPath>
            </td>
        </tr>      
        <tr>
            <td  id="pageContent">
                <asp:contentplaceholder id="Main" runat="server"></asp:contentplaceholder>
            </td>
        </tr>
       </table>
         
        </telerik:RadAjaxPanel>

       I am just using the ajaxpanel so i do not have to configure the manager self referenced calls as most of the stuff would be going on inside  the main panel. Otherwise i should have actually just use one ajaxpanel for the whole page. 

ISSUE:
             Attached are some screen shots. I have probably 2 issues:

1-On first load, the visible area of the page (without scrol bar) has the white color but the overflowed area is greyish, why ? and how can i fix it ?

2-On post back, all the empty area of the page (white before) but inside the panel (probably) changes the color to grey. why does it change. I want consistent look, either white or grey but it should stay all the time.

Please help. Thanks,

Regards,

Osman
Dimo
Telerik team
 answered on 05 Oct 2010
1 answer
140 views
I have a rotator that has 3 items.  I use buttons outside of the rotator to call the showNext function.  The first time I click through the set of items the third item displays correctly but when I debug in javascript the item is listed as the 2nd item in the set.  But if I click through all the items again everything works fine.  This is an issue because when the buttons that navigate the rotator are clicked I use the index of the current item to update where the user is at in the rotator.  Any clue what is going on.  I hope this makes sense.

Thanks,

Kirk
Fiko
Telerik team
 answered on 05 Oct 2010
1 answer
58 views
Hi,
In the editor when you click insert hyperlink, you are offered the document manager to select links from. My end users want the ability to select images as well (they do not understand html well enough to add this manually). Is there a way to acomplish this?

Thanks
Dobromir
Telerik team
 answered on 05 Oct 2010
1 answer
176 views
Hi all!

I cannot make FileExplorer to show files and folders in the root folder. Everything is OK for child folders.

I have custom FileBrowserContentProvider:
     
public override DirectoryItem ResolveRootDirectoryAsTree(string path)
{
  Assert.ArgumentNotNull(path, "path");
      if (path.Length == 0)
     {
        path = "/media library/";
     }
   Item item = GetItem(path);
     if (item == null)
     {
    return null;
  }
   PathPermissions permissions = GetPermissions(item);
   DirectoryItem result = new DirectoryItem(item.DisplayName, GetParentPath(item), string.Empty, string.Empty, permissions, GetChildFiles(item), GetChildDirectories(item));
   return result;
}
static DirectoryItem[] GetChildDirectories(Item item)
  {
  Assert.ArgumentNotNull(item, "item");
   List<DirectoryItem> result = new List<DirectoryItem>();
      foreach (Item child in item.Children)
     {
        if (child.TemplateID != TemplateIDs.MediaFolder)
        {
      continue;
    }
 
    PathPermissions permissions = GetPermissions(child);
     DirectoryItem directoryItem = new DirectoryItem(child.Name, string.Empty, child.Paths.Path, string.Empty, permissions, null, null);
     result.Add(directoryItem);
  }
   return result.ToArray();
}
public override DirectoryItem ResolveDirectory(string path)
{
  Assert.ArgumentNotNull(path, "path");
  Item item = GetItem(path);
  if (item == null)
  {
    return null;
  }
  PathPermissions permissions = GetPermissions(item);
  return new DirectoryItem(item.DisplayName, string.Empty, item.Paths.Path, string.Empty, permissions, GetChildFiles(item), null);
}

static FileItem[] GetChildFiles(Item item)
{
  Assert.ArgumentNotNull(item, "item");
   List<FileItem> result = new List<FileItem>();
   foreach (Item child in item.Children)
  {
    if (child.TemplateID == TemplateIDs.MediaFolder)
    {
      continue;
    }
     PathPermissions permissions = GetPermissions(child);
     MediaItem mediaItem = child;
     MediaUrlOptions options = new MediaUrlOptions();
     options.UseItemPath = false;
     string url = MediaManager.GetMediaUrl(child, options);
     FileItem directoryItem = new FileItem(child.Name + "." + mediaItem.Extension, mediaItem.Extension, mediaItem.Size, string.Empty, url, string.Empty, permissions);
     result.Add(directoryItem);
  }
   return result.ToArray();
}
Any help will be appreciated.
Fiko
Telerik team
 answered on 05 Oct 2010
1 answer
239 views
Hi,

I just discovered that RadComboBox sends the Text and not the Value to the RequiredFieldValidator.  This means I had to write a custom validator for RadComboBox.  This is fine for server-side but for the ClientValidationFunction I have a problem.  I have it working, but the ClientValidationFunction is also called when the RadComboBox OnClientSelectedIndexChanging event is fired.  This causes it to be validated before the selected index is set and so produce an incorrect validation result.

How can I prevent the OnClientSelectedIndexChanging event from causing the ClientValidationFunction to fire?

Thanks.
Princy
Top achievements
Rank 2
 answered on 05 Oct 2010
1 answer
124 views
Hello,

I'm working on a toolbar with a custom dropdown. I want to place a treeview instead of a list of items for selection. I'm able to fill and to use the treeview but I have two problems :
 
1/ How to disable standard animation behind my treeview (selected colors appears behind like if toolbarbuttons where there) ?

2/ How to post a postback event "RadToolBar.ButtonClick" each time I change my selection ?

Best regards

PS : my code

<script type="text/jscript" >
    function OnClientNodeClickingHandler(sender, e) {
        var r = $find("<%= rtoolbar.ClientID %>")
        var c = r.get_items().getItem(1);
        r.trackChanges();
        c.set_text(e.get_node().get_text());
        r.commitChanges();
    }
</script>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rtoolbar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rsPlanning" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadToolBar runat="server" Width="100%" ID="rtoolbar">
    <Items>
        <telerik:RadToolBarButton>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text="Label">Groupe de moyens :</asp:Label>
            </ItemTemplate>
        </telerik:RadToolBarButton>
        <telerik:RadToolBarDropDown ID="rSelectProdLineGroup" runat="server" Text="Sélectionnez un groupe..." 
            DropDownWidth="250px" >
            <Buttons>
                <telerik:RadToolBarButton runat="server" >
                    <ItemTemplate>
                        <telerik:RadTreeView ID="rtvInProdLineGroups" Runat="server" Width="100%" Height="100%" OnClientNodeClicking="OnClientNodeClickingHandler">
                        </telerik:RadTreeView>
                    </ItemTemplate>
                </telerik:RadToolBarButton>
            </Buttons>
        </telerik:RadToolBarDropDown>
Yana
Telerik team
 answered on 05 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?