Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
190 views
Can we integrate Rad rotator -coverflow mode in asp.net mvc.Please help
Slav
Telerik team
 answered on 22 Sep 2011
1 answer
121 views
I have following code in my Master Page C# Code. Its just throwing me error on "RadMenu1.DataSource = MenuCreation.ExecuteNonQuery();"
that Object Reference not found. This code does work elsewhere but just not working in Master Site. Can someone help. How can I use RadMenu in my master site

my stored procedure name is AllMenu which basically select all data from table name MyMenus
Also my stored procedure sql is simple. it is "SELECT id, text, (CASE WHEN parentid = 0 THEN  NULL ELSE parentid END) FROM MyMenus"

            SqlCommand MenuCreation= new SqlCommand();
            SqlConnection dbconnection = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLDB"].ConnectionString);
            MenuCreation.Connection = dbconnection ;
            MenuCreation.CommandType = CommandType.StoredProcedure;
            MenuCreation.CommandText = "AllMenu";
            

            ConnectionState previousConnectionState = dbconnection.State;

            dbconnection.Open();
            RadMenu1.DataSource = MenuCreation.ExecuteNonQuery();


            RadMenu1.DataFieldID = "ID";
            RadMenu1.DataFieldParentID = "ParentID";

            RadMenu1.DataTextField = "Text";
            RadMenu1.DataValueField = "ID";
            RadMenu1.DataNavigateUrlField = "URL";

            RadMenu1.DataBind();      
Kevin
Top achievements
Rank 2
 answered on 22 Sep 2011
4 answers
71 views
Hi,

I have a weird issue with radwindow controls in my project. I have a grid with an edit linkbutton column which opens a radwindow with details for that particular item. Inside of this radwindow I have another grid with a edit column in it which also opens another radwindow using oBrowserWnd.radopen to show the details of the selected grid item. Everything so far works fine, the bug I'm encountering is that if the edit template field is an img tag the radwindow will appear behind the currently open radwindow but if I switch the img tag for a regular anchor tag which uses the exact same js code to open the window, the actual window is displayed properly in front of the parent window. Now I've tried to further test this by using an anchor tag with text set to "Edit" and it has an img tag as its child. Now, if I click on the "Edit" text the radwindow opens up fine in the front of the current radwindow but if I click on the img tag nested inside the anchor the radwindow opens but its behind the current radwindow. This is way weird. Any ideas on how to resolve this issue?

Best regards.
John Schroeder
Top achievements
Rank 1
 answered on 22 Sep 2011
2 answers
102 views
I am trying to bind data to a grid using "NeedDataSource". But the grid is not able to render on the page load ,later if i press refresh, it is showing the data.

Product Version : 2008.01.0415.20.

Pradeep
Top achievements
Rank 1
 answered on 22 Sep 2011
5 answers
175 views
I have an aspx page with a series of controls on it, several of which are RadComboBoxes. All of these have the MarkFirstMatch set to true. The goal is to be able to use a warehouse scanner to populate a field, and move onto the next one. The scanner automatically appends keyCode 13 (typically the enter key) to the end of all of it's inputs, so we're looking for this and using it to set focus to the next control in line.

The problem: If the combobox is left blank (i.e. it's focused and I hit enter), everything works fine (focus is given to the next control). If, however, I choose an item from the list/type in something I know will resolve to a valid selection, and then hit enter, the next control is highlighted as though it were given focus, but the initial control still actually has focus (and is similarly focused).

I'm fairly certain this is the result of focus being passed to the next control, and then reclaimed by the initial control when MarkFirstMatch takes effect, and modifies the comboboxes selection based on the input. I've tried short circuiting selection changed events, taking focus in selection changed, and other similar things to simply stop it from happening. The real pain is I need it to actually do the selection, but I also need the focus to change.

Any help would be much appreciated.
Vasssek
Top achievements
Rank 1
 answered on 22 Sep 2011
2 answers
364 views
Hi,

I create share point web part with Rad Grid control. Here is the code for grid

<telerik:RadGrid ID="gvTasks" runat="server" AutoGenerateColumns="False"
            CellSpacing="0" GridLines="None" AllowSorting="True" ShowGroupPanel="True">
            <ClientSettings AllowDragToGroup="True" AllowExpandCollapse = "false">
            </ClientSettings>
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
  
    <Columns>
        <telerik:GridBoundColumn DataField="Title"
            FilterControlAltText="Filter column column" HeaderText="Naslov"
            UniqueName="column">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Task_x0020_priority"
            FilterControlAltText="Filter column1 column" HeaderText="Prioritet"
            UniqueName="column1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Task_x0020_Status"
            FilterControlAltText="Filter column2 column" HeaderText="Status"
            UniqueName="column2">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Task_x0020_start_x0020_date"
            DataFormatString="{0:d}" FilterControlAltText="Filter column3 column"
            HeaderText="Početak" UniqueName="column3">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Task_x0020_due_x0020_date"
            DataFormatString="{0:d}" FilterControlAltText="Filter column4 column"
            HeaderText="Rok" UniqueName="column4">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Task_x0020__x0025__x0020_complet"
            FilterControlAltText="Filter column5 column" HeaderText="Procenat"
            UniqueName="column5">
        </telerik:GridBoundColumn>
    </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>
After that I populate RADGrid with listitemcollection based on sharepoint list. I do that on button event

protected void btnSearch_Click(object sender, EventArgs e)
        {
            web = site.OpenWeb();
            //QuerySerarch qs = new QuerySerarch();
  
                #region Filtered tasks
                SPQuery queryTasks = new SPQuery();
                queryTasks.Query = string.Concat(
                               "<Where>" +
                    // "<And>" +
                                   QuerySearch.QueryTaskList(ddProject.SelectedItem.Text, "", "", "", "", "", ""),
                    // "</And>" +
                               "</Where>"
                               );
                SPList listTasks = web.Lists["Project tasks"];
                SPListItemCollection itemsTask = listTasks.GetItems(queryTasks);
                DataTable ds = itemsTask.GetDataTable();
                gvTasks.DataSource = ds;
                gvTasks.DataBind(); // List field holding value - first column is called Title anyway!
                gvTasks.Visible = true;
                #endregion
        }


After button clicking I create some grouping on my grid but data source is null. If I click on button again I have what  I need (grouping)
After that I can make drill up and drill down without problems but I still have issue that force me to click button before
I see results.




After that I realize that I must bind RAD Grid on every event that happen on drill up and drill down in this case this is postback event.
After that I see results as I expected but when I try to drill up or drill down I have an error.


Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.


Please help.


Thanks
Goran
Top achievements
Rank 1
 answered on 22 Sep 2011
1 answer
66 views
I have a custom skin that needs to be created for a slider.  Please contact me for specifics and how much you will charge.  Thanks!
Jonathan
jknowsley@hotmail.com
Marin Bratanov
Telerik team
 answered on 22 Sep 2011
2 answers
95 views
Within my project I have a Radgrid to collect a customers address. On Insert Mode a button appears by the postcode textbox which loads a RadWindow with a selection of addresses for the given postcode. I collect the value from the textbox with the following code:-

Protected Sub RadGrid1_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
 
          Select Case e.CommandName
            Case "getValue"
 
                Dim rg_control As RadButton = TryCast(sender, RadButton)
 
                rg_control = DirectCast(e.CommandSource, RadButton)
 
                Dim postcode As String = DirectCast(rg_control.NamingContainer.FindControl("PostalCodeTextBox"), TextBox).Text()
 
                                             'LOAD RAD WINDOW
                      rw_findPostcode.VisibleOnPageLoad = True

           End Select
 
End Sub

Obviously the above is fine for collecting the value entered. Ok now the problem.

Within the RadWindow I have a RadListBox which displays the list of available addresses. On selection a selectedIndexChanged Event fires and returns the selected row. How do I fill the template within the RadGrid with the selected values.

Any ideas?

Marcus


Marcus
Top achievements
Rank 1
 answered on 22 Sep 2011
2 answers
104 views
hi guys, it's my first post here !
i'm from chile, sorry but my english isnt perfect :P

i've a problem with RadEditor. I call a js method from onclick button, this js method call a HTML text from database and then paste this HTML text in my RadEditor, but when i try to export (method radEditor.ExportToPdf()) the file dont have kb, is null



HTML TEXT FROM DATABASE (IMAGE)
view radeditor.jpg


FILE DONT HAVE KB (IMAGE)
view no kb file.jpg


Any idea ?
Pablo
Top achievements
Rank 1
 answered on 22 Sep 2011
2 answers
33 views
I want to change the text for the pager buttons
which we use to select the page number ['Go'] and number of records per page ['Change']
want to change the text to something else . can I do that?
Ismail
Top achievements
Rank 1
 answered on 22 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?