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

Could you please hint me how can I achive something like shown in Boxed.png where content of tab is boxed insided "red rectangle"? Basically a showing border of the tab content.

Many thanks.

M G
Shinu
Top achievements
Rank 2
 answered on 23 Jul 2010
1 answer
116 views
Good Day

i am using a RaSchedular(Telerik) and i have an XML File on my solution and i bind my Schedular like this


 
   <pre> private void Bind_Viewer_For(String Module)
    {

    
            string strExpr = "Code like '%" + Module + "%'";
            XmlDataDocument xmlDatadoc = new XmlDataDocument();
            xmlDatadoc.DataSet.ReadXml(@"C:\Pilot Project\App_Data\TimeTable.xml");
            RadScheduler1.DataStartField = "STARTDATE";
            RadScheduler1.DataSubjectField = "DESCRIPTION";
            RadScheduler1.DataEndField = "ENDDATE";
            RadScheduler1.DataKeyField = "ID";

            dsfinal = xmlDatadoc.DataSet;

            if (dsfinal.Tables[0].Rows.Count &gt; 0)
            {
                DataView dv = dsfinal.Tables[0].DefaultView;
                dv.RowFilter = strExpr;
                RadScheduler1.DataSource = dv;
                RadScheduler1.DataBind();
                RadScheduler1.SelectedView = SchedulerViewType.MonthView;
                RadScheduler1.SelectedDate = Convert.ToDateTime(dv.Table.Rows[30]["ENDDATE"]);

            }
     

    }
</pre>

 

dsfinal is declared Globally. i am filtering my data as you can see in the expression and bind the control with the Detail view.  Now , my problem is when the updates are made. In the Schedular when updates are made , or when an appointment is moved
i need to Update the Dataset with the changes made. The Demo here  Explains a simple xml binding, but i am binding the Schedular with a Dataset and when changes i made, i want to save the changes in the dataset.

Now i have a save button that is supposed to take the changes made in the dataset and merge it back to the xml and my code looks like this

 protected void btnCommitChanges_Click(object sender, EventArgs e)
    {

            XmlDataDocument xmlDatadoc = new XmlDataDocument();
            xmlDatadoc.DataSet.ReadXml(@"C:\Pilot Project\App_Data\TimeTable.xml");

            DataSet dslist = new DataSet();
            dslist = xmlDatadoc.DataSet;

            dsfinal.Merge(dslist);
            dsfinal.WriteXml(@"C:\Pilot Project\App_Data\TimeTable.xml");

    }
 

 as you can see , i am taking the xml that is currently on the file system and i am loading it to a dataset and merge the two dataset. My question here is that is it going to updates the changes or it will override or insert new elements as if i am adding a new record on the xml ?

Again, after refresh the page, i could see the changes were not saved and the xml have not changed from the changes that were made in the dataset.

Thanks
Peter
Telerik team
 answered on 23 Jul 2010
7 answers
707 views
Hi,
I have a radGRid in which each row represent a customer and where I put several radTextBox in the cells so that the customers can input their info (firstname, lastname, etc.). I can have from 1 to 10 customers in the same grid.
I'm trying to get the row index where the value of a radTextBox as been changed.
I need to do this client side.

Any idea?
Thanks in advance

Sam
Sammy78
Top achievements
Rank 2
 answered on 23 Jul 2010
2 answers
232 views
Hello,

I work with vs 2008 and IE8.

I have a simple RadComboBox with a button.
If I tape a text in my RadComboBox, when I click on the button, the RadComboBox still always empty.

Code aspx :

<table>
  <tr>
     <td>
       <telerik:RadComboBox ID="RcmbPref" runat="server" DataSourceID="ds_pref" AutoPostBack = "true" AllowCustomText="true"  DataTextField="IDFavori" DataValueField="IDFavori" Skin="WebBlue" MarkFirstMatch="True">
       </telerik:RadComboBox>                
     </td>
     <td width="6px"> </td>
     <td>
        <asp:ImageButton ID="ImgBtn_pref" runat="server" ImageUrl="../Gen_Images/favorites_add.png" ToolTip="Ajouter une préférence d'affichage" />
     </td>                                               
   </tr>
</table>

<

 

asp:SqlDataSource ID="ds_pref" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:CsAppli %>"

 

 

SelectCommand="SELECT IDFavori FROM t_preferenceRadGrid WHERE (IDApplication = 'CEC') AND (IDSection = 'listeCL') ORDER BY IsCurrent DESC"></asp:SqlDataSource>

 



Code VB :
Private Sub ImgBtn_pref_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImgBtn_pref.Click
        Dim sNomPref As String = ""
        sNomPref = RcmbPref.Text
End Sub

Someone can see where is the problem, please ?

Anne
Anne
Top achievements
Rank 1
 answered on 23 Jul 2010
4 answers
254 views
Hi,

I wanted to create a RadCombobox programatically and a radtreeview also need to be there, how can I create/add control to the ITEMTEMPLATE?

My code is something like this:

Dim cbFolder as new RadCombobox
Dim tree as new radTreeView
        'Codes to add nodes to the Treeview
dim li as new radcomboboxitem
li.controls.add(tree)
cbFolder.items.add(li)

The code above created a radcombobox with the treeview but I can't select any node. I think I should add the treeview in an ItemTemplate instead of an item, any advise?

Thanks.

Andy Ho

Kalina
Telerik team
 answered on 23 Jul 2010
1 answer
155 views
I have a RadGrid and ContextMenu which wrap around with AjaxManager and AjaxLoadingPanel. When I right click on a row and select "Download", it postback and Response.Redirect(http://xxx/xxx.doc), the dialog window prompted. But once click on the cancel button, the ajax does not work anymore. How do I change it so that the ajax will not cancel when click to download the document.

Thanks in advance.
Daniel
Telerik team
 answered on 23 Jul 2010
3 answers
141 views
The default command template on the RadGrid works well for me with the Sunset skin. However, I do need to add to it. I'm looking for code that gets me the default Sunset skinned Command Bar as a CommandItemTemplate. Below is my grid with the command settings I need. Attached is a screen shot.

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
    Width="100%" Skin="Sunset"
    AutoGenerateColumns="false" AllowPaging="true" AllowSorting="True"
    MasterTableView-ShowHeadersWhenNoRecords="true"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="true"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    ShowStatusBar="true" ShowFooter="true"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
...
</telerik:RadGrid>

Pavlina
Telerik team
 answered on 23 Jul 2010
1 answer
104 views
Howdy,

I am using MOSSRadEditor in WSS3. When I run the spell checker it selects this misspelled works but doesn't highlight them in yellow. How can I get the yellow back? Attached is an example.

Thanks,
Stanimir
Telerik team
 answered on 23 Jul 2010
6 answers
192 views
Hi.
I have a radgrid with a GridTemplateColumn containing a EditItemTemplate with a RadNumerictextBox named UserNrTb like this:

 <telerik:RadGrid ID="RadGrid1" runat="server" ......
 <Columns>
        <telerik:GridTemplateColumn DataField="UserNr" DataType="System.Int32" HeaderText="UserNr" UniqueName="UserNr" >
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="UserNrTb" runat="server" DbValue='<%# Bind("UserNr") %>'></telerik:RadNumericTextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label runat="server"  ID="UserNrLbl" Text='<%# Eval("UserNr") %>' ></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridNumericColumn DataField="Account" DataType="System.Int32" HeaderText="Account" UniqueName="column2">
        </telerik:GridNumericColumn>
......

I want to have focus on the field UserNrTb in editmode but I don't know how to iterate the GridTemplateColumn. I have read the article "Focus the text boxes in the edit control" and the description work fine for GridNumericColumn as followed:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
        
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
       {
           GridEditableItem form = (GridEditableItem)e.Item;
           RadNumericTextBox dataField = (RadNumericTextBox)form[
"column2"].Controls[0];
           dataField.Focus();
       }
   }

I tried to do the same for the field UserNrTb but it's not working. So how can i find the field from GridTemplateColumn?

Ceci


 

       
Cecilie Nordbø
Top achievements
Rank 1
 answered on 23 Jul 2010
2 answers
191 views
Hello All,

Can some one help with below code.

1) I have Radmenu inside a Radtab, it displays perfectly on a normal page with menus and tabs 
2) As soon as i use the same code in a  Master Page (First.master) with 3 iframes viz : Header and second is the above Menu.aspx and third is say Body.

3) Now when i click on the Menu, the items are behind the  body iframe, my problem : Is there any way where i can bring the menu items in front of the bodyframe instead going behind. 

Please somone provide with the correct solution.
 
Below is the Sample code given.

****************************************
Start MASTER PAGE (first.Master)
**********************************************
  
<body>
    <form id="form1" runat="server">
       <asp:ScriptManager runat="server" ID="ScriptManager2" >
        </asp:ScriptManager>
      
        <iframe id="header" name="header" style="padding: 0px; margin: 0px; height:50px; width:100%; top: 0px; " frameborder="0" scrolling="no" src="header.aspx" marginheight="0em" marginwidth="0em" ></iframe>
        <iframe id="menuFrame" name="menuFrame" style="width: 100%; padding: 0px; margin: 0px; height:30px; width:100%; top: 0px; " frameborder="0" scrolling="no" src="menu.aspx" marginheight="0em" marginwidth="0em" ></iframe>
<iframe id="bodyframe" name="bodyframe" style="padding: 0px; margin: 0px; height:520px;width:100%; top: 0px;" frameborder="0" scrolling="auto" marginheight="0em" marginwidth="0em" src="body.aspx" >
              <asp:ContentPlaceHolder id="ContentBody" runat="server">
                      
              </asp:ContentPlaceHolder>  
          
        </iframe>
</form>
</body>
*****************************************************************
End MASTER PAGE
****************************************************************
*****************************************************************
Start MenuPAGE (2nd frame)
****************************************************************
  
<style type="text/css"
    div.RadTabStrip .rtsLink,
    div.RadTabStrip .rtsOut,
.RadTabStrip .rtsLevel,   
.RadTabStrip .rtsUL,   
.RadTabStrip .rtsLI   
{   
    float: left !important;   
    overflow: visible !important;   
}   
.RadMenu   
{   
    white-space:nowrap;   
    float:left;   
    position:relative; 
}   
.RadTab   
{   
    white-space:nowrap;   
    float:left;   
    position:relative;   
}
.RadTabStrip   
{   
    white-space:nowrap;   
    float:left;   
    position:relative;   
}
</style>
  
<form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
    </div>
             <table style="width:89%">
              <tr style="width:100%">
               <td >
                     <telerik:RadTabStrip ID="tabmenu" Skin="Black" 
                        runat="server" SelectedIndex="11" ClickSelectedTab="True"
                          Font-Bold="True">
                       <Tabs>
                            <telerik:RadTab Text="Home" NavigateUrl="rmshome.aspx" Target="bodyframe" runat="server"  /> 
    
<telerik:RadTab runat="server">   
                         <TabTemplate>  
                            <telerik:RadMenu runat="server" ID="RadMenu1">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Search Engines">
                    <Items>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Google" NavigateUrl="http://www.google.com">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Yahoo" NavigateUrl="http://www.yahoo.com">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Live" NavigateUrl="http://www.live.com">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
                         </TabTemplate>  
                 </telerik:RadTab>  
                       </Tabs>
                 </telerik:RadTabStrip>  
    </form>
  
</body>
**********************
End of MenuPage
**********************


sudhakar
Top achievements
Rank 1
 answered on 23 Jul 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?