Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
We have an issue with the display of a vertical RadTabStrip in IE 6 (which I guess we're still supporting).

Rendered html is:
<td valign="top" class="grayBak" style="width: 300px;"> <%-- Background for tabs: tabs should fill its width --%>
    <div id="ctl00_ctl00_CPH1_TabStripMyProfilePanel">
        <div id="ctl00_CPH1_TabStripMyProfile" class="RadTabStripVertical RadTabStrip_SimpleAMHC RadTabStripLeft_SimpleAMHC">
            <div class="rtsLevel rtsLevel1">

Even though our containing div is 300px and we've styled several components (e.g. .rtsIn) to be wide,  in IE 6 the tabstrip width appears to be limited to 150px (See attached image "vertical radtabstrip width in ie6.jpg).  Other browsers are OK.

Any ideas on fixing this for IE6?

Thanks,
Tom
Yana
Telerik team
 answered on 30 Jun 2010
3 answers
165 views
I've got a problem with selected the active node.

It works on the root nodes but not on child nodes, if a child node is selected the root node is not expanded.

 Protected Sub panelmenu1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles panelmenu1.ItemDataBound 
 
        Dim dataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) 
  
       If functions.FucGetPageID = dataRow("ID").ToString() Then 
 
            e.Item.Selected = True 
            e.Item.Expanded = True 
 
        End If 
 
    End Sub 

Also viewstate is disabled if it matters.

Frontside code:

<telerik:RadPanelBar runat="server" EnableViewState="false" CausesValidation="False" EnableEmbeddedSkins="False" ID="panelmenu1" Width="100%" OnPreRender="panelmenu1_PreRender" OnItemClick="RadPanelBar1_ItemClick" /> 


Anyone has an idea how to select the parent node and expand it ?
David Blok
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
139 views
I have to make a static website, it cannot use a database.  My co-worker needs to modify menu.xml which loads the RadMenu menu items.  I want to make a managment panel that will allow them to modify items in the menu.xml, which will also export a sitemap.xml for search engines.

My lead developer suggested looking to see if the RadMenu editor had a builder like the GUI design time builder that can be used at runtime, instead of creating something from scratch with a treeview.  Using VS object browser, there doesn't seem to be any method that can XML write out the tree structure of the RadMenu during runtime.  Am I overlooking something?  Can this be done with the RadMenu builder at runtime, or is it better to write something from scratch?

Thanks in advance.
Yana
Telerik team
 answered on 30 Jun 2010
1 answer
175 views
I have a telerik radgrid inside of an xmlhttp panel that I refresh at a given interval with the following javascript...
function startWorklistRefresh() {
                if (wlIntervalId == 0) {
                    wlIntervalId = setInterval("reloadWorklist();", wlCtrlAutoRefreshRate);
                }
            }
            function reloadWorklist() {
                $find("<%= XmlGridPanel.ClientID %>").set_value("Reload");
            }
function OnClientResponseError(panel,args){
    alert('wtf');
}

We update our site using the app_offline.htm trick for IIS. The problem is that I can see (via FF/Firebug) the reloadworklist happening but there are 404 errors happening (as expected) when I take the site offline...but the user is does not see our app_offline page..I tried adding a clientside event for OnClientResponseError but that event was never hit...what I would like to have is a hook so I can redirect the user to some default.aspx page...I also tried the custom errors web.config but apparently that doesn't take effect for an xmlhttppanel request...any help would be greatly appreciated.

thanks
ds


Pero
Telerik team
 answered on 30 Jun 2010
2 answers
708 views

Hi,

In my web application, I am trying to integrate RadGrid from code behind and depending on the GridBoundColumn DataField “Status” (having value 1 and 0), I would like to show/hide “Deactivate”/”Activate” image command button written under ItemTemplate, After lot of Googling, I couldn’t find similar solution. If there is any way out to achieve this, please suggest.

My code is as followes,

<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True"  AllowPaging="True" AllowSorting="True" AllowAutomaticDeletes="True" OnItemCommand="RadGrid1_ItemCommand"> 

    <MasterTableView EditMode="PopUp" PageSize="20"                                AutoGenerateColumns="False"  DataKeyNames="Consequence_Id" ClientDataKeyNames="Consequence_Id">

     <PagerStyle Mode="NextPrevAndNumeric" />

        <Columns>

        <telerik:GridBoundColumn DataField="Module_Content_Text"

            HeaderText="Consequence_Name" SortExpression="Module_Content_Text"

            UniqueName="Module_Content_Text">

        </telerik:GridBoundColumn>

 

        <telerik:GridBoundColumn DataField="Status" Visible="false"

            UniqueName="Status">

        </telerik:GridBoundColumn>

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">

<HeaderTemplate>

               <table width="100%">

                  <tr>

                    <td>

                       Options</td>

                     </tr>

                     </table>

                </HeaderTemplate>

<ItemTemplate>

    <table width="100%">

        <tr>

            <td>

               <asp:ImageButton ID="ImgBtnDeactivate" ToolTip="Deactivate Record" runat="server" CausesValidation="False" CommandName="Deselect" OnClientClick="return confirm('Are you sure you want to Deactivate this record?');" ImageUrl="~/Images/icon/cross.gif" />

            </td>

            <td>

               <asp:ImageButton ID="ImgBtnActivate" ToolTip="Activate Record" runat="server" CausesValidation="False" CommandName="Select" OnClientClick="return confirm('Are you sure you want to Activate this record?');" ImageUrl="~/Images/icon/right.gif" />

                </td>

                <td>

                    <asp:ImageButton ID="ImgBtnDelete" ToolTip="Delete Record" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete this record?');"  ImageUrl="~/Images/icon/delete.gif" />

                </td>

                <td>

                   <asp:ImageButton ID="ImgBtnEdit" ToolTip="Edit Record" runat="server" CausesValidation="False" CommandName="Edit" OnClientClick="return confirm('Are you sure you want to Edit this record?');"  ImageUrl="~/Images/icon/edit.gif" />

                </td>

            </tr>

        </table>

    </ItemTemplate>

            </telerik:GridTemplateColumn>

</Columns>

           </MasterTableView>

 

------------------------------------------------

 private void displayConsequenceGrid()
    {
        MiddleWare.BL.Consequence objC = new MiddleWare.BL.Consequence();
        DataTable dt = new DataTable();
        objC._Company_Id = System.Convert.ToInt32(Session[CSession.__Session_Company_Id]);
        objC._Language_Id = System.Convert.ToInt32(Session[CSession.__Session_Lanuage_Id]);
        dt = objC.GetDataAllConsequence();
        RadGrid1.DataSource = dt;
        RadGrid1.DataBind();

     }

 protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        int retResult = -100;
        MiddleWare.BL.Consequence oConsq = new MiddleWare.BL.Consequence();
        oConsq._Updated_By = Convert.ToInt32(Session[CSession.__Session_User_Id]);
        oConsq._Module_Id = oConsq._Module_Id;

  if (e.CommandName == RadGrid.EditCommandName)
        {
            int Consequence_Id = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Consequence_Id"].ToString());
        }

 else if (e.CommandName == RadGrid.DeleteCommandName)
        {
            oConsq._Consequence_Id = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Consequence_Id"].ToString());
            retResult = oConsq.DeleteConsequence();
            if (retResult == 2)
            {
                displayConsequenceGrid();
            }
           
        }

 else if (e.CommandName == RadGrid.SelectCommandName)
        {
            oConsq._Consequence_Id = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Consequence_Id"].ToString());

            retResult = oConsq.ActivateConsequence();
            if (retResult == 1)
            {
                displayConsequenceGrid();
            }
        }


I am attaching the required result page as attached picture. Please help me out.

 

Debashis Pyne
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
419 views
Hi all,
 
          I am using a radcombobox with allowcustomtext = true intended for adding new values not present in the list. When i click on the combobox it gets opened and by default selection points to the first item. Still I can type a text, but when i  press the "enter key instead of the value i typed it commits the one on which the selection was there. I browsed through the documents and came to know this is the default action on pressing the Enter. But is there any way to avoid this and retain the values typed. Please help.

Regards,
Saravanan K

saravanan k
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
101 views
Hi again

Wondering if you knew if the latest version of the Telerik controls has an issue with displaying the icons in the grid toolbar.  I know it was working in previous versions.  I may have changed something that would have caused it to break, but I'm not sure.  As an example, here is what I have in my App_Themes\vista.css file.  We use all the different skins, but just chose the Vista as an example.

.reToolbar.Vista

 

.tbiEntity {

 

 

background-image: url(/images/rgb.png);

 

}


Additionally, I am aware that there is a hotfix, but when I tried to use it (I moved the contents of the last version to a backup folder and copied the contents of the zip file to the Telerik directory), I get the following error:
Package Load Failure
Package 'Telerik.Web.UI .... has failed to load properly (GUID={057D8865-D4BB-46E8-E24FD08F489}}.  Please contact package vendor for...

Thanks in advance.
Rumen
Telerik team
 answered on 30 Jun 2010
1 answer
77 views
After trying for hours to accomplish something that in theory should be a simple task, i've decided to turn to the forums for help!

I have a tree view (with checkboxes) with ONE parent node, and multiple child nodes.

I also have an asp:OptionButtonList, with three options: Full, Partial, and None.

If a user clicks "Full", the Parent node and child nodes should be checked.

If a user clicks "Partial", only the Parent node should be checked...no child nodes.

And, obviously, if a user clicks "None", no nodes should be checked.

I can get the Full and None options to work...but not the partial.

Can anyone help?

So far i'm doing this:

switch (rbl.SelectedValue)  
            {  
                case "Full":  
                    radTreeView.CheckAllNodes();  
                    return;  
                case "None":  
                    isChecked = false;  
                    break;  
                case "Partial":  
                    isChecked = false;  
                    break;  
                default:  
                    break;  
            }  
 
            foreach (RadTreeNode node in radTreeView.Nodes)  
            {           
                node.Checked = isChecked;                  
            } 

obviously this isn't going to accomplish what I want for the "Partial" option, but i've tried what seems like a billion different things, and I can't seem to just check the Parent Node...

Thanks in advance!
V
Nikolay Tsenkov
Telerik team
 answered on 30 Jun 2010
1 answer
58 views
Hi, I have a problem with a WebUserControl edit form of a rad grid, the problem is that the popup appears inside the radgrid and the overflow is hidden so the popup doesnt show. You can see the attached image for more information. Do you know why is this?
Rosen
Telerik team
 answered on 30 Jun 2010
1 answer
64 views
HI,

In treeview bind only root nodes with ServerSideCallBack when i click on plus image  its child node is loaded without post back
in this process i assign  imageurl property 
Node.ImageUrl = Row("ImageUrl").ToString()

Row("ImageUrl") contain value "Q1".

when I postback page and then get imageurl property, i get website URL with "Q1" like
"http://mysite/View/Q1"

i need only "Q1"

how can i get this value.

Thanks in advance

regards,
sadiq modan
Nikolay Tsenkov
Telerik team
 answered on 30 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?