Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 views
Hi! I have a RadUpload inside an Ajaxified Formview using RadAjaxManager.
How do I force a postback from a button inside this FormView so that my RadUpload would work.? 

Veselin Vasilev
Telerik team
 answered on 08 Jul 2008
7 answers
197 views
Hi,

I have a rad combo box in one of my columns in a rad grid.  My values come from a XML data file.  The combo box consists of 3 values.  Lets say ValueA, ValueB, and ValueC.  I have the combo box already populated, so if the value comes from my data file as ValueB, then ValueB must be the selected choice.  I have this combo box in a <EditItemTemplate></EditItemTemplate>

Here is my piece of code:

<radG:GridTemplateColumn
   HeaderText="Store Locator"
   UniqueName="StoreLocator">
   <ItemTemplate>
      <asp:Label ID="StoreLocator" runat="server" Text='<%# Eval("StoreLocator") %>'></asp:Label>
   </ItemTemplate>
   <EditItemTemplate>
      <radC:RadComboBox
         ID="rcStoreLocators"
         DataSourceID="dsStoreLocators"
         DataTextField="StoreLocatorName"
         DataValueField="StoreLocatorID"
         runat="server">
      </radC:RadComboBox>
   </EditItemTemplate>
</radG:GridTemplateColumn>

Please can someone help me?

Thanks
Brendan
Vlad
Telerik team
 answered on 08 Jul 2008
4 answers
197 views
I am creating multiple windows in my application. I have a routine that loops through the windows using the get_windows method of the RadWindowManager. Whenever I close a window though, the get_windows method still returns a reference to the closed window in the get_windows method. Is this by design? If so, how do I remove it from the array? I saw something about using the DestroyOnClose method, but that is Server Side. Is there a client side equivalent of this? Thanks!
Robert Bross
Top achievements
Rank 1
 answered on 08 Jul 2008
2 answers
121 views

I got this syntax from -Different edit/insert forms with auto-generated edit form
 private void RadGrid1_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
{
GridBoundColumn birthDateColumn = e.Item.OwnerTableView.GetColumnSafe("BirthDate");
}

I’m getting an error on “GridBoundColumn birthDateColumn = e.Item.OwnerTableView.GetColumnSafe("BirthDate");”

Cannot implicitly convert type 'Telerik.Web.UI.GridColumn' to 'Telerik.Web.UI.GridBoundColumn'. An explicit conversion exists (are you missing a cast?)

Please help!!

Thanks.           

Jo.

jo
Top achievements
Rank 1
 answered on 08 Jul 2008
1 answer
100 views
I'm almost finished with my first hierachical table, but there still one problem to solve. Since I'm using a dynamic sql that result different type of result (not the same structure - different field names and data), when i open for the first time the result is fine, but the second one to open with the structure of the first query.

I guess I just need to reset somehow the detail table wich now is configured to AutoGeneratedColumns and I'm using the ItemCreated Event of RadGrid to change the columns names.

Some part of the code that bind the data to Detail table.

protected void rg_test_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) 
    { 
        if (e.DetailTableView.Name.Equals("detail")) 
        { 
            System.Data.SqlClient.SqlCommand comm = new System.Data.SqlClient.SqlCommand("[pr_rpt_user_detail]", 
                new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["db_misa_conn_string"].ConnectionString)); 
            comm.CommandType = CommandType.StoredProcedure; 
 
            Hashtable values = new Hashtable(); 
            e.DetailTableView.ParentItem.ExtractValues(values); 
            comm.Parameters.AddWithValue("@id_user", Convert.ToInt32(Session["id_user"])); 
            comm.Parameters.AddWithValue("@id_user_rpt", Convert.ToInt32(values["id_user_rpt"])); 
            comm.Parameters.AddWithValue("@id_rate_control", Convert.ToInt32(values["id_rate_control"])); 
 
            System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(comm); 
            DataTable dt = new DataTable(); 
            da.Fill(dt); 
            e.DetailTableView.DataSource = dt; 
      } 
} 
 


Thanks.
Veli
Telerik team
 answered on 08 Jul 2008
2 answers
122 views
Hi,

I'm facing difficulties with the radInputMasked component. If I set something to the Text attribute of the component, then the TextChanged event will not be raised the first time. I have to change the Text twice...

That behaviour doesn't occur if I don't initialize my radInputMasked.

TIA for any help,
F.B
FB
Top achievements
Rank 1
 answered on 08 Jul 2008
1 answer
134 views
Hi,

As you can see from the title I am getting this error when I try to close a RadWindow opened in DotnetNuke project. What I am trying to do is, open the RadWindow, do some work and at the end when user has finished adding/updating data a popup(RadComfirm) appears asking them to continue. If they click cancel then I close the window. This error only occurs when I close the Radwindow from RadConfirm.
I want to attach the error,but dont know how to do it.It looks like RadConfirm want to refresh the parent page after closing it or somthing.

Can someone please sort this out?

Thanks
Atiq
Atiq Ur Rehman
Top achievements
Rank 1
 answered on 08 Jul 2008
1 answer
140 views
I'm struggling to find the reference now, but at some point in the past I read a suggestion that it I was going to add controls (by which I mean RadControls) on-the-fly I should do so in the page's OnInit phase.

Given that I am doing the above, how, if at all is the event sequence shown here changed?

--
Stuart
Vlad
Telerik team
 answered on 08 Jul 2008
3 answers
160 views
Hi Telerik Team

Is it possible to make toolbars float and be dockable within the RadEditor Web Part?

I've been able to make the toolbars float and change their location when editing list items, (using the ListToolsFile.xml and ListConfigFile.xml files), but can't seem to get it to work in the actual radEditor webpart itself.

In the ConfigFile.xml, Ive set the EnableDocking property to True and then have set each toolbar in the ToolsFile.xml file to have dockable="true".

Is this the correct process of setting this up or am I missing something?

Thanks,
Claudz
George
Telerik team
 answered on 08 Jul 2008
1 answer
126 views
Hi,

I have added two rad panes in my web page.(Leftpane and Rightpane respectively). I have defined a Rad sliding panel with a rad panel bar in the Leftpane. Rightpane has a Rad grid in it with "grouping" property enabled.

When ever i slide the panel in the Leftpane the Rad Panel items are getting overlapped with the Rad grid details. I want to avoid this overlapping.

My observations are:
1)The overlapping does not happen if i don't group the Rad grid details by a column.
2)Overlapping does not happen even if i exchange the Pane contents(adding the Rad grid to LeftPane and Rad sliding panel to Rightpane). In this case there is no overlapping of Rad grid details with the Rad Panel items even if grouping is done by a column. But i can't choose this as per my requirements.

Why is it behaving like this. Anyone has an idea on this?

Nataraj
Dimo
Telerik team
 answered on 08 Jul 2008
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?