Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
429 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
89 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
150 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
154 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
64 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
169 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
382 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
352 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
95 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
1 answer
208 views
Hi ,

I am treeview control.
I am adding nodes dynamically using following code.
Nodes are actually database column names.


RadTreeNode tnAttr = new RadTreeNode(attr.Name); // Here attr.Name is "Category<ID"
tnAttr.ToolTip = attr.LongDescription;
 
treeViewDimension.Nodes.Add(tnAttr);

In Internet Explorer 8 i am getting scriptresource error ,hence the node is not visible in treeview but it generating space .

while in Firefox it is working but text is cutting down to "Category".

This is hapening when we are sending node values contains "<".

Please suggest for same .We need to allow '<' character in treeview
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 22 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?