Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi,

I have a RadWindow in my page and I am trying to show this RadWindow in a javascript function. This javascript function is on click on a html button click.

I have the following code written for RadWindow:

<

 

telerik:RadWindowManager ID="rwmMyWindow" runat="server" />

<

 

telerik:RadWindow ID="rwUploadConfirmation" runat="server" Modal="True" Width="700" Height="400" KeepInScreenBounds="True" Overlay="True" VisibleStatusbar="false" VisibleTitlebar="false" Visible="false" >

 

 

<ContentTemplate>

 

 

   <asp:Label ID="lblUploadStatusMessage" runat="server" Font-Size="12px" ForeColor="Black" Font-Bold="true" />

 

  <

 

input type= button ID="SaveMsg_OK" value="Continue" style="width:75px" onclick="javascript:close_uploadWindow_dlg();" />

 

 

 

</ContentTemplate>

 

</

 

telerik:RadWindow>

 

In a javascript function, I need to show this RadWindow, assign some data to the label that I have inside this.

Would like to know how do I get this done.

Thanks in advance.

Shruthi

 

Bob van der Zinch
Top achievements
Rank 2
 answered on 12 May 2010
1 answer
140 views
Page has RadScriptManager and a RadWindowManager for separate functionality. I have added a div to get a jQuery fade-in effect (http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/). Inside div is a user control MyUploader (http://www.c-sharpcorner.com/UploadFile/munnamax/bulkuploader03272007031417AM/bulkuploader.aspx) with ListBox for adding files and buttons for adding, removing and uploading (POST'ing) to UploadPost.aspx. When clicking buttons, the fade-in disappears--I want it to remain on screen when adding and removing. The "Add" and "Remove" asp:Button's have OnClick handlers in the code-behind. MyUploader control is surrounded by <form id="frmUpload action="UploadPost.aspx">...</form>

However, clicking the upload asp:Button behaves exactly as above. No post and the fade-in disappears. The ListBox manages to hang on to any files added, but the fade-in initially disappears. I don't think asp:UpdatePanel's are allowed with RadScriptManager, but is there some kind of UpdatePanel-equivalent to add around the MyUploader to make it async? What am I missing?

Thanks in advance!
Dimo
Telerik team
 answered on 12 May 2010
3 answers
165 views
Hi,

I am trying to use the grid with self referencing; however I am unable to solve some issues. The first and most important problem is, if I choose "AutoGenerateColumns" as true; it all works fine. However; I need to specify the columns during runtime on serverside; by adding columns to the grid. When "AutoGenerateColumns" is set to false and columns are added on the server side, grid does not display the hierarchy at all; but just lists the items.

Please let me know what to do to be able to add columns at serverside during page's load or init events; so that the self referencing hierarchy works.

I am exhausted of trying to solve this issue and tried everything I can; so any help is greatly appreciated.

Thanks.
Veli
Telerik team
 answered on 12 May 2010
1 answer
123 views
Hi,
I have a problem with a double columns layout.
The menu is placed in the left column, but it overlaps the column encroaching into the right one.
I tried to set a width for the menu but I found two problems:
- the width property does not work in IE6
- on other browsers the property is correctly applied, but menu items overdo the menu box. 

I really need a solution to make the menu work in IE6 and I need to know possibly how to make the menu items wrap.

Thanks in advance
Fabio
Top achievements
Rank 1
 answered on 12 May 2010
3 answers
121 views
Hi,

I am using telerik:RadGrid with one master table and 2 detail table in it. On load of the grid if no detail table exists for the row then also it is displaying > symbol. If we click on that then the symbol will go off becuase no details table exists for that row. This was not the problem in the earlier versions of telerik. But now I have upgraded the telerik version to Version=2010.1.413.40. In this version I am getting problem like this.

Is it version problem or can i fix it in my code?

Yavor
Telerik team
 answered on 12 May 2010
2 answers
254 views
I have created a RadlistView with the an InsertItemTemplate but when the Insert is carried out the values in the textboxes do not insert into the database. the insert process seems to be working, its just not taking the values from the textboxes.
The delete and edit templates are working great, its just the insert that doesn't seem to work. Would there be any reason for this?
Here is the insert code:

<telerik:RadListView ID="radListView1" DataSourceID="sqlDataSource1" runat="server" 
ItemPlaceholderID="Container" DataKeyNames="ID" AllowPaging="true" 
OnItemCommand="RadListView1_ItemCommand">  
<InsertItemTemplate>  
<fieldset style="float: left; width: 370px; height: 200px;">  
<legend>Name:<asp:TextBox ID="txtBoxName" runat="server" /></legend>  
<table cellpadding="0" cellspacing="0" style="width: 370px;">  
   <tr>  
     <td>  
       <table cellpadding="0" cellspacing="5">  
         <tr>  
           <td style="width: 25%">type:</td>  
           <td style="width: 75%">  
              <asp:TextBox ID="txtBoxType" runat="server" />  
           </td>  
         </tr>  
         <tr>  
          <td></td>  
          <td>  
             <asp:TextBox runat="server" ID="txtBoxTitle"></asp:TextBox>  
          </td>  
         </tr>  
       </table>  
      </td>  
      <td align="right" style="width: 25%; padding-left: 10px;"></td>  
    </tr>  
    <tr>  
      <td colspan="2">  
      <div style="float: left; width: 160px;">  
      <asp:Button ID="btnPerformInsert" runat="server" Text="Insert" CommandName="PerformInsert"/>  
     <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" />  
     </div>  
     </td>  
   </tr>  
   </table>  
   </fieldset>  
</InsertItemTemplate>  
 <asp:SqlDataSource ID="sqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
InsertCommand="INSERT INTO Names (name, type, title) VALUES (@name, @type, @title)">  
 
<InsertParameters>  
                            <asp:Parameter Name="name" Type="String" />  
                            <asp:Parameter Name="type" Type="String" />  
                            <asp:Parameter Name="title" Type="String" />  
                        </InsertParameters> 


K W
Top achievements
Rank 1
 answered on 12 May 2010
0 answers
69 views
Good Day All

In the Viewer of the RadScheduler, at the far left hand side there is time. Sometimes my application will allow a user not to enter time, but the date will be there , so in that case i want to display a Number of Periods. If the Timetable has 12 Periods a Day i want to display this

http://www.vuyiswamaseko.com/images/Time_want.JPG

not this one

http://www.vuyiswamaseko.com/images/Time_Time.JPG

Thanks
Vuyiswa
Top achievements
Rank 2
 asked on 12 May 2010
4 answers
142 views
Hi

I've developed a web application which relies heavily on the radGrid. Now I've encountered a very serious issue, which I consider a serious bug really.
So ... I've got a grid bound to a datatable (using needDataSource event).
I've got a DateTime column in the grid, which shows a column from the datatable, which is fine up until this point.
Then I've got filtering enabled, which is where my problem lies. If I try to filter on a value (equals), it works like a charm. However if I try 'isNull' or 'isNotNull' things go haywire.
Basically 'isNull' shows everything and the other way around. Basically nothing is null. Why is this?
Well ... I'd say it's because it's not 'null', but 'DBNull'. After all, a datatable built using dataAdapter.fill contains dbnull values instead of regular .net null values.
Of course this is not just limited to this type of column, even a regular bound column with a string value has the same issue. Neither 'isEmpty' nor 'isNull' works.

Anyway, this should really be built into the grid as a grid is used to bind data from a database in 99% of the cases it's used.

The client of course is not happy with this. Can anyone come to my aid here and propose a proper way to make this filter work?
Sebastian
Telerik team
 answered on 12 May 2010
1 answer
383 views
I have a 3-level RadGrid. In the MasterTable (ParentGrid), there's a template column with a label (LocationID). The detailtable(ChildGrid) has a commandItemTemplate "Add Contact". EditMode = popup. The popup is a usercontrol having a RadGrid(radGrid_CompanyContactDetails).

Suppose there are 3 rows in the MasterTable.  I click on a row. Then I click on "Add Contact" of the detail table, it opens the popup. Here I want to access the parent Grid's LocationID value for that particular row from the usercontrol's RadGrid's ItemDataBound event. I am able to access the RadGrid if I have the following code:

 
 protected void radGrid_CompanyContactDetails_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            radGrid rGrid = (Telerik.Web.UI.RadGrid)(item.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent); 
            Label location = (Label)rGrid.FindControl("LocationID") // Returns null
} 
     }  

But if I give rGrid.FindControl("LocationID"), it returns null.

Please give some pointers on how to access the parent RadGrid's column values (or controls)
Shinu
Top achievements
Rank 2
 answered on 12 May 2010
18 answers
284 views
Hi.
I need to trigger serverside when the user clears the combobox input field.
Is this possible?

We have version 2008.2.723.35

Best regards
Kalina
Telerik team
 answered on 12 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?