Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
207 views
Hello,

I'm using Sitefinity 3.7 with RadControls Q1 2010 SP2. I've made custom user controls which I'm using on my pages.
When I use RadAjaxLoadingPanel with RadAjaxManager, AJAX is working great but the loading image is displayed only once, unless I reload the page. Same with RadGrid and ShowStatusBar set to true. AJAX is working but the loading image on the status bar is displayed only once. Same behaviour on FireFox and IE, so I assume it's not browser related issue.
Dimo
Telerik team
 answered on 03 Sep 2010
1 answer
96 views
I have a menu that has child menu popouts.  I want to make it so that when an item is a parent it is also a child of itself.  We are using a site map provider to populate the data, so I can't add the parent item twice to make it a child of itself in the data as I get it from the provider.  So, Can RadMenu do this for me on the client?

How it shows now:
Parent 1
Parent 2
Parent 3
    Child 1
    Child 2
    Child 3

How I need it to show:
Parent 1
Parent 2
Parent 3
    Parent 3
    Child 1
    Child 2
    Child 3
Shinu
Top achievements
Rank 2
 answered on 03 Sep 2010
1 answer
1.3K+ views

Hi
I have a RadGrid and one of the columns is a button:

<telerik:GridTemplateColumn UniqueName="AgreeColumn">
         <ItemTemplate>
                 <asp:Button ID="AgreeButton" runat="server" onClick="AgreeButton_Click"  Text="Agree" />                            
          </ItemTemplate>
</telerik>

When the button is clicked AgreeButton_Click is fired and in the method, I do some databse updates. Only if the dabase updates are successfull, I want to call a Javascript function:

protected void AgreeButton_Click(object sender, EventArgs e)
    {
        // do some database work
        .....
        if (success)
            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myJS", "myJSFunction();", true);
    }

For some reason, the Javascript function never gets called.

It works, however, if I create a button outside of grid:

<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
  
protected void Button1_Click(object sender, EventArgs e)
  
{
      // do some database work
        .....
    if (success)
  
    this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myJS", "myJSFunction();", true);
  
}

What do I have to do to make this work for button in the grid?

Thanks

Princy
Top achievements
Rank 2
 answered on 03 Sep 2010
2 answers
168 views
Dear Friends,
 I am using SQL Table with Fields,
  • MENU_ID (Primary key with autoincrement values)
  • PARENT_ITEM (int) (for storing parent id's)
  • CHILD_ITEM (string) (for storing text values)

I have binded the value to tree view control as

       "List<clsMenu> listmenu = objadmin.GetMenuValues();
        trRolePrivilages.DataTextField = "CHILD_ITEM";
        trRolePrivilages.DataFieldID = "MENU_ID";
        trRolePrivilages.DataFieldParentID = "PARENT_ITEM";
        trRolePrivilages.DataSource = listmenu;
        trRolePrivilages.DataBind();"

Now, when i am creating a role for particular user (example: marketing user), I need to select only particular items in treeview using checkboxes, after checking the particular items, it should get saved in my ROLE TABLE for that particular  user, these are all the items listed.

so i need to populate those with menus

so when admin login, he has all the menu items and when marketing user login, he has only limited number of items. What can i do?
How to do this? cud anyone help me? Its very Urgent
Venkat
Top achievements
Rank 1
 answered on 03 Sep 2010
10 answers
906 views

Unable to cast object of type 'System.Web.Configuration.ScriptingProfileServiceSection' to type 'System.Web.Configuration.ScriptingProfileServiceSection'


After upgrading from Q2 to Q3 following the instructions on the website (basically removing the version component from the telerik controls in the web.config and dropping the new DLLs in my bin directory I get this error message. I'm really hoping the upgrade will resolve my dialog problem (dialogs fail which is not surprising since I'm taking 404s on my calls into Dialoghandler.aspx and i"m hoping hte new DialogHandler.axd will work better).

Any clues to help me move forward on this?
David Berman
Top achievements
Rank 2
 answered on 03 Sep 2010
3 answers
147 views

For a RadComboBox I am still having trouble with aligning the text to be indented off of the image on the selected item. I followed this example: http://www.telerik.com/community/code-library/aspnet-ajax/combobox/show-the-selected-item-image-in-input.aspx
This won't indent the text.

 

 

 

<style type="text/css">
    .cbGeographicUnit .rcbInputCell .rcbInput
    {
        padding-left: 22px;
    }
</style>
  
<tr>
    <td>
    <telerik:RadComboBox ID="cbGeographicUnit" OnClientLoad="showFirstItemImage" OnClientSelectedIndexChanging="showImageOnSelectedItemChanging" HighlightTemplatedItems="true">
                        <ItemTemplate>
                            ...
                        </ItemTemplate>
                    </telerik:RadComboBox>
         </td>
</tr>      

Kalina
Telerik team
 answered on 02 Sep 2010
2 answers
265 views
Hey Telerik Community,

I have been asked to implement Expand/Collapse row editing using the OnRowClick client event (ex: click the row once it expands, click the row again it collapses). I have the row expand working nicely.

Ex. Expand:
function RowClick(sender, eventArgs) {
    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
}

What is its counterpart for collapsing the row using the same click event? I imagine it will have some decision logic, but am not sure what the editItem should do or what the decision tree should contain.

Ex. Expand/Collapse?:
function RowClick(sender, eventArgs) {
    if(?????)
    {
        sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
    }
    else
    {
        sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()).????;
    }
}

Has anyone performed this same task? If so what was the solution?

Thanks in advance,

John
johnv
Top achievements
Rank 2
 answered on 02 Sep 2010
3 answers
111 views
Hello, 

Currently We are using silverlight for uploading files. But seriously considering to move into radUploader (since its supports
multiple  uploading).

I'l be glade to know what are the advantages of the Raduploader vs Silverlight uploading ( specially 
considering files types supported)

Best Regard
Cori
Top achievements
Rank 2
 answered on 02 Sep 2010
1 answer
317 views
Hi,
    I'm receiving the error message: Type or namespace name 'RadScheduler' does not exist in the namespace 'Telerik.Web.UI' (are you missing an assembly reference?) in the following code:

WidgetForm.aspx.designer.cs

/// <summary>
/// RadScheduler1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Telerik.Web.UI.RadScheduler RadScheduler1;
(blue squiggly line under the "RadScheduler")


Here are the using statements:

WidgetForm.aspx.cs:     
using System;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
  
using Telerik.Web.UI;
using Telerik.Web.UI.Calendar;

Is there something I'm missing?  This is only my second project in which I've used telerik controls so maybe I missed something basic in the setup of the webforms?

Thanks!




IU IT Athletics
Top achievements
Rank 1
 answered on 02 Sep 2010
2 answers
227 views
I am attempting to emulate (to some extent) the Cardview sample for the grid.  However, there are two differences that I need in my grid compared to the Cardview sample.

First, the grid as I now have displays per the screen capture below named TelerikCardviewQuestion1.gif.  As you can see, I have a wide display of an asp:label control that contains long text.  Below that I have two lines that contain a user id and a date posted.

The code in the .aspx file that displays this grid is: 
<h5><asp:Label ID="ViewCommentsHdg" runat="server" Text="Comments" Visible="false" ></asp:Label></h5>
<telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="False" AllowPaging="True" Enabled="false" Visible="false"
     GridLines="None" 
    Width="450px" EnableEmbeddedSkins="true" BackColor="#11161D" Skin="Black" OnItemCreated="RadGrid2_ItemCreated" >
<PagerStyle Mode="NumericPages" PageButtonCount="5" />
<PagerStyle Mode="NumericPages" AlwaysVisible="true"></PagerStyle>
    <MasterTableView TableLayout="Fixed">
        <ItemTemplate>
            <asp:Label ID="Image1" Text='<%# Eval("TextLangLongBody1") %>' runat="server"  />
            <div>
                <span style="font-weight: bold;"></span>
                <%# Eval("UserUName")%>
                <br />
                <span style="font-weight: bold;"></span>
                <%# Format(Eval("TextRunFromDate"), "General Date")%>
                <br />
            </div>
            <br />
        </ItemTemplate>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="false">
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>
There is also one column defined in the code behind file in the Page_Init event is:
Dim boundcolumn As GridBoundColumn
boundcolumn = New GridBoundColumn
Me.RadGrid2.Columns.Add(boundcolumn)
boundcolumn.UniqueName = "TextLangLongBody1"
boundcolumn.DataField = "TextLangLongBody1"
boundcolumn.Visible = True
boundcolumn = Nothing
RadGrid2.Enabled = True
RadGrid2.Visible = True
It seems redundant to need this code in the code behind.  Your Cardview sample does not contain it.  But If I comment out just the "column add" statements above (so that the .Enabled = True and .Visible = True are still active) then the grid displays no records what soever.  This is causing me some concern because the .aspx file contains a definition for adding TextLangLongBody1 to the grid.  I don't understand why both are needed.

Additonal issues:
(1) I would like the display of the user id and the date posted to be in a separate column from the TextLangLongBody1.  I would like these two rows to be displayed as the first column in the grid.
(2) I would like the display of the TextLangLongBody1 to be the second column in the grid.
(3) I have tried moving the asp:Label control down below the <div> containing the user id and date, but all that accomplishes is moving the text below those two fields.  It does not create a second column.

Here are my specific questions:
(1) Why does my grid require the Page_Init column definition code to work?  This is not required in your Cardview example.
(2) I think I have emulated the Cardview code exactly and yet I only get one column in the grid and not two.  Why?  Later, in another version of this same grid, I want to add an additional column containing a small display of the user's selected avatar graphic.  So I need to resolve this version now so I can build on it later.

I must be missing something really basic, but....?

Thanks in advance for any assistance!

Lynn



Lynn
Top achievements
Rank 2
 answered on 02 Sep 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?