| var tableView = clientControls.relatedDocumentsGrid.get_masterTableView(); |
| tableView.set_dataSource(result); |
| tableView.dataBind(); |
So I'm calling a Webservice with ASP.NET Ajax instead of just using the <DataBinding /> Element like so:
| <DataBinding Location="..." SelectMethod="..." EnableCaching="true" /> |
I don't really like declarative binding.... doing it manually gives me more freedom at times....
Is clientside caching supposed to work, when binding manually on the clientside?
Thanks for any advice!
Kind regards,
Wolfgang
When we use the RadEditor on our SharePoint site, it converts all relative urls given by the SharePoint page picker dialog to absolute urls.
It’s a big issue because, the editors accesses the site on port :8080 and because RadEditor converts the url, the port specification gets added to all the links.
The result is broken links for all visitors on port :80.
Can we do some configuration to force the RadEditor to use relative urls for links and images?
Our current setup is we use the RadEditor for SharePoint, and have activated the website features on both root site, and all subwebs.
We use the config file in the RadEditor install directory to set picture list, etc. and css files.
We have tried this settings in config.xml but with no luck (taken from another thread in the forum)
You can enable relative URLs in the editor by setting the StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths editor properties to true in the configuration file.
Regards, Bjarke
<
telerik:RadMenuItem runat="server" Text="Hx" TabIndex="3" Font-Size="10pt" Width="4%"
ToolTip="Patient History" AccessKey="C">
</telerik:RadMenuItem>
Thanks.

<telerik:RadDatePicker ID="RadDatePicker13" runat="server">
</telerik:RadDatePicker>
<asp:CheckBox ID="CheckBox1" runat="server" onclick="checkedChanged(this);" />
function checkedChanged(checkbox) {
var datepicker = $find("<%=RadDatePicker13.ClientID%>");
if (checkbox.checked) {
datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "yellow";
}
else {
datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "white";
}
}
protected void Page_Load(object sender, EventArgs e)
{
string rootFolder = "";
string[] parts;
string name = "";
if (cUserInfo.MemberKey == "000001")
{
rootFolder = Server.MapPath(
"../MEMBERS");
parts = rootFolder.Split(
'\\');
name = parts[parts.Length - 1];
name =
"IBOS Directories";
}
else
{
rootFolder = Server.MapPath(
"../MEMBERS/" + cUserInfo.MemberMnemonic.Trim());
parts = rootFolder.Split(
'\\');
name = parts[parts.Length - 1];
}
if (!Directory.Exists(rootFolder))
{
cXML.CopyDirectory(Server.MapPath(
"../MEMBERS/BANK1"), rootFolder, true);
}
RadTreeNode rootNode = new RadTreeNode(rootFolder);
rootNode.ImageUrl =
"../Images/Folder.gif";
rootNode.Category =
"Folder";
rootNode.Expanded =
true;
rootNode.Text = name;
rootNode.NavigateUrl = rootFolder;
RadTreeView1.Nodes.Add(rootNode);
RadTreeView1.MultipleSelect =
true;
Session[
"Rootnode"] = rootNode;
BindTreeToDirectory(rootFolder, rootNode);
}
private void BindTreeToDirectory(string dirPath, RadTreeNode parentNode)
{
string[] dirs = Directory.GetDirectories(dirPath); // this one will loop through out the folder
foreach (string s in dirs)
{
string[] parts = s.Split('\\');
string name = parts[parts.Length - 1];
if (name != "BANK1")
{
RadTreeNode node = new RadTreeNode(name);
node.ImageUrl =
"../Images/Folder.gif";
node.Value = name;
node.Category =
"Folder";
parentNode.Nodes.Add(node);
BindTreeToDirectory(s, node);
}
}
string[] files = Directory.GetFiles(dirPath); //this one will loop throught out the files and load to there respective parent folder
foreach (string fileName in files)
{
string[] parts = fileName.Split('\\');
string name = parts[parts.Length - 1];
//RadTreeNode node = new RadTreeNode(name);
RadTreeNode node = new RadTreeNode(fileName);
FileInfo fi = new FileInfo(fileName);
node.ImageUrl =
"../Images/File.gif";
node.Value =
String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());
node.Category =
"File";
node.Text = name;
node.ToolTip =
String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());
node.NavigateUrl = fileName;
parentNode.Nodes.Add(node);
}
}
| For Each item As GridDataItem In radGvProducts.Items |
| If TypeOf (item) Is GridDataItem Then |
| Dim txtQuantity As TextBox = CType(item.FindControl("txtQuantity"), TextBox) |
| If txtQuantity.Text <> String.Empty Then |
| 'do something |
| End If |
| Dim radTxtQuantity As RadNumericTextBox = CType(item.FindControl("radTxtQuantity"), RadNumericTextBox) |
| If radTxtQuantity.Text <> String.Empty Then |
| Dim intQty As Integer = CInt(radTxtQuantity.Text.Trim) |
| 'Dim hdnShoppingCartID As HiddenField = CType(rptItem.FindControl("hdnShoppingCartID"), HiddenField) |
| 'Dim shoppingCartID As Integer = CInt(hdnShoppingCartID.Value) |
| Dim hdnProductID As HiddenField = CType(item.FindControl("hdnProductID"), HiddenField) |
| Dim prodID As Integer = CInt(hdnProductID.Value) |
| Dim sc As New ShoppingCart(UserInstance.ContactID, prodID) |
| 'If UserInstance.ContactID > 0 Then |
| sc.ContactID = UserInstance.ContactID |
| 'Else |
| ' sc.UserID = DBNull.Value |
| 'End If |
| sc.ProductID = prodID |
| scsc.Quantity = sc.Quantity + intQty |
| ShopCartCol.Add(sc) |
| 'sc.Save() |
| End If |
| End If |
| Next |