Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
51 views
I am trying to create an inbox service for my companies product, Everything works however for better use for users i would like them to be able to click on an item in a radgrid like they do below
Where i carry a piece of information to the redirected page (strid)

Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Response.Redirect("MessageForm1.aspx?id=" + strid)
        Next
    End If
End Sub

But what i want to be able to do is open it in a new radwindow such as i do in the code below
function Message() {
    var ow = window.radopen('MessageForm1.aspx');
    ow.setSize(600, 1000);
    ow.set_title("MessageForm");
    ow.moveTo(400, 0);
 
    return false;
}

but still carry over the piece of information that i can get when i redirect

To clarify...
I currently use response.redirect because it allows me to transfer information, but I want to open a whole new rad window, and still transfer the information, is there any way to do this?
Thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
52 views
How to add more space between remove icon and "Remove" text in attached image?
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
88 views
Hi:

I have a grid that I want to show check marks or x marks depending on whether a student has got a question right or wrong.  

The relevant columns in my grid are:

<telerik:GridBoundColumn DataField="IsCorrect" FilterControlAltText="Filter IsCorrect column"
                        HeaderText="IsCorrect" SortExpression="IsCorrect" UniqueName="IsCorrect" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="CheckMark" HeaderText="Status">
                        <ItemTemplate>
                            <asp:Image ID="TemplateColumn" runat="server" ImageUrl="~/Images/check2.gif" />
                        </ItemTemplate>
                        <ItemStyle Width="30px" />
                        <HeaderStyle Width="30px" />
                    </telerik:GridTemplateColumn>

Currently, I am able to show check marks by overriding the check mark with blank text - i.e.

protected void grdExamReults_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
         {
             GridDataItem dataItem = e.Item as GridDataItem;
 
             try
             {
                 if (dataItem["IsCorrect"].Text != "1")
                     dataItem["CheckMark"].Text = "";
             }
             catch
             {
             }
         }
However, what I would really like to do is to show an xmark (wrong.gif) if dataItem["isCorrect].Text !="1".

Any help on this greatly appreciated.

RBS

Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
4 answers
148 views

I would like to know if the below scenerio is possible in RadGrid.
I am getting data from database and populating the RadGrid. One of the columns values in the RadGrid is a link(linkbutton). Clicking on the link will open a new window(webpage). I was able to move through the rows in the Radgrid using keyboard up and down arrows. I will click on the link for the firsttime and open the new window then when I move through the rows in the Radgrid using keyboard up and down arrows the content in the new window should also change. Does any one know how to achive this? Any help will be appreciated.

Thanks,
Raji
Raji
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
95 views
I imagine that that title has a couple of you almost automatically reaching for your keyboards to type a reply.

Read on.

I have a control that, under certain conditions, needs to open a window to collect additional info from the user. Lets call the control the "SettingsControl" and the window that it opens the "AdvancedWindow".

The SettingsControl will be deployed in any number of pages which, themselves are displayed in a RadWindow. Let's call these the "CallingPages" and the underlying aspx page that drives it all, the "TopLevelPage"

My CallingPages directly manipulate controls on (and handle events from) the AdvancedWindow which is defined inside the SettingsControl using a ContentTemplate.

My problem is that when I open the AdvancedWindow it is limited in dimensions to the window containing the SettingsControl.

Now, normally, my AdvancedWindow would be defined using a completely separate aspx page and the window would be opened by having it registered with the WindowManager on the TopLevelPage. Clearly, in this specific case I can't.

What I need to be able to do is something like this...

1. When the CallingPage opens it has a reference to the RadWindowManager that opened it.
2. The CallingPage notifies the SettingsControl and it, in turn, registers the AdvancedWindow with the RadWindowManager from the previous step so that, when called, it has the entire browser window to wander about in.

I can get a reference to the RadWindowManager that opens a RadWindow but only client-side. Because I can't 'see' the active window manager I can't add my AdvanceWindow to its 'Windows' collection and there is no method for doing this client-side.

So, questions:
  1. Is it p[ossible to do what I'm aiming for?
  2. If not, is there a reasonable alternative method?

It is important that my CallingPages can both get/set properties in the AdvancedWindow (which I could do with QueryString parameters and return arguments) and respond to events from controls in the AdvancedWindow. As an example,. the AdvancedWindow contains a RadListView and I need the CallingPages to handle the OnNeedDataSource event.

I'd be grateful for any help/suggestions.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 30 Aug 2012
6 answers
316 views
hello, i have some linkbuttons like manu items with onClick event, witch set css attributes and loading different usercontrols in placehoder control. 
here is code for one of my linkbuttons:

protected void homeBtn_Click(object sender, EventArgs e)
   {
 
       ControlPath = "Mainpage.ascx";
       LoadUserControl();
       homeBtnH4.Attributes.Add("class", "activem");
       eventBtnH4.Attributes.Remove("class");
 
       
   }

here is the way I'm loading usercontrols dynamicaly in placehodler:

private void LoadUserControl()
   {
       if (!string.IsNullOrEmpty(ControlPath))
       {
           placeHolder1.Controls.Clear();
           UserControl uc = (UserControl)LoadControl(ControlPath);
      
           placeHolder1.Controls.Add(uc);
       }
   }
 
 
   public string ControlPath
   {
       get
       {
           if (ViewState["controlPath"] != null)
               return Convert.ToString(ViewState["controlPath"]);
           else
               return null;
       }
 
       set
       {
           ViewState["controlPath"] = value;
       }
   }

now i want to use RadAjaxManager to update div element where is placed placeholder:

<div class="contentholder" id="updatepanel" runat="server" >
  <asp:PlaceHolder ID="placeHolder1" runat="server"></asp:PlaceHolder>
</div>

here is my ajax code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
               
           <telerik:AjaxSetting AjaxControlID="homeBtn">
               <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="updatepanel" LoadingPanelID="RadAjaxLoadingPanel1" >
                   </telerik:AjaxUpdatedControl>
                    
               </UpdatedControls>
           </telerik:AjaxSetting>
 
   </AjaxSettings>
   </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
   </telerik:RadAjaxLoadingPanel>

problem is that , homebtn click doesn't work properly , css class don't add and on second click it doesn't load usercontrol at all.
sorry for my bad English, not native language.. 
Pavlina
Telerik team
 answered on 30 Aug 2012
10 answers
250 views
Hi,

Is there any example code setup to show how to use an AppointmentComparer?

I've tried setting one up, but it never seems to get called.

I'm using a RadScheduler with WebService binding, would that have any impact in why it doesn't seem to be working?

In the Page_Init method I have the following code:

RadScheduler1.AppointmentComparer = new AppointmentComparer(); 

And I have an AppointmentComparer.cs file with the following code:

public class AppointmentComparer : IComparer<Appointment> 
    #region Constructors 
    public AppointmentComparer() 
    { 
    } 
    #endregion 
 
    int System.Collections.Generic.IComparer<Telerik.Web.UI.Appointment>.Compare(Appointment first, Appointment second)  
    { 

But the breakpoint in the Compare method never seems to be reached.

Thanks very much for all your help,
Greg


Rick
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
102 views
The behavior can be seen on the Telerik demo page:  http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

1. Enable 'Real-Time HTML View' module,
2. highlight a word in the Design window,
3. delete the highlighted word
4. wait a second or two...
...the deleted word reappears.


If after step 3 I quickly click elsewhere in the design window, the deleted word does not reappear.

Can you provide a solution to this problem?

Thanks.
Trevor
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
125 views
Hello,

How to get client id of all date picker control on a page using javascript like the way we can get array of rad comboboxes


teleric.web.ui.Radcombobox.comboboxes[i]...

so is there any way to get client id/array of date picker control


thanks,
Nilesh
Nilesh
Top achievements
Rank 1
 answered on 30 Aug 2012
1 answer
48 views
I WANT ELMAH exception handling framework to work with Telerik AJAX

SO THAT unhandeled (system) exceptions get automatically logged to ELMAH table and System Error page is displayed when an such exception occurs.

Can anybody give solution for this?

Genady Sergeev
Telerik team
 answered on 30 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?