Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
221 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
401 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
82 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
120 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
140 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
60 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
1 answer
150 views
Hi,

Can i set a default path and file name on the client machine for radupload?
When the page loads, a default path on client PC should be loaded for this control.



Thanks
Peter Filipov
Telerik team
 answered on 22 Sep 2011
1 answer
355 views
Hello,

I would like to ask you how to stop or hide ajax loading panel afer exporting to excel. I' m using the shipped orders radgrid with drag and drop rows feature.

Thank you very much.
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Sep 2011
12 answers
320 views
How can I show the built in Appointment Category styles in a legend? I see where this is done on the Alex, Bob example but it appears that the color box is rendered with a span that has a custom style applied.
Hadi
Top achievements
Rank 1
 answered on 22 Sep 2011
3 answers
86 views
Hi,

    We have used Schedular control in web page, when we open that page in iPad or iPhone, schedular controler is not working properly(Specially Add Appointment).
    
    you can check "http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx" open in iPad or iPhone.


Thanks,
Peter
Telerik team
 answered on 22 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?