Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views
Hello,

i have a problem in IE6 with the splitter control. It works in IE7 sucessfull.
If the Content is bigger as the resolution of the window then you can scroll down but the splitter control don't show anything.

<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%;margin:0px;" > 
<head runat="server"
    <title>Car-I Solutions</title> 
    <link rel="stylesheet" type="text/css" href="Styles/cari.css" /> 
</head> 
<body style="height:100%;margin:0px;"
    <script language="javascript"
            function UpdateCustomizationWindowValue() { 
    var element = document.getElementById("btnCustWindow"); 
    if(element == null) return; 
    element.value = (grid.IsCustomizationWindowVisible() ? "Schliesse" : "Zeige") + " Bearbeitungsfenster"; 
function ShowHideCustomizationWindow() { 
    if(grid.IsCustomizationWindowVisible()) 
        grid.HideCustomizationWindow(); 
    else grid.ShowCustomizationWindow();         
    UpdateCustomizationWindowValue(); 
        </script> 
        <script language="javascript" type="text/javascript"><!-- 
    // <!CDATA[ 
    function OnMoreInfoClick(element, keyValue) { 
        fzpopup.SetContentUrl('common/controllloader.aspx?control=fzdetail.ascx&fz_id=' + keyValue); 
        fzpopup.Show(); 
    } 
    //--></script
    <form id="form1" runat="server" style="height:100%;margin:0px;"
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"></telerik:RadAjaxManager> 
        <telerik:RadScriptManager id="RadScriptManager1" Runat="server" AsyncPostBackTimeout="600"
        </telerik:RadScriptManager> 
    <div style="height:100%;margin:0px;"
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" UpdateMode="Conditional"
        <telerik:RadToolBar id="RadToolBar1" Runat="server" OnButtonClick="RadToolBar1_ButtonClick" 
            Skin="Office2007" style="width:100%"
            <Items>                 
                <telerik:RadToolBarButton runat="server" Text="Home"
                    <ItemTemplate> 
                        &nbsp;&nbsp;<asp:ImageButton runat="server" ID="btn_home" ImageUrl="~/images/Home16.png" OnClick="btn_home_Click" />&nbsp;&nbsp; 
                    </ItemTemplate> 
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Search"
                    <ItemTemplate> 
                        <asp:Panel runat="server" ID="pan_search" DefaultButton="btn_search"
                            &nbsp; 
                            <telerik:RadTextBox ID="tb_search" runat="server"
                            </telerik:RadTextBox>&nbsp; 
                            <asp:ImageButton runat="server" ID="btn_search" ImageUrl="~/images/Search16.png" OnClick="btn_search_Click" />&nbsp;&nbsp; 
                        </asp:Panel> 
                    </ItemTemplate> 
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="LogInfo"
                    <ItemTemplate> 
                        <asp:LoginName ID="LoginName1" runat="server" />&nbsp; 
                        <asp:LoginStatus ID="LoginStatus1" runat="server" /> 
                    </ItemTemplate> 
                </telerik:RadToolBarButton> 
            </Items> 
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </telerik:RadToolBar> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Skin="Office2007" Width="100%" Height="100%" SplitBarsSize="">             
            <telerik:RadPane ID="splitpan_menue" runat="server" Height="100%" Width="200" Scrolling="None" >                 
                        <telerik:RadPanelBar ID="RadPanelBar_Funktionen" runat="server" PersistStateInCookie="True" Skin="WebBlue" Width="195px"
                            <Items> 
                                <telerik:RadPanelItem Text="Auswertungen" runat="server" Expanded="True"
                                    <Items> 
                                        <telerik:RadPanelItem runat="server"
                                            <ItemTemplate> 
                                                <telerik:RadTreeView ID="tv_auswertungen" runat="server" Skin="Office2007" OnNodeClick="NodeClick"
                                                    <Nodes> 
                                                        <telerik:RadTreeNode Text="Bestand" Expanded="True" Checkable="False" ExpandMode="ClientSide"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode runat="server" Text="Bestandsliste" Value="reports/bestand_liste.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Bestand Ãœbersicht" Value="reports/rep_bestanduebersicht.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Bestands Auswertungen" Value="reports/rep_bestand_standtaggruppe.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Bestandsentwicklung" Value="webparts/wp_gwbestandentwicklung.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Bestands Bewertung" Value="reports/dispo/rep_bestandsbewertung.ascx"></telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="Verkauf" Expanded="True" Checkable="False" ExpandMode="ClientSide"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode runat="server" Text="Auslieferungsliste" Value="reports/rep_auslieferungsliste.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Auslieferungsübersicht" Value="reports/rep_ausluebersicht.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Auslieferungs Auswertungen" Value="reports/rep_ausliefer_auswertungen.ascx"></telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode runat="server" Text="Verkauf nach Verkäufer" Value="reports/rep_auslverkaeufer.ascx"></telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                    </Nodes> 
                                                </telerik:RadTreeView> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                     
                                </telerik:RadPanelItem> 
                            </Items> 
                            <CollapseAnimation Duration="100" Type="None" /> 
                            <ExpandAnimation Duration="100" Type="None" /> 
                        </telerik:RadPanelBar> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" Height="100%" /> 
            <telerik:RadPane ID="splitpan_content" runat="server" Scrolling="None" Height="100%" Width="100%"
                <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" Runat="server" height="75px" 
                    HorizontalAlign="Center" width="75px" MinDisplayTime="20" Transparency="30"
                    <img alt="wird aktualisiert" src="App_Themes/Aqua/GridView/Loading.gif" style="border: 0px;" /> 
                </telerik:RadAjaxLoadingPanel> 
                <asp:Panel ID="pan_content" runat="server" Height="100%" Width="100%" style="margin:3px;"
                    </asp:Panel> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
        </telerik:RadAjaxPanel> 
    </div> 
    </form> 
</body> 
</html> 

can you understand me? can you help me?

Thank you very much.

Regards
Reiner


Svetlina Anati
Telerik team
 answered on 21 Jan 2009
2 answers
173 views
Is there an easy way to disable the selected style of the treeview without creating a custom skin? I dont want the appearance of a link to change when it is clicked as i'm not using the treeview as primary navigation. I'm using the Vista skin.

Thanks,
Levi
MANU
Top achievements
Rank 1
 answered on 21 Jan 2009
1 answer
181 views
I have noticed that when using the radScriptManager the asp.net Ajax javascript is not being sent down in the minified format when the debug value is set to false in the web config.  When using the asp script manager, the ajax javascript is sent down minified in this situation.  Is this by design, or is there a property that may enable this?

Thanks,
Kyle
Kyle
Top achievements
Rank 1
 answered on 21 Jan 2009
0 answers
459 views
RadScriptManager and RadStyleSheetManager controls.
These "manager" controls enable you to easily combine in to a single link all of the JavaScript and CSS links required by the RadControls. Why combine? One of the biggest bottlenecks for browsers these days is created by the concurrent requests limit. By default, both IE and Firefox limit concurrent requests per server to 4, as is recommend by the HTTP RFC guidelines. This limit can be changed, but expect few of your users to actually have done so as the process requires advanced computer skills.

With a limit of 4 concurrent requests (2 persistent connections), you can see how easy it is to clog the pipe with all of the request for images, JavaScript, and CSS on your page. Combining many links for CSS and JavaScript in to a single request can significantly improve your page load time by reducing the number of round-trip requests your page makes when it loads. And by doing the combining dynamically at runtime you don't have to send any unnecessary JavaScript to the client (for controls not in use) or manually maintain combined JavaScript files.

To get familiar with the controls please follow these online resources:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Jan 2009
1 answer
101 views
Can I bind a color in a RAD chart to particular values from my data? For example for projects Status report I would want to use RED, AMBER and GREEN for project status' High Jeopardy, low jeaopardy and Smooth projects respectively.

Any help is appreciated
Cheers !!!
Nitin
Ves
Telerik team
 answered on 21 Jan 2009
2 answers
163 views

Hello,

I have a clean install of DNN 5 on localhost (IIS 7, MS Vista Home Premium, MS SQL 2005 Developer Edition, ASP.NET 3.5). I have downloaded from my account RadEditor_7.35_DNN(2008_11_19) and RadEditor_7_3_5_dev. I have installed the Rad Editor using the DotNetNuke Integration Manual included in the RadEditor_7.35_DNN Folder.

After the integration, I dropped an HTML module onto a page and then chose 'Edit Text' and received this message:

==============================================================================================================

A critical error has occurred.
Could not load RadEditor! Check your provider configuration for errors (folders, links, orCSS) ! Method not found: 'DotNetNuke.Security.Permissions.FolderPermissionCollection DotNetNuke.Security.Permissions.FolderPermissionController.GetFolderPermissionsCollectionByFolderPath(Int32, System.String)'.

==============================================================================================================

I am still a novice at this stuff, but trying to learn. I went back and checked all of my work and have copied all of the dll files to the /bin, the RadControls in the /Controls Folder, and the RadHTMLEditorProvider is in the /Providers/HTMLEditorProiders Folder.

I have updated the web.config as follows (I omitted the FckEditor info for readability):

==============================================================================================================

<htmlEditor defaultProvider="RadHtmlEditorProvider">
   <providers>
    <clear/>
<add name="RadHtmlEditorProvider" type="Telerik.DNN.Providers.RadHtmlEditorProvider, Telerik.DNN.Providers.RadHtmlEditorProvider" providerPath="~/Providers/HtmlEditorProviders/RadHtmlEditorProvider/" AutoCreatePaths="true" />
   </providers>
  </htmlEditor>

==============================================================================================================

Any ideas?

Thanks,
Joe

 

Joseph
Top achievements
Rank 2
 answered on 21 Jan 2009
4 answers
227 views

I have an issue when trying to get the data grid to rebind after an item has been inserted. One thing to note is that I put all items in edit mode upon load. This is working fine. When I click the Add New command on the grid, I fire the ItemCommand event, add a row to the database, then set the grid Datasource to null and rebind.

The flow should be like this:
Initial Load (works properly):
-RadGrid1_NeedDataSource
 - PopulateGrid()
RadGrid1_ItemCreated
 - Populate()
 - PopulateEntity()
RadGrid1_ItemDataBound
 - PopulateDetCodeList()
RadGrid1_PreRender

Click Add New Command:
RadGrid1_ItemCreated
RadGrid1_ItemCommand
 - AddNewItem()
 - PopulateGrid() (note: allowRebind = true)

//this happens when Rebind() is called in PopulateGrid()
RadGrid1_ItemDataBound 
RadGrid1_ItemCreated
 - Populate()
 - PopulateEntity()
RadGrid1_PreRender

NOTICE That RadGrid1_NeedDataSource() event is not called when Add New Command is fired.

Here is my code:

<telerik:RadGrid ID="RadGrid1" runat="server" EnableEmbeddedSkins="false"
 Skin="PayDayUsa" AutoGenerateColumns="false" AutoGenerateEditColumn="False" GridLines="None"
 OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCreated="RadGrid1_ItemCreated"
 OnItemDataBound="RadGrid1_ItemDataBound" OnItemCommand="RadGrid1_ItemCommand"
 AllowPaging="True" AllowSorting="True" AllowMultiRowEdit="true" OnPreRender="RadGrid1_PreRender">
 <PagerStyle Mode="NextPrevAndNumeric" />
 <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" ExpandCollapseColumn-Display="false">
   <Columns>
     <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Code">
       <ItemTemplate>
         <asp:Label ID="DetCode" runat="server" Text='<%#Eval("DetCode") %>'></asp:Label>
       </ItemTemplate>
       <EditItemTemplate>
         <telerik:RadComboBox ID="DetCode" runat="server">
         </telerik:RadComboBox>
       </EditItemTemplate>
     </telerik:GridTemplateColumn>
     <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Hours">
       <ItemTemplate>
         <asp:Label ID="Hours" runat="server" Text='<%#Eval("Hours") %>'></asp:Label>
       </ItemTemplate>
       <EditItemTemplate>
         <telerik:RadNumericTextBox ID="Hours" runat="server">
         </telerik:RadNumericTextBox>
       </EditItemTemplate>
     </telerik:GridTemplateColumn>
     <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Rate">
       <ItemTemplate>
         <asp:Label ID="Rate" runat="server" Text='<%#Eval("Rate") %>'></asp:Label>
       </ItemTemplate>
       <EditItemTemplate>
         <telerik:RadNumericTextBox ID="Rate" runat="server">
         </telerik:RadNumericTextBox>
       </EditItemTemplate>
     </telerik:GridTemplateColumn>
     <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Amount">
       <ItemTemplate>
         <asp:Label ID="Amount" runat="server" Text='<%#Eval("Amount") %>'></asp:Label>
       </ItemTemplate>
       <EditItemTemplate>
         <telerik:RadNumericTextBox ID="Amount" runat="server">
         </telerik:RadNumericTextBox>
       </EditItemTemplate>
     </telerik:GridTemplateColumn>
   </Columns>
 </MasterTableView>
 <FilterMenu EnableTheming="True">
   <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
 </FilterMenu>
</telerik:RadGrid>

private void PopulateDetCodeList(GridEditableItem item)
{
  //dropdown list in grid
  RadComboBox list = (RadComboBox)item["TemplateColumn"].FindControl("DetCode");
  list.DataTextField = CDetCodesList.DBFieldName.DataText.ToString();
  list.DataValueField = CDetCodesList.DBFieldName.DataValue.ToString();
  list.DataSource = CDetCodesList.GetList();
  list.DataBind();
}

 

private void PopulateGrid(bool allowRebind)
{
  this.MyDatabaseData = null;
  RadGrid1.DataSource = null;

  if (allowRebind)
  {
    this.IsLoaded = false;
    RadGrid1.Rebind();
    return;
  }
  else
  {
    this.IsLoaded = true;
    RadGrid1.DataSource = MyDatabaseData;
    RadGrid1.MasterTableView.DataKeyNames = new string[] { MyEntity.DBFieldName.Guidfield.ToString() };
  }
}

/// <summary>
/// Populates the editable items in the row
/// </summary>
/// <param name="item"></param>
private void Populate(GridEditableItem item)
{
  if (item.ItemIndex < 0)
  {
    //inserting item so do not populate
    return;
  }

  MyEntity entity = PopulateEntity(item);

  //populates the editable items (grid)
  PopulateUIFromEntity(entity, item);
}
   
   
/// <summary>
/// Populates the entity from the database (locally cached)
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
private MyEntity PopulateEntity(GridEditableItem item)
{
  if (item.ItemIndex < 0)
  {
    //inserting item so do not populate
    return new MyEntity();
  }

  //retrieves entity data from database
  string uniqueKey = item.OwnerTableView.DataKeyValues[item.ItemIndex][MyEntity.DBFieldName.Guidfield.ToString()].ToString();
  MyEntity entity = MyEntity.GetByPrimaryKey(uniqueKey); 

  return entity;
}

   
private bool AddNewItem()
{
  int rowCount = this.MyDatabaseData.Rows.Count;

  //get required data from first row
  MyEntity originalEntity = MyEntity.DataBind(this.MyDatabaseData.Rows[0]);
  MyEntity entity = new MyEntity();
  entity.Trans = originalEntity.Trans;
  entity.SubTrans = Convert.ToString(rowCount + 1);
  bool success = entity.SaveData();

  return success;
}

 

#region Form Events
protected void Page_Load(object sender, EventArgs e)
{
}

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
  if (!this.IsLoaded)
  {
    PopulateGrid(false);
  }
}

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
  if (e.Item is GridEditableItem && e.Item.IsInEditMode)
  {
    //Populates dropdown list
    PopulateDetCodeList((GridEditableItem)e.Item);
  }
}

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridEditableItem && e.Item.IsInEditMode)
  {
    //Populates row data
    Populate((GridEditableItem)e.Item);
  }
}

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
  switch (e.CommandName.ToLower())
  {
    case "initinsert":
    case "performinsert":
      //add new row in database
      ControlBase.EditSuccessful = this.AddNewItem();
      break;
    case "edit":
      ControlBase.EditSuccessful = false;
      break;
    case "update":
      //e.Canceled = !UpdateItem((GridDataItem)e.Item);

      break;
    case "cancel":
      break;
  }
}

protected void RadGrid1_PreRender(object sender, System.EventArgs e)
{
  if (!IsPostBack)
  {
    foreach (GridItem item in RadGrid1.MasterTableView.Items)
    {
      if (item is GridEditableItem)
      {
        GridEditableItem editableItem = item as GridDataItem;
        editableItem.Edit = true;
      }
    }
    RadGrid1.Rebind();
  }
}

protected void SaveButton_Click(object sender, EventArgs e)
{
  this.Save();
}

protected void CancelButton_Click(object sender, EventArgs e)
{

}   

#endregion

Yavor
Telerik team
 answered on 21 Jan 2009
1 answer
147 views
Hi,

When I deply my application in the server I get the following error.

Compiler Error Message:
CS0433: The type 'Telerik.WebControls.GridTableItemStyle' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\25bfd43d\b3567859\assembly\dl3\b2a563d3\00fe24e9_81e8c801\RadGrid.Net2.DLL' and 'c:\WINDOWS\assembly\GAC_MSIL\RadGrid.Net2\5.1.2.0__ec87bc2939ec45df\RadGrid.Net2.dll'

I cleared the Temp ASP.Net files, restarted the machine, cleared IE. But nothing works. Please help me with this. I have already wasted half day for this. Any help is highly appreciated.
Daniel
Telerik team
 answered on 21 Jan 2009
2 answers
271 views
Is it even possible?  I have looked and looked and looked online but cant find a sample that remotely matches what I had in mind....

I have a radGrid which displays a list of records, on row select I have a FormView that opens all of the additional record information. 

1) I want to simply do that exact same thing, however I want it to open in a modalPopUp Extender to the user can view/edit/delete the record before returning to the grid.

Shawn
Top achievements
Rank 1
 answered on 21 Jan 2009
3 answers
121 views
I experienced the following error when loading my nodes via web service (ExpandMode.WebService):

The HTTP verb POST used to access path '<my webservice url>' is not allowed.

I finally found that removing the mapping of '*' to aspnet_isapi.dll in my IIS settings on my site resolved the problem. Only thing is, removing this mapping breaks something else in our product.

Any suggestions for what I can do to get this to work, and still have the wildcard mapping?

Thanks,
Ross
rwozniak
Top achievements
Rank 1
 answered on 21 Jan 2009
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?